Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default how to split date and time in one cell into multiple cells

I need to perform this function using worksheet commands - I do not want to
use the"manuel entry" of a wizard - I need to "split" date and time (09/24/09
8:40) into two distinct cells...
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default how to split date and time in one cell into multiple cells

Assuming the date/time is a true Excel date/time...

A1 = 09/24/09 8:40

B1: =INT(A1)
Format as Date

C1: =MOD(A1,1)
Format as Time

--
Biff
Microsoft Excel MVP


"Dr. Bill" <Dr. wrote in message
...
I need to perform this function using worksheet commands - I do not want to
use the"manuel entry" of a wizard - I need to "split" date and time
(09/24/09
8:40) into two distinct cells...



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default how to split date and time in one cell into multiple cells

T. Valko wrote:
Assuming the date/time is a true Excel date/time...

A1 = 09/24/09 8:40

B1: =INT(A1)
Format as Date

C1: =MOD(A1,1)
Format as Time



And without assuming, I think you could just add "--" in front of A1 and it
works for either date/time or text entries.
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default how to split date and time in one cell into multiple cells

You don't need the double unary minus. INT and MOD will cope with the text
entries.
--
David Biddulph

"Glenn" wrote in message
...
T. Valko wrote:
Assuming the date/time is a true Excel date/time...

A1 = 09/24/09 8:40

B1: =INT(A1)
Format as Date

C1: =MOD(A1,1)
Format as Time



And without assuming, I think you could just add "--" in front of A1 and
it works for either date/time or text entries.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default how to split date and time in one cell into multiple cells

Of course, you're right. I swear I tried it and it didn't work...

David Biddulph wrote:
You don't need the double unary minus. INT and MOD will cope with the text
entries.
--
David Biddulph

"Glenn" wrote in message
...
T. Valko wrote:
Assuming the date/time is a true Excel date/time...

A1 = 09/24/09 8:40

B1: =INT(A1)
Format as Date

C1: =MOD(A1,1)
Format as Time


And without assuming, I think you could just add "--" in front of A1 and
it works for either date/time or text entries.





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default how to split date and time in one cell into multiple cells

Hi,

I assume these are properly formatted dates/times which we have in (say) A1

Format a1 as

mm/dd/yyyy

in b1 enter the formula =A1
Format b1 as hh:mm

or if you don't want the leading zero format as

h:mm

Drag down as required

Mike

"Dr. Bill" wrote:

I need to perform this function using worksheet commands - I do not want to
use the"manuel entry" of a wizard - I need to "split" date and time (09/24/09
8:40) into two distinct cells...

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default how to split date and time in one cell into multiple cells

Just put =A1 (assuming your date/time is in A1 of course) in both cells and
then format one of the cells as Date and the other as Time.

--
Rick (MVP - Excel)


"Dr. Bill" <Dr. wrote in message
...
I need to perform this function using worksheet commands - I do not want to
use the"manuel entry" of a wizard - I need to "split" date and time
(09/24/09
8:40) into two distinct cells...


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
Split date from date time cells dd/mm/yyyy hh:mm. New cell dd/mm/y nigeo Excel Discussion (Misc queries) 3 April 1st 09 09:38 PM
Split DATE cell into three new cells? Xx Licher xX Excel Worksheet Functions 2 December 14th 07 10:16 PM
Split Date and Time Cell Beamers Excel Discussion (Misc queries) 2 May 19th 06 07:25 PM
Split the date & time in one cell to be 2 colums. Aom Excel Worksheet Functions 3 April 11th 06 02:27 PM
split combined Time Date cells Mark Ada Excel Discussion (Misc queries) 2 December 1st 04 03:06 AM


All times are GMT +1. The time now is 01:17 AM.

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

About Us

"It's about Microsoft Excel"