Forum Discussion

bullsgame1's avatar
bullsgame1
Copper Contributor
Oct 12, 2022

Looking up a Horizontal and Vertical value to find a total amount

Hey Everyone, 

I am trying to write a function that will look up a horizontal and its corresponding vertical value in the matrix to find a total amount paid in another sheet. 2 criteria's have to be met in order for a number to populate in the matrix. This is what I've came up with thus far, but I keep returning an error. Any help is appreciated!

 

=IFERROR(INDEX('2022 August'!$B$7:$L$85,XMATCH('2022 August'!A7,Sheet2!$A:$C),XMATCH('2022 August'!$B$6,Sheet2!$A:$C)),"N/A")

Resources