Find the good data by matching 2 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 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 is/are the formula(s) ?
=INDEX()
=MATCH()
Put this formula in sheet2:
=INDEX(Sheet1!B1:O8,MATCH(A3,Sheet1!A:A,0),MATCH("PC",Sheet1!B1:O1,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!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.
Interesting Topics
-
Be successfully certified ITIL 4 Managing Professional
Study, study and study, I couldn’t be successfully certified without studying it, if you are interested...
-
Be successfully certified ITIL 4 Strategic Leader
With my ITIL 4 Managing Professional certification (ITIL MP) in the pocket, it was time to go for the...
-
Hide visual and change background color based on selection
Some small tricks to customize the background colour of a text box...
-
Stacked and clustered column chart or double stacked column chart
In excel, I use a lot the combination of clustered and stacked chart...