A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

splitting and formating a number series into date/time



 
 
Thread Tools Display Modes
  #1  
Old August 28th, 2008, 04:58 PM posted to microsoft.public.excel.worksheet.functions
CMG8401
external usenet poster
 
Posts: 1
Default splitting and formating a number series into date/time

I have a data series that looks like:
20080127145747 (YearMonthDayHoursMinutesSeconds)

I need to break that up into two columns
Date (Month/Day/Year) and Time (Hours:Minutes:Seconds)

Please help
  #2  
Old August 28th, 2008, 05:09 PM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default splitting and formating a number series into date/time

With your number in A1, this will give you the date part (eg in B1):

=DATE(LEFT(A1,4),MID(A1,5,2),MID(7,2))

and this will give the time part (eg in C1):

=TIME(MID(A1,9,2),MID(A1,11,2),RIGHT(A1,2))

You need to format both cells to display the date and time how you
would like to see them, and then you can copy the formulae down as
required.

Hope this helps.

Pete

On Aug 28, 4:58*pm, CMG8401 wrote:
I have a data series that looks like:
20080127145747 (YearMonthDayHoursMinutesSeconds)

I need to break that up into two columns
Date (Month/Day/Year) and Time (Hours:Minutes:Seconds)

Please help


  #3  
Old August 28th, 2008, 05:11 PM posted to microsoft.public.excel.worksheet.functions
Gary''s Student
external usenet poster
 
Posts: 7,584
Default splitting and formating a number series into date/time

With your value in A1, enter in B1 and C1:

=DATE(LEFT(A1,4),MID(A1,5,2),MID(A1,7,2))
=TIME(MID(A1,9,2),MID(A1,11,2),RIGHT(A1,2))

--
Gary''s Student - gsnu200802


"CMG8401" wrote:

I have a data series that looks like:
20080127145747 (YearMonthDayHoursMinutesSeconds)

I need to break that up into two columns
Date (Month/Day/Year) and Time (Hours:Minutes:Seconds)

Please help

  #4  
Old August 28th, 2008, 05:15 PM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default splitting and formating a number series into date/time

Sorry, first one should have been:

=DATE(LEFT(A1,4),MID(A1,5,2),MID(A1,7,2))

hope this helps.

Pete

On Aug 28, 5:09*pm, Pete_UK wrote:
With your number in A1, this will give you the date part (eg in B1):

=DATE(LEFT(A1,4),MID(A1,5,2),MID(7,2))

and this will give the time part (eg in C1):

=TIME(MID(A1,9,2),MID(A1,11,2),RIGHT(A1,2))

You need to format both cells to display the date and time how you
would like to see them, and then you can copy the formulae down as
required.

Hope this helps.

Pete

On Aug 28, 4:58*pm, CMG8401 wrote:



I have a data series that looks like:
20080127145747 (YearMonthDayHoursMinutesSeconds)


I need to break that up into two columns
Date (Month/Day/Year) and Time (Hours:Minutes:Seconds)


Please help- Hide quoted text -


- Show quoted text -


  #5  
Old August 29th, 2008, 01:27 AM posted to microsoft.public.excel.worksheet.functions
David Biddulph
external usenet poster
 
Posts: 8,714
Default splitting and formating a number series into date/time

=INT(TEXT(A2,"0000\-00\-00 00\:00\:00"))
=MOD(TEXT(A2,"0000\-00\-00 00\:00\:00"),1)

Format as date & time respectively.
--
David Biddulph

"CMG8401" wrote in message
...
I have a data series that looks like:
20080127145747 (YearMonthDayHoursMinutesSeconds)

I need to break that up into two columns
Date (Month/Day/Year) and Time (Hours:Minutes:Seconds)

Please help



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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