View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Fred Smith[_4_] Fred Smith[_4_] is offline
external usenet poster
 
Posts: 2,389
Default Format a date within a formula

Use the Text function, as in:

=A1&"_"&Text(a2,"dd")

Regards,
Fred.

"SJW_OST" wrote in message
...
I have table names that must have a 2 digit date at the end. I want to
automate a spreadsheet to use my tables names and put in the 2 digit date
using a formula.
A full, proper table name looks like this;

FAAA_2LOW_28

The 2 digit date is todays date and must be at the end with the underscore
preceding it. How can I put a formualted date in one cell, 7/28/08 using
only
the 28, my table name in another cell, FAAA_2LOW, and then concatenate
them
together as shown above? Everytime I try to do this the date ends up as
numbers.

Thanks in advance for any help.