#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 38
Default Date Time Format

Hello,

I have a number that looks like this: 2.01E+13. This is formatted as
scientific in Format Cells. This actual number is 20081100000000. This needs
to be in a date/time format, but Format Cells just gives ##############.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Date Time Format

Hi,

For that string what would you like the date to be and why, all I see are
the numbers?

200811

Mike

"Toria" wrote:

Hello,

I have a number that looks like this: 2.01E+13. This is formatted as
scientific in Format Cells. This actual number is 20081100000000. This needs
to be in a date/time format, but Format Cells just gives ##############.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Date Time Format

Say A1 contains:
20081218133512
then enter:
=DATE(LEFT(A1,4),MID(A1,5,2),MID(A1,7,2))+TIME(MID (A1,9,2),MID(A1,11,2),RIGHT(A1,2))

to display 12/18/2008 13:35:12

to get this use Format Cells... Number Custom m/dd/yyyy hh:mm:ss
--
Gary''s Student - gsnu200821


"Toria" wrote:

Hello,

I have a number that looks like this: 2.01E+13. This is formatted as
scientific in Format Cells. This actual number is 20081100000000. This needs
to be in a date/time format, but Format Cells just gives ##############.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Date Time Format

Or =--TEXT(A1,"0000\-00\-00 00\:00\:00"), and format the cell to suit.
--
David Biddulph

"Gary''s Student" wrote in message
...
Say A1 contains:
20081218133512
then enter:
=DATE(LEFT(A1,4),MID(A1,5,2),MID(A1,7,2))+TIME(MID (A1,9,2),MID(A1,11,2),RIGHT(A1,2))

to display 12/18/2008 13:35:12

to get this use Format Cells... Number Custom m/dd/yyyy hh:mm:ss
--
Gary''s Student - gsnu200821


"Toria" wrote:

Hello,

I have a number that looks like this: 2.01E+13. This is formatted as
scientific in Format Cells. This actual number is 20081100000000. This
needs
to be in a date/time format, but Format Cells just gives ##############.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Date Time Format

The problem I see is that 20081100000000 is not a proper date in any format.
The day of the month can't be zero. The other recommendations will work, as
long as you have a proper date which can be interpreted by their formulas.

Regards,
Fred.

"Toria" wrote in message
...
Hello,

I have a number that looks like this: 2.01E+13. This is formatted as
scientific in Format Cells. This actual number is 20081100000000. This
needs
to be in a date/time format, but Format Cells just gives ##############.




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 38
Default Date Time Format

Hi David,

Thanks for this formula! This is great. Like Fred and Mike said, I need to
get the true date, but once I do, this will work. Thanks again!

"David Biddulph" wrote:

Or =--TEXT(A1,"0000\-00\-00 00\:00\:00"), and format the cell to suit.
--
David Biddulph

"Gary''s Student" wrote in message
...
Say A1 contains:
20081218133512
then enter:
=DATE(LEFT(A1,4),MID(A1,5,2),MID(A1,7,2))+TIME(MID (A1,9,2),MID(A1,11,2),RIGHT(A1,2))

to display 12/18/2008 13:35:12

to get this use Format Cells... Number Custom m/dd/yyyy hh:mm:ss
--
Gary''s Student - gsnu200821


"Toria" wrote:

Hello,

I have a number that looks like this: 2.01E+13. This is formatted as
scientific in Format Cells. This actual number is 20081100000000. This
needs
to be in a date/time format, but Format Cells just gives ##############.




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
htm date & time format Rob Excel Discussion (Misc queries) 11 November 14th 08 03:54 PM
Convert date + time text format to date format Paul Ho Excel Worksheet Functions 2 May 22nd 07 05:47 PM
date time format nomi Excel Discussion (Misc queries) 3 September 8th 05 08:59 AM
how do I format cells to change date and time to just date bondam Excel Discussion (Misc queries) 3 July 3rd 05 01:10 PM
Remove time from a date and time field? Format removes the displa. oaoboc Excel Worksheet Functions 1 February 16th 05 07:20 PM


All times are GMT +1. The time now is 08:39 AM.

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"