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

Current week ->37
Contracted hoursstart weeklength of serviceannual allowanceaccrued to dateAccrual ratelength of service
Joe40405.6
0
Peter301625.81
62
6.23
6.44

<tbody>
</tbody>
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
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,214,601
Messages
6,120,467
Members
448,965
Latest member
grijken

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