ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I extract a date as text not the 1900 reference number (https://www.excelbanter.com/excel-discussion-misc-queries/18834-how-do-i-extract-date-text-not-1900-reference-number.html)

Adam

How do I extract a date as text not the 1900 reference number
 
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?

Ron Rosenfeld

On Tue, 22 Mar 2005 19:15:01 -0800, "Adam"
wrote:

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

Adam

Perfect, thanks.

"Ron Rosenfeld" wrote:

On Tue, 22 Mar 2005 19:15:01 -0800, "Adam"
wrote:

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


Ron Rosenfeld

On Wed, 23 Mar 2005 03:25:04 -0800, "Adam"
wrote:

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


All times are GMT +1. The time now is 05:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com