Ok, from your previous post, H17 is excluded so it shouldn't count right?
this is what I have, I added one additional column for calculation:
Sheet1
[TABLE="class: grid, width: 500"]
<tbody>[TR="bgcolor: #cacaca"]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[TD]L[/TD]
[TD]M[/TD]
[TD]N[/TD]
[TD]O[/TD]
[TD]P[/TD]
[TD]Q[/TD]
[/TR]
[TR]
[TD="bgcolor: #cacaca, align: center"]2[/TD]
[TD]Employee[/TD]
[TD]Pd. Yr[/TD]
[TD]Basic Hours
(pd. amount)[/TD]
[TD]Price Work
(pd. amount)[/TD]
[TD]Time+Half
(pd. amount)[/TD]
[TD]Double Time
(pd. amount)[/TD]
[TD]Bonus
(pd. amount)[/TD]
[TD]Total 'Normal' Pay to be included[/TD]
[TD]Holiday Pay
(pd. amount)[/TD]
[TD]Holiday Pay Hours
(input amount)[/TD]
[TD]College Hours
(pd. amount)[/TD]
[TD]Co.Sick Pay
(pd. amount)[/TD]
[TD]SSP
(pd. amount)[/TD]
[TD]Total - these weeks to be excluded[/TD]
[TD="align: center"]Include or Exclude in Holiday Pay Average[/TD]
[TD="align: center"]Count[/TD]
[TD="align: center"]Holiday Pay (weekly rate)
12 week average of 'Normal' pay[/TD]
[/TR]
[TR]
[TD="bgcolor: #cacaca, align: center"]3[/TD]
[TD]WnameB[/TD]
[TD]19 2015[/TD]
[TD="align: right"]402.92[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]402.92[/TD]
[TD="align: right"]100.73[/TD]
[TD="align: right"]8.5[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]109.23[/TD]
[TD="align: center"]exclude[/TD]
[TD="align: center"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #cacaca, align: center"]4[/TD]
[TD]WnameB[/TD]
[TD]20 2015[/TD]
[TD="align: right"]553.58[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]553.58[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: center"]include[/TD]
[TD="align: center"]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #cacaca, align: center"]5[/TD]
[TD]WnameB[/TD]
[TD]21 2015[/TD]
[TD="align: right"]541.14[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]541.14[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: center"]include[/TD]
[TD="align: center"]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #cacaca, align: center"]6[/TD]
[TD]WnameB[/TD]
[TD]22 2015[/TD]
[TD="align: right"]553.58[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]553.58[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: center"]include[/TD]
[TD="align: center"]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #cacaca, align: center"]7[/TD]
[TD]WnameB[/TD]
[TD]23 2015[/TD]
[TD="align: right"]435.4[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]435.4[/TD]
[TD="align: right"]105.74[/TD]
[TD="align: right"]8.5[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]114.24[/TD]
[TD="align: center"]exclude[/TD]
[TD="align: center"]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #cacaca, align: center"]8[/TD]
[TD]WnameB[/TD]
[TD]24 2015[/TD]
[TD="align: right"]541.14[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]541.14[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: center"]include[/TD]
[TD="align: center"]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #cacaca, align: center"]9[/TD]
[TD]WnameB[/TD]
[TD]25 2015[/TD]
[TD="align: right"]528.7[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]528.7[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: center"]include[/TD]
[TD="align: center"]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #cacaca, align: center"]10[/TD]
[TD]WnameB[/TD]
[TD]26 2015[/TD]
[TD="align: right"]553.58[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]553.58[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: center"]include[/TD]
[TD="align: center"]6[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #cacaca, align: center"]11[/TD]
[TD]WnameB[/TD]
[TD]27 2015[/TD]
[TD="align: right"]528.7[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]528.7[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: center"]include[/TD]
[TD="align: center"]7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #cacaca, align: center"]12[/TD]
[TD]WnameB[/TD]
[TD]28 2015[/TD]
[TD="align: right"]541.14[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]541.14[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: center"]include[/TD]
[TD="align: center"]8[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #cacaca, align: center"]13[/TD]
[TD]WnameB[/TD]
[TD]29 2015[/TD]
[TD="align: right"]566.02[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]566.02[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: center"]include[/TD]
[TD="align: center"]9[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #cacaca, align: center"]14[/TD]
[TD]WnameB[/TD]
[TD]30 2015[/TD]
[TD="align: right"]528.7[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]528.7[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: center"]include[/TD]
[TD="align: center"]10[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #cacaca, align: center"]15[/TD]
[TD]WnameB[/TD]
[TD]31 2015[/TD]
[TD="align: right"]528.7[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]528.7[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: center"]include[/TD]
[TD="align: center"]11[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #cacaca, align: center"]16[/TD]
[TD]WnameB[/TD]
[TD]32 2015[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]528.7[/TD]
[TD="align: right"]42.5[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]571.2[/TD]
[TD="align: center"]exclude[/TD]
[TD="align: center"]11[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #cacaca, align: center"]17[/TD]
[TD]WnameB[/TD]
[TD]33 2015[/TD]
[TD="align: right"]422.96[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]422.96[/TD]
[TD="align: right"]105.74[/TD]
[TD="align: right"]8.5[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]114.24[/TD]
[TD="align: center"]exclude[/TD]
[TD="align: center"]11[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #cacaca, align: center"]18[/TD]
[TD]WnameB[/TD]
[TD]34 2015[/TD]
[TD="align: right"]541.14[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]541.14[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: center"]include[/TD]
[TD="align: center"]12[/TD]
[TD="align: center"]542.1766667[/TD]
[/TR]
[TR]
[TD="bgcolor: #cacaca, align: center"]19[/TD]
[TD]WnameB[/TD]
[TD]35 2015[/TD]
[TD="align: right"]547.36[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]547.36[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: center"]include[/TD]
[TD="align: center"]13[/TD]
[TD="align: center"]542.5753846[/TD]
[/TR]
[TR]
[TD="bgcolor: #cacaca, align: center"]20[/TD]
[TD]WnameA[/TD]
[TD]19 2015[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]512.13[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]512.13[/TD]
[TD="align: center"]exclude[/TD]
[TD="align: center"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #cacaca, align: center"]21[/TD]
[TD]WnameA[/TD]
[TD]20 2015[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]512.13[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]512.13[/TD]
[TD="align: center"]exclude[/TD]
[TD="align: center"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #cacaca, align: center"]22[/TD]
[TD]WnameA[/TD]
[TD]21 2015[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]512.13[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]512.13[/TD]
[TD="align: center"]exclude[/TD]
[TD="align: center"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #cacaca, align: center"]23[/TD]
[TD]WnameA[/TD]
[TD]22 2015[/TD]
[TD="align: right"]51.21[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]51.21[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]409.7[/TD]
[TD="align: right"]17.69[/TD]
[TD="align: right"]427.39[/TD]
[TD="align: center"]exclude[/TD]
[TD="align: center"]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #cacaca, align: center"]24[/TD]
[TD]WnameA[/TD]
[TD]23 2015[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]102.43[/TD]
[TD="align: right"]8.5[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]70.76[/TD]
[TD="align: right"]181.69[/TD]
[TD="align: center"]exclude[/TD]
[TD="align: center"]0[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Formula on P3 is =COUNTIFS($A$3:A3,A3,$O$3:O3,"include")
Formula on Q3 is =IF(P3<13,"",AVERAGEIF($O$3:O3,"include",$H$3:H3))
just copy down the formula, I believe this is what you're looking for?
here's the file is you wish to download ->
https://drive.google.com/file/d/0B1t6R5UwL0-2d1NqRGNhMm0zTFE/view?usp=sharing
hope we're getting close.
Angel
Thank you
I've pasted that in but I think perhaps it needs alteration?
For example, adding up the weeks of pay to be included for holiday taken in week 35, so 12 weeks normal pay upto and including week 34 - means we use the data in H5, H6, H8-H15 and H17, H18. This adds up to £6,375.50 then dividing by 12 gives an answer of £531.29. I'd expect that amount to the result in cell P19.
Does this make sense?
Thanks so much for your help so far