# Help with excel cell formula

I have an existing formula

=IFERROR(INDEX(mapping!C:C,MATCH('all deals'!C2,mapping!A:A,0)),"")

It looks at my existing tab column C and the mapping tab column A and pulls in mapping column C when there is a match

I need the formula to also make sure that existing tab column J equals mapping column B

so for it to pull across mapping column C
- mapping column A must equal existing tab column C
and
- mapping column B must equal existing tab column J
###### Who is Participating?

Commented:
Try:

=IFERROR(INDEX(mapping!\$C\$1:\$C\$1000,MATCH(1,INDEX((mapping!\$A\$1:\$A\$1000='all deals'!C2)*(mapping!\$B\$1:\$B\$1000='all deals'!J2),0),0)),"")

Notice that I didn't use whole columns, as this type of formula is less efficient than your original.

If th column C values are numeric, then you can use SUMIFS, eg.

=SUMIFS(mapping!C:C,mapping!A:A,'all deals'!C2,mapping!B1:B1000,'all deals'!J2)

or you can concatenate columns A and B on your mapping sheet, then reference them in a regular INDEX/Match formula with C2&J2 concatenated as lookup values....
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.