Display the value when the condition matches with a formula in an excel report
With a big data, it is not easy to spot the value I need so I needed a formula that once it matches the condition that I am asking for, it will display the corresponding value. In fact, this is an alternative of the vlookup because if vlookup is not working as I expected, I try this one.

When I use the formula ?
To show me the value corresponding to a specific condition.
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()
This formula will find “chocolate” in the column A and once done, it will display its corresponding value in the column F:
=INDEX(F:F,MATCH("chocolate",A:A,0))
This formula will do the same thing, only that its search area is from the column D to G:
=INDEX(D2:G4,MATCH("chocolate",A2:A4,0),4)
The number 4 corresponds to the column G because D to G is 1 to 4.

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...
-
Refresh Power BI
From the Power BI Service, I can set refresh but, for instance, there is no option to do it monthly or each time a change is made...
-
Power BI alerts to be sent by email from an excel file based on condition
I will explain how to send a list of emails from an excel file after creating alerts...