Adding text before a function

E

Eric

How do you add text before you run a function? For instance, I want
to put a + prior to running a datedif function so the out come comes
back +7 days.

i.e. Taking the date range in A1 as 15-Oct and A2 20-Oct i want it to
display +5 days. I have it so that I can do it as 5 days, but I want
the "+" in there as well: datedif(A1,A2,"d")&" days"


Any ideas?
 
K

Ken Wright

Seeing as you have already made your data text

="+"&datedif(A1,A2,"d")&" days"

Format / Cells / Custom and +0 "Days" would have done the same
leaving it as a numeric field.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top