How do I extract a date as text not the 1900 reference number

A

Adam

I know how to format a date within a cell, but when I reference that cell in
a line of text I am constructing, e.g. ="Since "&A1", XXX has changed by
"&B2&"%" ..., the date comes across in the 1900 number format, e.g. it
displays as "Since 38414 ..." instead of saying "Since 3 March 2005 ..."

How do I get it to give me the date as text rather than Excel's background
reference number?
 
R

Ron Rosenfeld

I know how to format a date within a cell, but when I reference that cell in
a line of text I am constructing, e.g. ="Since "&A1", XXX has changed by
"&B2&"%" ..., the date comes across in the 1900 number format, e.g. it
displays as "Since 38414 ..." instead of saying "Since 3 March 2005 ..."

How do I get it to give me the date as text rather than Excel's background
reference number?

=TEXT(A1,"d mmmm yyyy")


--ron
 
R

Ron Rosenfeld

Perfect, thanks.

You're welcome. You might also use the same technique in formatting your
percent number, depending on how the original is stored.


--ron
 
Top