Holiday calculator need help - time sensitive

colinheslop1984

Board Regular
Joined
Oct 14, 2016
Messages
129
Office Version
  1. 2016
I'm creating a holiday tracker that has certain requirements and I'm stuck. I feel like the solution is something simple but I'm giving up and asking for help.

I'll do my best to explain...

Holidays are accrued at the rates you see in right most side of the table based on length of service.

Holiday is calculated as follows:

Accrual rate x contracted hours = annual hours

If starting part way through year then calculated as:

Annual hours / 52 x weeks left in year

So Joe for example:

would accrue 5.6 x 40 =224 hours , 224 / 52 x 48 = allowance

As length of service increases, so does Accrual as seen on the right of the table below.

For example Peter
Would accrue 36 week at rate of 6, but 16 weeks at 5.8
So 6x30 / 52 x 36 + 5.8x30 / 52 x 16

I need a formula to calculate this in the annual allowance column, the ones I've tried are not accurately calculating

Then I also want to calculate accrued to date, using current week in top left corner as a criteria

Can any one put me out of my misery and help

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Current week ->[/TD]
[TD]37[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Contracted hours[/TD]
[TD]start week[/TD]
[TD]length of service[/TD]
[TD]annual allowance[/TD]
[TD]accrued to date[/TD]
[TD][/TD]
[TD][/TD]
[TD]Accrual rate[/TD]
[TD]length of service[/TD]
[/TR]
[TR]
[TD]Joe[/TD]
[TD]40[/TD]
[TD]4[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]5.6
[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]Peter[/TD]
[TD]30[/TD]
[TD]16[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]5.8[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]6[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]6.2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]6.4[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi Colin,

Is this what you need? Note that the accrued to date sumifs adds annual allowance for the staff name, this name should be the full name to keep the sum criteria unique;


Book1
ABCDEFGHIJ
1Current week ->3752
2Contracted hoursstart weeklength of serviceannual allowanceaccrued to dateAccrual ratelength of service
3Joe4040159.47159.475.60
4Peter30162128.02128.025.81
562
66.23
76.44
Sheet1
Cell Formulas
RangeFormula
E3=ROUND(SUM((INDEX($I$3:$I$7,MATCH(D3,$J$3:$J$7,0))*B3)/$E$1),2)*$B$1
E4=ROUND(SUM((INDEX($I$3:$I$7,MATCH(D4,$J$3:$J$7,0))*B4)/$E$1),2)*$B$1
F3=SUMIFS($E$3:$E$4,$A$3:$A$4,A3)
F4=SUMIFS($E$3:$E$4,$A$3:$A$4,A4)
 
Upvote 0

Forum statistics

Threads
1,224,816
Messages
6,181,143
Members
453,021
Latest member
Justyna P

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