on-internet
← Community

Multiple criteria formula to include horizontal and vertical lookup

Stack Overflow ·

I am trying to write a formula that has multiple conditions looking up both horizontally and vertically. In the Excel table below, col's A to G are the data. Col's I to L needs to be the combined lookup data that looks to Col's A to G to return the outcome into col. L - please see attachment for the table. I have tried several permutations using Index/Match and XLookup but to no avail, eg: =INDEX(D3:G7,MATCH(1,(D2:G2=J2)\*(C3:C7=K2)\*(A3:A7=I2)\*(B3:B7=I2),0)) =XLOOKUP(1,(D2:G2=J2)\*(C3:C7=K2)\*(A3:A7=I2)\*(B3:B7=I2),D3:G7)

Comments

Sign in or sign up to comment and upvote.

No comments yet.