Holiday Pay calculation for 52 weeks

kristaina

New Member
Joined
Nov 13, 2020
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
Hello,

I need to work out the average hourly rate for employee's holiday pay over 52 weeks.

I have created a table where I record all employee pay week by week, I have data worth of 70 weeks and another table where I record worked hours for that week. Average holiday pay would be Pay over 52 weeks/ worked hours over 52 weeks

B5:AX5 = pay
B22:AX22 = hours

I have created the formula, but how can I set it to calculate only 52 weeks?

=IFERROR(((SUM(B5:AX5))/(SUM(B22:AX22))),0)

Thank you in advance!
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
column B to column AX is only 49 columns NOT 52 columns and so not 52 weeks
you can use
=SUM(INDEX(B2:AX2,0,COLUMNS(B2:AX2)-51):INDEX(B2:AX2,0,COLUMNS(B2:AX2)))
where the -51 is the number of weeks +1 so 52
see here

Butr in your data it will give an ERROR as its only 49 weeks

Not sure I understand the 9 have 70 weeks of data
then the range should be 70 column would be B to B2
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,618
Members
449,092
Latest member
amyap

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