date and time help needed

Dennisr53

New Member
Joined
May 29, 2015
Messages
38
Hi everyone,
First: I am trying to separate 07/02/2016 02:10:28 into a date and time column any suggestions?
[TABLE="width: 169"]
<tbody>[TR]
[TD]next: I want to count how many are between 2am and 3am

I have seen this somewhere but, do not remember where I saw it.

Thanks, Dennis[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
First step, to split it up..

A1 contains your date/time value
B1: =INT(A1)
C1: =A1-B1

Format B1 as Date, C1 as Time.
 
Upvote 0
Then to count between 2am and 3am

Assuming XL2007+
=COUNTIFS(C1:C100,">=02:00:00",C1:C100,"<=03:00:00")
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top