create function put date value in written language to avoid maximum number of lines in formula

littlepete

Well-known Member
Joined
Mar 26, 2015
Messages
503
Office Version
  1. 365
Platform
  1. Windows
hello all :)

my formula to represent all data in my address list, has reached the maximum of 8192 ...
i would like to replace the normal formula with a short function to reduce that number...
Is it possible to make something like this : a function "txt" to transform the data to written tekst
(25/12/2020 => friday, 25 december 2020)
in the formula it would look like :
TEKST(Q5;"dddd d mmmm jjjj") => txt(q5)

thanks for your advice all !!!
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Which version of Excel do you have? If it's 365 you could use a LAMBDA.
 
Upvote 0
If you have the LAMBDA function, then see the MS article here for usage: LAMBDA function

hello :)

in the meanwhile i had read already about the lambda function, but i see nowhere where i should put that definition of what lambda does...

part of my formula now looks like :
VBA Code:
Q5&"was born on "&TEKST(Q5;"dddd d mmmm jjjj")

how should i change that part to (much) shorter line to gain lines in total? someting like Lambda(q5) ?
 
Upvote 0
The article I linked to has a step-by-step guide; where did you get stuck?
 
Upvote 0
The article I linked to has a step-by-step guide; where did you get stuck?

hello ;)
i have no idea how i should form the lambda? something like lambda(date, TEKST("dddd d mmmm jjjj"), q5) ... ? or ?
 
Upvote 0
Replace q5 with date and yes, that's basically it. (though presumably you need semicolons not commas)
 
Upvote 0
Replace q5 with date and yes, that's basically it. (though presumably you need semicolons not commas)

hello :)

at the end, i'm trying to reduce the number of characters in my long (over 9000 ch.) formula...
i thought making something like txt(q5) that would do TEKST(Q5;"dddd d mmmm jjjj")
that would reduce 28 characters tot 7 ! but with lambda i only see more characters ?
what's then the best way ?
btw: thx for your time !!!
 
Upvote 0
How are you seeing more characters? What you describe is exactly what the LAMBDA is for. Define a name called txt using your LAMBDA formula, then use txt(q5) in your formulas.
 
Upvote 0

Forum statistics

Threads
1,216,119
Messages
6,128,946
Members
449,480
Latest member
yesitisasport

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top