Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How to extract time and date

Hi All,

How to extract time and date from a date time value.
Ex : 2/2/2007 14:00 , i need the date and time in sepearte cells, how do i
go about doing it, please advice.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default How to extract time and date

=int(a1)
will return the date (format it as a date)

=a1-int(a1)
or
=mod(a1,1)
will return the time (format it as a time)


Hemanth wrote:

Hi All,

How to extract time and date from a date time value.
Ex : 2/2/2007 14:00 , i need the date and time in sepearte cells, how do i
go about doing it, please advice.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default How to extract time and date

If A1=Date & time

B1 =INT(A1) format as DATE
C1 =MOD(A1,1) format as TIME

"Hemanth" wrote:

Hi All,

How to extract time and date from a date time value.
Ex : 2/2/2007 14:00 , i need the date and time in sepearte cells, how do i
go about doing it, please advice.

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
extract date between a given time frame B New Users to Excel 1 April 3rd 07 09:18 PM
Extract the hour from a cell showing the date and time Paul Sexton Excel Worksheet Functions 2 February 27th 06 07:15 PM
Calculating days & time left from start date/time to end date/time marie Excel Worksheet Functions 7 December 7th 05 03:36 PM
Combined date time cell to separate date & time components Mark Ada Excel Discussion (Misc queries) 1 December 2nd 04 01:07 AM
Combined date time cell to separate date & time components Mark Ada Excel Worksheet Functions 1 December 2nd 04 01:04 AM


All times are GMT +1. The time now is 03:47 PM.

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

About Us

"It's about Microsoft Excel"