Forum Discussion
Index Match with multiple criteria
- Apr 12, 2019
harlequintp , that could be
=INDEX($C$2:$C$9,IF(ISNUMBER(G2),MATCH(G2,$A$2:$A$9,0),MATCH(1,INDEX((H2=$D$2:$D$9)*ISNUMBER(SEARCH(A2,$G$2:$G$9)),0 ),0)))
harlequintp , here you first check if the value is number or not. If it's number when simple MATCH. If not, when within second MATCH the INDEX generates array of 1 or 0 (which is actually TRUE and FALSE) for your two criteria, multiplication means AND condition. MATCH takes position of 1 (aka TRUE) in that array, other words position of the row for which all your criteria match.
- harlequintpApr 15, 2019Copper Contributor
Hi Sergie,
Not sure if you will see this. You helped me last week on an Index/Match formula. I've just been sent the data that I need to apply the formula to and there is a small difference. In the ID column there I used the example of 456A, you have used the ISNUMERIC funtion to strip out the A to then do a check against the numbers. In the data I have been sent there can be something like 1ASN3Z in the G column and in my Ref table column A the letters SN. In this case I would be looking for the SN in 1ASN3Z, the letter code and QTY will only every appear as unique so it will be still a 1 to 1 match. I am thinking it is just a case of removing the ISNUMERIC function but I am sure it wont be as easy as that. Again my apologies that I wasn't sent all the possible examples of this. I have re-uploaded an example to show this.
- harlequintpApr 15, 2019Copper Contributor
Hi Sergie,
Not sure if you will see this. You helped me last week on an Index/Match formula. I've just been sent the data that I need to apply the formula to and there is a small difference. In the ID column there I used the example of 456A, you have used the ISNUMERIC funtion to strip out the A to then do a check against the numbers. In the data I have been sent there can be something like 1ASN3Z in the G column and in my Ref table column A the letters SN. In this case I would be looking for the SN in 1ASN3Z, the letter code and QTY will only every appear as unique so it will be still a 1 to 1 match. I am thinking it is just a case of removing the ISNUMERIC function but I am sure it wont be as easy as that. Again my apologies that I wasn't sent all the possible examples of this. I have re-uploaded an example to show this.