Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
XP XP is offline
external usenet poster
 
Posts: 389
Default Convert number to date

Using Office 2007 on Win XP.

I'm mentally blocked at the moment. I have a number like: 396016747358

Which actually is a serialized value of an MS-Excel date and time. I need to
convert this number to its actual equivalent date/time using one or more
spreadsheet formulas.

Can someone help me out with that?

Thanks much in advance.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Convert number to date

Assuming by serialized value, you mean the decimal point was omitted and
that the actual value was 39601.6747358, then try this...

=--(LEFT(A1,5)&"."&MID(A1,6,15))

Note: The above, if correct, assumes you will never have any dates before
May 18, 1927 (the first date where the serial value was a 5-digit number).

--
Rick (MVP - Excel)


"XP" wrote in message
...
Using Office 2007 on Win XP.

I'm mentally blocked at the moment. I have a number like: 396016747358

Which actually is a serialized value of an MS-Excel date and time. I need
to
convert this number to its actual equivalent date/time using one or more
spreadsheet formulas.

Can someone help me out with that?

Thanks much in advance.


  #3   Report Post  
Posted to microsoft.public.excel.programming
XP XP is offline
external usenet poster
 
Posts: 389
Default Convert number to date


Thanks Rick, that does the trick; I kept messing around with "Date" and
"Time" functions.

Thanks!

"Rick Rothstein" wrote:

Assuming by serialized value, you mean the decimal point was omitted and
that the actual value was 39601.6747358, then try this...

=--(LEFT(A1,5)&"."&MID(A1,6,15))

Note: The above, if correct, assumes you will never have any dates before
May 18, 1927 (the first date where the serial value was a 5-digit number).

--
Rick (MVP - Excel)


"XP" wrote in message
...
Using Office 2007 on Win XP.

I'm mentally blocked at the moment. I have a number like: 396016747358

Which actually is a serialized value of an MS-Excel date and time. I need
to
convert this number to its actual equivalent date/time using one or more
spreadsheet formulas.

Can someone help me out with that?

Thanks much in advance.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert number to date value saz2369 Excel Discussion (Misc queries) 8 October 13th 09 03:10 PM
Convert number to date Arne Hegefors Excel Programming 3 October 13th 08 04:30 PM
Convert Date to number BigPig Excel Programming 2 May 12th 06 09:50 PM
Convert Date to number? JethroUK© Excel Worksheet Functions 6 May 8th 06 10:15 PM
How do I convert Date serial number to date rdunne Excel Worksheet Functions 1 April 12th 05 03:04 PM


All times are GMT +1. The time now is 04:52 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"