## Find the good data by matching 3 different criterias with a formula in an excel report

It is a combination of “index” and “match” formulas, much better than the “vlookup” formula because it doesn’t matter where will be the values.

When I use the formula ?

When I need to match 3 different values and I know that every month, those values won’t be at the same cell location.

How to use the formula ?

The formula in this topic is with "," so depending of the operating system of your PC, the formula should have ";" instead of ",".

For the formula to work properly, I need to do an additional action, by pressing “shift + control + enter” in order to put the formula between brackets. If not, it will show an error.

How are the formulas ?

=INDEX()

=MATCH()

Putting the formula in sheet2:

=INDEX(Sheet1!\$B\$1:\$S\$7,MATCH(A2,Sheet1!A:A,0),MATCH("Type France"&"number",Sheet1!\$B\$1:\$S\$1&Sheet1!\$B\$2:\$S\$2,0))

Then pressing “shift + control + enter” to put it between brackets so I will get the result and not an error:

{=INDEX(Sheet1!\$B\$1:\$S\$7,MATCH(A2,Sheet1!A:A,0),MATCH("Type France"&"number",Sheet1!\$B\$1:\$S\$1&Sheet1!\$B\$2:\$S\$2,0))}

I ask the formula to index first all values between the column B and the last one from the first row to the last one “INDEX(Sheet1!\$B\$1:\$S\$7”. Secondly I ask it to match first, “windows” represented by A2 in the column A “MATCH(A2,Sheet1!A:A,0)”.

Once it finds it, I ask it to match secondly “type France” and thirdly “number”, “type France” is always located in the row1 between the B and S columns and “number” is always located in the row2 between the same columns “MATCH("Type France"&"number",Sheet1!\$B\$1:\$S\$1&Sheet1!\$B\$2:\$S\$2,0)”

NOTE: in this example, the “type” cell (for instance “type France”) is merged, I need to unmerge then copy/paste to the empty cells because merged cells won’t work.