Hello jzosopp and Welcome to Excel Forum.
This is a low tech proposal.
Put a helper table at the bottom of the 'Pivot Values' sheet.
Column A of the table would be populated by the time intervals.
Columns B:IU would be populated by the formula:
Formula:
=IF(C$6="",COUNTIF('Pivot Values'!C$9:C$76,">"&$A82)-COUNTIF('Pivot Values'!B$9:B$76,">"&$A82),"")
On the 'Actual Staff' sheet the values are taken from the helper table using the formula:
Formula:
=INDEX('Pivot Values'!$B$82:$IU$109,MATCH($B2,'Pivot Values'!$A$82:$A$109,0),MATCH(C$1,'Pivot Values'!$B$6:$IU$6,0))
I imagine that some modification will need to be made to accommodate the different types of staff (GNR ESP, GNR FRE etc.) however perhaps this will get you started.
Let us know if you have any questions.
Bookmarks