Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default splitting date and time information in cells

I have cells with the following info:

4/14/2003 14:35

but i need to split so that i can sort by date alone.

how can this be done? i have tried just taking out the data, but that just
treats the "/" as a dividing sign and so get weird numbers.

thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default splitting date and time information in cells

If these are real dates/times, you could use:
=int(a1)
to get the date -- format it as a date.

and if you wanted
=mod(a1,1)
to get the time -- format it as time



mebsmith wrote:

I have cells with the following info:

4/14/2003 14:35

but i need to split so that i can sort by date alone.

how can this be done? i have tried just taking out the data, but that just
treats the "/" as a dividing sign and so get weird numbers.

thanks in advance


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default splitting date and time information in cells

=Int(A1) ' provides Date

=A1-Int(A1) ' provides Time



"mebsmith" wrote in message
...
I have cells with the following info:

4/14/2003 14:35

but i need to split so that i can sort by date alone.

how can this be done? i have tried just taking out the data, but that just
treats the "/" as a dividing sign and so get weird numbers.

thanks in advance



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default splitting date and time information in cells



"mebsmith" wrote:

I have cells with the following info:

4/14/2003 14:35

but i need to split so that i can sort by date alone.


I also have cells with dates in the form:

20030416000927

where the date is the first 8 numbers. How can i extract that out?

Thanks
how can this be done? i have tried just taking out the data, but that just
treats the "/" as a dividing sign and so get weird numbers.

thanks in advance

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default splitting date and time information in cells

DataText to ColumnsFixed width.

Drop a line down after the 8th digitNext

Column Data formatdateYMD

Select right column and "do not import" then Finish.


Gord Dibben MS Excel MVP

On Tue, 26 Aug 2008 12:17:04 -0700, mebsmith
wrote:



"mebsmith" wrote:

I have cells with the following info:

4/14/2003 14:35

but i need to split so that i can sort by date alone.


I also have cells with dates in the form:

20030416000927

where the date is the first 8 numbers. How can i extract that out?

Thanks
how can this be done? i have tried just taking out the data, but that just
treats the "/" as a dividing sign and so get weird numbers.

thanks in advance




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default splitting date and time information in cells

thanks!

"Gord Dibben" wrote:

DataText to ColumnsFixed width.

Drop a line down after the 8th digitNext

Column Data formatdateYMD

Select right column and "do not import" then Finish.


Gord Dibben MS Excel MVP

On Tue, 26 Aug 2008 12:17:04 -0700, mebsmith
wrote:



"mebsmith" wrote:

I have cells with the following info:

4/14/2003 14:35

but i need to split so that i can sort by date alone.


I also have cells with dates in the form:

20030416000927

where the date is the first 8 numbers. How can i extract that out?

Thanks
how can this be done? i have tried just taking out the data, but that just
treats the "/" as a dividing sign and so get weird numbers.

thanks 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
Splitting information in cells Zippy Excel Worksheet Functions 7 August 15th 08 01:38 PM
Splitting Date and Time Cita Excel Discussion (Misc queries) 4 July 11th 08 04:20 PM
Sumif a date time colum and information JMB Excel Discussion (Misc queries) 6 March 20th 08 06:34 AM
How do place a column of date/time information into a calendar for Linuxster Excel Discussion (Misc queries) 0 December 3rd 05 12:56 AM
Help - Information with time and date PM Excel Discussion (Misc queries) 4 January 6th 05 08:25 AM


All times are GMT +1. The time now is 02:17 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"