Forum

Notifications
Clear all

Time Range In Excel

2 Posts
2 Users
0 Reactions
59 Views
(@benjamin)
Posts: 1
New Member
Topic starter
 

i have Time Stamp data in the format HH:MM:SS PM/AM, population of about 2000 at different dates. if i want to pick time stamps above or equal to 01:00:00 am but before 12:00:00 am, what formula will i use? thanks. i have tried Count and Countif.

 
Posted : 09/01/2021 3:13 pm
Anders Sehlstedt
(@sehlsan)
Posts: 971
Prominent Member
 

Hello,

There are good articles in this site about date and time in Excel, how to work with them and so forth. Have a look here.
Excel Date and Time - Everything you need to know (myonlinetraininghub.com)

Anyway, some examples here.

I have put in some dummy data in cells B2:B7 in form of time values as seen in below picture.
The formula shown has ; as separators, you probably need to use , instead.

=COUNTIFS(B2:B7,">=01:00 am",B2:B7,"<12:00 pm")

As you are only interested in the hours, you can of course only state the hours as criteria, like this.

=COUNTIFS(B2:B7,">=01 am",B2:B7,"<12 pm")

Time-range_Benjamin.png

Br,
Anders

 
Posted : 11/01/2021 8:20 am
Share: