Minutes by hour needed

reblwalsh

New Member
Joined
Jan 10, 2017
Messages
1
I've been struggling with this for some time. I have large quantities of data where I'm given a start and stop time. I need to count minutes used by hour.
Ex:
Start 17:30
End 20:05

Outcome
17:00 = 30
18:00 = 60
19:00 = 60
20:00 = 5

Right now I have column A as my start times, B as my end times and C-Z as each hour of the day (0000-2300)

Help!
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Welcome to the Board!

Assuming your data begins on row 2, enter this formula in C2, and copy out to column Z for all rows:
Code:
=MAX(MIN(C$1+(1/24),$B2)-MAX($A2,C$1),0)*1440
You will need to format your cells as Number with zero decimal places to get the numbers like 30, 60, 60, and 5.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,329
Messages
6,124,302
Members
449,150
Latest member
NyDarR

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