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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,216,028
Messages
6,128,393
Members
449,446
Latest member
CodeCybear

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