ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Dates converting to MS serial number (https://www.excelbanter.com/excel-discussion-misc-queries/180525-dates-converting-ms-serial-number.html)

Marco

Dates converting to MS serial number
 
Scenario:
A1 value is "3/31/08"
In column C15, I type the formula, '="For the month ending "&A1'.

Problem:
It used to return, 'For the month ending 3/31/08'. Now it returns 'For the
month ending 39538'. I've tried changing the formatting and does not work.
I tried other formulas for the date but still returns the MS serial number.

Any help will be appreciated.

Marco

Tyro[_2_]

Dates converting to MS serial number
 
There is nothing wrong with that. Excel is doing as requested. A1 is the
number 39538. If you format that to display as a date, like m/dd/yy you will
see 03/31/08, but it's still a number so ="For the month ending "&A1 will
return "For the month ending 39538".
If you want to see: For the month ending 3/31/08 use: ="For the month
ending " & TEXT(A1,"m/dd/yy").

Tyro

"Marco" wrote in message
...
Scenario:
A1 value is "3/31/08"
In column C15, I type the formula, '="For the month ending "&A1'.

Problem:
It used to return, 'For the month ending 3/31/08'. Now it returns 'For
the
month ending 39538'. I've tried changing the formatting and does not
work.
I tried other formulas for the date but still returns the MS serial
number.

Any help will be appreciated.

Marco




Marco

Dates converting to MS serial number
 
That worked. Thank you.

"Tyro" wrote:

There is nothing wrong with that. Excel is doing as requested. A1 is the
number 39538. If you format that to display as a date, like m/dd/yy you will
see 03/31/08, but it's still a number so ="For the month ending "&A1 will
return "For the month ending 39538".
If you want to see: For the month ending 3/31/08 use: ="For the month
ending " & TEXT(A1,"m/dd/yy").

Tyro

"Marco" wrote in message
...
Scenario:
A1 value is "3/31/08"
In column C15, I type the formula, '="For the month ending "&A1'.

Problem:
It used to return, 'For the month ending 3/31/08'. Now it returns 'For
the
month ending 39538'. I've tried changing the formatting and does not
work.
I tried other formulas for the date but still returns the MS serial
number.

Any help will be appreciated.

Marco





T. Valko

Dates converting to MS serial number
 
Try it like this:

=IF(COUNT(A1),"For the month ending "&TEXT(A1,"m/d/yy"),"")


--
Biff
Microsoft Excel MVP


"Marco" wrote in message
...
Scenario:
A1 value is "3/31/08"
In column C15, I type the formula, '="For the month ending "&A1'.

Problem:
It used to return, 'For the month ending 3/31/08'. Now it returns 'For
the
month ending 39538'. I've tried changing the formatting and does not
work.
I tried other formulas for the date but still returns the MS serial
number.

Any help will be appreciated.

Marco





All times are GMT +1. The time now is 10:02 PM.

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