View Single Post
 
Old 11-14-2017, 06:14 AM
NBVC's Avatar
NBVC NBVC is offline Windows 10 Office 2013
The Formula Guy
 
Join Date: Mar 2012
Location: Mississauga, CANADA
Posts: 215
NBVC will become famous soon enoughNBVC will become famous soon enough
Default

Try:

Code:
=SUMIFS(CODES!D$2:D$34,CODES!$C$2:$C$34,$B3)


copied down and across.

or if you need to also match the column headers because they may not be in consistent order, then

Code:
=SUMIFS(INDEX(CODES!$D$2:$F$34,,MATCH(C$2,CODES!$D$1:$F$1,0)),CODES!$C$2:$C$34,$B3)
Reply With Quote