Using your posted example...
This formula returns the total sq ft for the employee matching the left
side of the G5 heading and the pay code matching the right side of that
heading:
G7: =SUMPRODUCT(($A$6:$A$20=LEFT(G$5,
FIND(" ",G$5)-1))*($C$6:$C$20=--RIGHT(G$5,1))*$B$6:$B$20)
Here's the *hardcoded* version:
G7: =SUMPRODUCT(($A$6:$A$20="01smit")*($C$6:$C$20=4)*$B$6:$B$20)
In the sample sheet, both of those formulas return 60.
...but you can copy the first formula into cell H7 and it will return 25.
Is that something you can work with?
Bookmarks