ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Date shows as a number (https://www.excelbanter.com/excel-discussion-misc-queries/270511-date-shows-number.html)

Bob[_16_]

Date shows as a number
 
I have a date in cell E2 formatted as 2011/08/09

In cell G2 I have a small formula
="%changeNextPaydate( "&A2&"'"&E2&"' );"

This should display as %changeNextPaydate( 1001552205
‘2011/08/09’ );
But the date in cellE2 shows as the numeric ’40764’
giving me %changeNextPaydate( 1001552205
‘40764’ );

Does anybody know how I can correct this please.

With thanks

Claus Busch

Date shows as a number
 
Hi Bob,

Am Tue, 7 Jun 2011 12:56:46 -0700 (PDT) schrieb Bob:

I have a date in cell E2 formatted as 2011/08/09

In cell G2 I have a small formula
="%changeNextPaydate( "&A2&"'"&E2&"' );"

This should display as %changeNextPaydate( 1001552205
?2011/08/09? );
But the date in cellE2 shows as the numeric ?40764?
giving me %changeNextPaydate( 1001552205
?40764? );


try:
="%changeNextPaydate( "&A2&"'"&TEXT(E2,"YYYY/MM/DD")&"' );"


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2


All times are GMT +1. The time now is 06:55 AM.

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