Hi
Please can anyone help me with the formula for INDEX MATCH with two lots of criteria.
Data:
[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD]Site
[/TD]
[TD]Code
[/TD]
[TD]Supplier
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]A0001
[/TD]
[TD]Company X
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]A0001
[/TD]
[TD]Company Y
[/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]A0001
[/TD]
[TD]Company C
[/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD]A0001
[/TD]
[TD]Company Y
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]A0002
[/TD]
[TD]Company X
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]A0003
[/TD]
[TD]Company A
[/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD]A0002
[/TD]
[TD]Company B
[/TD]
[/TR]
</tbody>[/TABLE]
Criteria:
[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD]Site
[/TD]
[TD]Code
[/TD]
[TD]Supplier/RESULT
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]A0001
[/TD]
[TD]Company X
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]A0001
[/TD]
[TD]Company Y
[/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]A0001
[/TD]
[TD]Company C
[/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD]A0001
[/TD]
[TD]Company Y
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]A0002
[/TD]
[TD]0
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]A0003
[/TD]
[TD]0
[/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD]A0002
[/TD]
[TD]#REF!
[/TD]
[/TR]
</tbody>[/TABLE]
I've used the formula below but there seems to be a problem.
=INDEX($C$2:$C$13,MATCH(A17,$A$2:$A$13,0)*MATCH(B17,$B$2:$B$13,0))
Can anyone tell me where I am going wrong or if there is a better formula to use. My actual data is 000s of rows.
Please can anyone help me with the formula for INDEX MATCH with two lots of criteria.
Data:
[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD]Site
[/TD]
[TD]Code
[/TD]
[TD]Supplier
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]A0001
[/TD]
[TD]Company X
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]A0001
[/TD]
[TD]Company Y
[/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]A0001
[/TD]
[TD]Company C
[/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD]A0001
[/TD]
[TD]Company Y
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]A0002
[/TD]
[TD]Company X
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]A0003
[/TD]
[TD]Company A
[/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD]A0002
[/TD]
[TD]Company B
[/TD]
[/TR]
</tbody>[/TABLE]
Criteria:
[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD]Site
[/TD]
[TD]Code
[/TD]
[TD]Supplier/RESULT
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]A0001
[/TD]
[TD]Company X
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]A0001
[/TD]
[TD]Company Y
[/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]A0001
[/TD]
[TD]Company C
[/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD]A0001
[/TD]
[TD]Company Y
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]A0002
[/TD]
[TD]0
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]A0003
[/TD]
[TD]0
[/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD]A0002
[/TD]
[TD]#REF!
[/TD]
[/TR]
</tbody>[/TABLE]
I've used the formula below but there seems to be a problem.
=INDEX($C$2:$C$13,MATCH(A17,$A$2:$A$13,0)*MATCH(B17,$B$2:$B$13,0))
Can anyone tell me where I am going wrong or if there is a better formula to use. My actual data is 000s of rows.