ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Extracting specific data from Date and time strings (https://www.excelbanter.com/excel-discussion-misc-queries/203709-extracting-specific-data-date-time-strings.html)

John Norfolk

Extracting specific data from Date and time strings
 
Hi,

I want to extract the hours from a date time cell so that I can group data
that occured in the same hour.

How can I do this?
--
Thanks
John

Pete_UK

Extracting specific data from Date and time strings
 
=HOUR(A1)

if your date/time is in Excel format and in A1.

Hope this helps.

Pete

On Sep 24, 9:47*am, John Norfolk wrote:
Hi,

I want to extract the hours from a date time cell so that I can group data
that occured in the same hour.

How can I do this?
--
Thanks
John



Mike H

Extracting specific data from Date and time strings
 
Hi,

With a date/time in A1 simply put =A1 in another cell and format as hh:mm

Mike

"John Norfolk" wrote:

Hi,

I want to extract the hours from a date time cell so that I can group data
that occured in the same hour.

How can I do this?
--
Thanks
John


Mike H

Extracting specific data from Date and time strings
 
Sorry,

Format as hh

Mike

"Mike H" wrote:

Hi,

With a date/time in A1 simply put =A1 in another cell and format as hh:mm

Mike

"John Norfolk" wrote:

Hi,

I want to extract the hours from a date time cell so that I can group data
that occured in the same hour.

How can I do this?
--
Thanks
John



All times are GMT +1. The time now is 10:34 PM.

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