ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Convert hard keyed/formatted numbers to dates (https://www.excelbanter.com/excel-worksheet-functions/118757-convert-hard-keyed-formatted-numbers-dates.html)

MarvInBoise

Convert hard keyed/formatted numbers to dates
 
Have data that is supposed to be dates, e.g., 06-29-06, that has been
formatted with a custom number format of 00-00-00. I need to convert it/them
to actual dates; however, the number is really 62906, which converts to
03/23/72, not 06/29/06. Help! and THANKS!!
--
Marv Lusk


David Biddulph

Convert hard keyed/formatted numbers to dates
 
Try: data, text to columns, delimited, next, next, date format MDY, finish.
Format result as date.
--
David Biddulph

"MarvInBoise" wrote in message
...
Have data that is supposed to be dates, e.g., 06-29-06, that has been
formatted with a custom number format of 00-00-00. I need to convert
it/them
to actual dates; however, the number is really 62906, which converts to
03/23/72, not 06/29/06. Help! and THANKS!!
--
Marv Lusk




Duke Carey

Convert hard keyed/formatted numbers to dates
 
try

=DATE(2000+RIGHT(A23,2),LEFT(TEXT(A23,"000000"),2) ,MID(TEXT(A23,"000000"),3,2))

where A23 contains your number

"MarvInBoise" wrote:

Have data that is supposed to be dates, e.g., 06-29-06, that has been
formatted with a custom number format of 00-00-00. I need to convert it/them
to actual dates; however, the number is really 62906, which converts to
03/23/72, not 06/29/06. Help! and THANKS!!
--
Marv Lusk


MarvInBoise

Convert hard keyed/formatted numbers to dates
 
The function worked 'perfectly' -- thanks!
--
Marv Lusk
Boise Corporation


"Duke Carey" wrote:

try

=DATE(2000+RIGHT(A23,2),LEFT(TEXT(A23,"000000"),2) ,MID(TEXT(A23,"000000"),3,2))

where A23 contains your number

"MarvInBoise" wrote:

Have data that is supposed to be dates, e.g., 06-29-06, that has been
formatted with a custom number format of 00-00-00. I need to convert it/them
to actual dates; however, the number is really 62906, which converts to
03/23/72, not 06/29/06. Help! and THANKS!!
--
Marv Lusk


Duke Carey

Convert hard keyed/formatted numbers to dates
 
Glad it helped

"MarvInBoise" wrote:

The function worked 'perfectly' -- thanks!
--
Marv Lusk
Boise Corporation


"Duke Carey" wrote:

try

=DATE(2000+RIGHT(A23,2),LEFT(TEXT(A23,"000000"),2) ,MID(TEXT(A23,"000000"),3,2))

where A23 contains your number

"MarvInBoise" wrote:

Have data that is supposed to be dates, e.g., 06-29-06, that has been
formatted with a custom number format of 00-00-00. I need to convert it/them
to actual dates; however, the number is really 62906, which converts to
03/23/72, not 06/29/06. Help! and THANKS!!
--
Marv Lusk



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

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