Assigning a time to a range

Woody1979

New Member
Joined
Oct 16, 2011
Messages
13
Hi Guys,

I thought this would be SO easy, but my rusty excel skills and my age mean I can't quickly work out how to assign time to a time range.

If my times are in a one column and I want to know how many fall in say 4/5 different time ranges (i.e 9-12pm, 12-3, 3-5,5-7pm), would I use a COUNTIF or something similar? A pivot table is another option I guess?

12:33:34
11:45:43
13:04:32
14:28:17
14:38:43
13:05:49
13:25:12
13:46:59
14:18:36
16:02:54
15:58:53
12:01:28

<colgroup><col></colgroup><tbody>
</tbody>

Any help gratefully received!

Thx,
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
for example,

B1=LOOKUP(A1,{9;12;15;17}/24-1%%%%,{"9-12pm";"12-3pm";"3-5pm";"5-7pm"})

please note: 12:00 falls to range 12-3pm
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,891
Messages
6,122,105
Members
449,066
Latest member
Andyg666

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