Originally Posted by
Pete_UK
You can use this formula in B2:
=IFERROR(SUMIFS(INDEX(Sheet1!$E:$E,MATCH($A2,Sheet1!$A:$A,0)+1):INDEX(Sheet1!$E:$E,MATCH("ed"&MID($A2,FIND(":",$A2)+1,4),Sheet1!$C:$C,0)-1),
INDEX(Sheet1!$C:$C,MATCH($A2,Sheet1!$A:$A,0)+1):INDEX(Sheet1!$C:$C,MATCH("ed"&MID($A2,FIND(":",$A2)+1,4),Sheet1!$C:$C,0)-1),B$1),0)
then copy across and down as required.
Note that I have used INDEX, rather than the volatile OFFSET function, to generate the necessary ranges, and the formula returns zero if the Resource Clocked is not present.
Hope this helps.
Pete
Bookmarks