Need formulas to pull date and time from 1 cell to 2

D

Dan B

I have a report with date and time column. The data looks like this:
11/6/2008 2:18:00 PM

I need to pull the date into one cell and the time into another. How can I
do this when the date and time will vary in the number of characters? i.e
=left(a1,9) will miss part of the date if were another character long, like
11/16/2006.

Thanks
 
T

T. Valko

Try this:

A1 = 11/6/2008 2:18:00 PM

For the date:

=INT(A1)

Format as Date

For the time:

=MOD(A1,1)

Format as Time
 
M

Michael

From the main menu select:
Data -> Text To Columns
On the popup window select Delimited, then click next,then check mark the
Space box and click next
Click on Date and
From the Drop Down box on your right, select the format you prefer, click on
the next field (not the next button) and do the same for the time.
Then Finish
 
M

Michael

Sorry, you dont do anything for the Time field..

--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.
 
D

Dan B

Thanks for your help.


Michael said:
Sorry, you dont do anything for the Time field..

--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top