Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
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? |
#2
![]() |
|||
|
|||
![]()
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. -- Regards Ken....................... Microsoft MVP - Excel Sys Spec - Win XP Pro / XL 97/00/02/03 ---------------------------------------------------------------------------- It's easier to beg forgiveness than ask permission :-) ---------------------------------------------------------------------------- "Eric" wrote in message om... 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? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
adding to a number containing text | Excel Discussion (Misc queries) | |||
Adding Leading Zeros to Text | Excel Discussion (Misc queries) | |||
Read Text File into Excel Using VBA | Excel Discussion (Misc queries) | |||
Macro or Function to make text size to suite text Length? | Excel Discussion (Misc queries) | |||
Adding a text label to a line. | Charts and Charting in Excel |