Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 349
Default Subtract two dates (decrementing daily) and add text

I can add text to a number ok; that's straightforward, but I cannot add text
to formula. Eg. =B2-G6&" text". I am trying to have an ongoing formula
subtracting one date from another and tag "days to go" at the end. I thought
I would have found this in the help section easily enough but nooo...
Any advice anyone?
P
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Subtract two dates (decrementing daily) and add text

The formula you have is correct. What is your problem? What do you have in
B2 and in C6? What result did you get? What result did you expect?
--
David Biddulph

"Peter" wrote in message
...
I can add text to a number ok; that's straightforward, but I cannot add
text
to formula. Eg. =B2-G6&" text". I am trying to have an ongoing formula
subtracting one date from another and tag "days to go" at the end. I
thought
I would have found this in the help section easily enough but nooo...
Any advice anyone?
P



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default Subtract two dates (decrementing daily) and add text

What are you getting? It works for me. Is this the only formula? Or is this
formula to be copied down or to the right, etc.?
--
** John C **

"Peter" wrote:

I can add text to a number ok; that's straightforward, but I cannot add text
to formula. Eg. =B2-G6&" text". I am trying to have an ongoing formula
subtracting one date from another and tag "days to go" at the end. I thought
I would have found this in the help section easily enough but nooo...
Any advice anyone?
P

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Subtract two dates (decrementing daily) and add text

Works for me, what result did you get?

--


Regards,


Peo Sjoblom

"Peter" wrote in message
...
I can add text to a number ok; that's straightforward, but I cannot add
text
to formula. Eg. =B2-G6&" text". I am trying to have an ongoing formula
subtracting one date from another and tag "days to go" at the end. I
thought
I would have found this in the help section easily enough but nooo...
Any advice anyone?
P



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 342
Default Subtract two dates (decrementing daily) and add text

It works for me as well.

Another option would be to format the cell with the custom format:
0 " Days To Go"


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default Subtract two dates (decrementing daily) and add text

Hi,

The only reason I can think of that your formula does not work is if the
entries in B2 or G6 are not really dates either because there is extra spaces
or because they are not in a legal date syntax. In this case I would expect
a VALUE error. And you would get that even if you didn't have the text
added.

To deal with leading or trailing spaces try the following formula:
=TRIM(F10)-TRIM(E10)&" days to go"

To deal with illegal syntax enter the two date in m/d/yy order. For
example, Oct-20-2008 is an illegal syntax but it will display in the cell in
a way that you might think it's a date. Retype the dates as I suggested.

--
Thanks,
Shane Devenshire


"Peter" wrote:

I can add text to a number ok; that's straightforward, but I cannot add text
to formula. Eg. =B2-G6&" text". I am trying to have an ongoing formula
subtracting one date from another and tag "days to go" at the end. I thought
I would have found this in the help section easily enough but nooo...
Any advice anyone?
P

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Subtract if dates in the range between 2 dates. inta251 via OfficeKB.com Excel Worksheet Functions 2 March 1st 07 04:40 AM
How to subtract 2 dates to get number of days.....please Nick Excel Worksheet Functions 3 November 10th 06 01:03 PM
add/subtract dates problem in Excel..... Gary in Pennsyl Excel Discussion (Misc queries) 3 May 31st 06 08:58 PM
Subtract two dates Joe Excel Discussion (Misc queries) 2 February 8th 06 02:57 AM
Subtract time and dates with restrictions Michaela Excel Worksheet Functions 2 February 7th 05 04:21 PM


All times are GMT +1. The time now is 07:34 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"