Opening and closing times past midnight

Thoron6

New Member
Joined
Oct 27, 2015
Messages
27
Morning,

I have posted this before but not been to clear as I'm not sure how to attach an example spreadsheet.

I have tried to simplify the problem.

Day00:0001:0002:0003:0004:0005:0006:0007:0008:0009:0010:0011:0012:0013:0014:0015:0016:0017:0018:0019:0020:0021:0022:0023:00
Sat252221201918171920126818921017156221123524
Sun1234561245854789654131456
Mon25896472165479355324585452
TueEtc
Wed
Thur
Fri

<tbody>
</tbody>

Sat08:0002:00
Sun08:0023:00
Mon07:0022:00
Tue08:0022:00
Wed09:0022:00
Thur10:0022:00
Fri10:0001:00

<tbody>
</tbody>


So I need to sum the totals outside of the opening hours. The main problem I am having is when the closing time is past midnight and not including the next days consumption in the relevant day calculations.

So the above example, I'd like to see

Sat = sum of numbers after 1am (due to Friday not closing until 1am) until it opens at 8am .. so 21 + 20+19+18+17+19...

As always, any help would be greatly appreciated.

Thank you
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Also.... As this would be across a portfolio, the day and opening hours are not all the same. So Sunday 08:00 - 23:00 may only be for this specific example but may change at another branch.

Thank you
 
Upvote 0

Forum statistics

Threads
1,215,326
Messages
6,124,272
Members
449,149
Latest member
mwdbActuary

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