ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Date & Time Field (https://www.excelbanter.com/excel-discussion-misc-queries/64054-date-time-field.html)

Diane Walker

Date & Time Field
 
I am running Excel 2003. I have a field that combines both date and time
(MM/DD/YYYY HH:MM:SS AM or PM). I would like to know if there is a way
break this field into a date field (MM/DD/YYYY) and a time field (HH:MM).

Thanks.



Roger Govier

Date & Time Field
 
Hi Diane

For Date = INT(A1) format as a suitable Date format
For Time =MOD(A1,1) format as hh:mm

--
Regards

Roger Govier


"Diane Walker" wrote in message
...
I am running Excel 2003. I have a field that combines both date and
time (MM/DD/YYYY HH:MM:SS AM or PM). I would like to know if there is
a way break this field into a date field (MM/DD/YYYY) and a time field
(HH:MM).

Thanks.





Diane Walker

Date & Time Field
 
Thanks very much, Roger.

"Roger Govier" wrote in message
...
Hi Diane

For Date = INT(A1) format as a suitable Date format
For Time =MOD(A1,1) format as hh:mm

--
Regards

Roger Govier


"Diane Walker" wrote in message
...
I am running Excel 2003. I have a field that combines both date and time
(MM/DD/YYYY HH:MM:SS AM or PM). I would like to know if there is a way
break this field into a date field (MM/DD/YYYY) and a time field (HH:MM).

Thanks.








All times are GMT +1. The time now is 12:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com