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 2 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 ",".
How are the formulas ?
Put this formula in sheet2:
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!B1:O8”. Secondly I ask it to match first, “France” represented by A3 in the column A “MATCH(A3,Sheet1!A:A,0)”.
Once it finds it, I ask it to match secondly “PC” which is always located in the row1 between the B and O columns “MATCH("PC",Sheet1!B1:O1,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. For more values, read Find the good data by matching 3 different criterias with a formula in an excel report.