Split given interval into categories based on interval [workhours with different wage]

n35

New Member
Joined
Nov 19, 2010
Messages
24
Hello
I've trying to calculate the intervals for a workday, where the hours have different categories/earnings.
For instance
day;IntervalStart;IntervalEnd;Category
Mon;08;17;A
Mon;17;20;B
Mon;20;08;C
Tue;08;17;A
Tue;17;20;B
Tue;20;08;C
Wed;08;17;A
Wed;17;20;B
Wed;20;08;C
Thu;08;17;A
Thu;17;20;B
Thu;20;08;C
Fri;08;15;A
Fri;15;20;B
Fri;20;08;C
Anything not listed in the table is assumed category C
Example
Day;WorkStart;WorkEnd;LunchStart;LunchEnd
Mon;06;15;11;11:30
Fri;08;17;12;12:30
Sat;05;12;09;09:30
Result:
Day;intervalStart;IntervalEnd;Category
Mon;06;08;C
Mon;08;15;A
Fri;08;15;A
Fri;15;17;B
Sat;05;12;C
And lunchours needs to be subtracted from the interval they are in.
I've tried looks ups, different variations of tables but I keep getting the wrong answer due to friday being different, and I havent found a way of calculating the intervals yet, so I can assign a category to the different intervals across the day.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,215,436
Messages
6,124,869
Members
449,192
Latest member
MoonDancer

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