Count numbers based on arrival times

mog75

New Member
Joined
May 7, 2002
Messages
2
I am relatively new to Excel, but I'm learing. I want to track number of entries based on arrival time-- number arriving between 7 am and 11 am, 11 and 3 pm, and after 3, and total on a monthly basis. It should be easy but I can't get anything I've tried to work.

Thanks in advance for any assistance!
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
On 2002-05-08 20:22, mog75 wrote:
I am relatively new to Excel, but I'm learing. I want to track number of entries based on arrival time-- number arriving between 7 am and 11 am, 11 and 3 pm, and after 3, and total on a monthly basis. It should be easy but I can't get anything I've tried to work.

Thanks in advance for any assistance!

Hi mog75:

let us say your arrival_time is in cells A2:a7, and your number of entries is in cells b2:b7, then use the following formula:

=SUMPRODUCT((B2:B7)*(A2:A7>=D1)*(A2:A7<=D2))

Hope This Helps!
 
Upvote 0
Thanks for your quick replies!

I am using 60 rows down to enter times in and out. Column B is time in, column C time out. Excel totals time in column D, that was the easy part. I set up column E as In between 7-11 (am), column F in between 11-3, and column G in after 3 pm. I thought that if I could return a value (1) in column E, F, or G based on entry time it would be easy to calculate total time and daily and monthly totals for each column. I wanted to make data entry as easy as possible, as it will be multiple other users with very limited excel experience entering data.

Thanks for all your help!
 
Upvote 0

Forum statistics

Threads
1,213,538
Messages
6,114,217
Members
448,554
Latest member
Gleisner2

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