![]() |
Adding text before a function
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? |
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 |
All times are GMT +1. The time now is 01:45 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com