Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default divide date & time into two columns

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default divide date & time into two columns

Hi
D1:
=INT(C1)
and format as date

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

--
Regards
Frank Kabel
Frankfurt, Germany
"jenn" schrieb im Newsbeitrag
...
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default divide date & time into two columns

One way:

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

format D1 as a date, E1 as a time.

In article ,
"jenn" wrote:

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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default divide date & time into two columns

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)


"jenn" wrote in message
...
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



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default divide date & time into two columns


THANK YOU THANK YOU THANK YOU
"Frank Kabel" wrote:

Hi
D1:
=INT(C1)
and format as date

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

--
Regards
Frank Kabel
Frankfurt, Germany
"jenn" schrieb im Newsbeitrag
...
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




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
i need a formula for two columns to sum and to be able divide the Pat Excel Worksheet Functions 6 October 13th 09 08:42 AM
Excel 2007 calculate time between 2 date/time columns Kevo Excel Discussion (Misc queries) 8 April 25th 09 12:02 AM
Date vs Time of Day, if x hrs (8-4) divide by?.. nastech Excel Discussion (Misc queries) 1 October 6th 06 06:59 PM
Divide date into separate columns Althea Excel Worksheet Functions 7 December 13th 05 02:16 AM
merging columns - one date, one time batfish Excel Worksheet Functions 2 October 28th 05 04:02 AM


All times are GMT +1. The time now is 02:58 PM.

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"