divide date & time into two columns

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, Can I divide a column that is displaying date time in column c to date in
d and time in e.... I imported the data from access
column c has : 04/04/2004 08:04am
and I want d to display 04/04/2004 and e to display 08:04am
thanks
 
Hi
D1:
=INT(C1)
and format as date

E1:
=MOD(C1,1)
or
=C1-INT(C1)
and format as time
 
One way:

D1: =INT(C1)
E1: =MOD(C1,1)

format D1 as a date, E1 as a time.
 
If you imported it from access is text? Assuming so, try

D1: =--(LEFT(C1,FIND(" ",C1)-1))
E1: =--MID(SUBSTITUTE(SUBSTITUTE(C1,"pm"," PM"),"am"," AM"),FIND("
",C1)+1,99)

don 't forget to format the cells

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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

Back
Top