Loop vlookup until the good data with a formula in an excel report
Sometimes using 1 vlookup doesn’t give the result I want because I need to check that different conditions are good first. In such situation, I need to loop inside the first vlookup another vlookup and so on until all checks are OK so I can get the correct result.

When I use the formula ?
Each time I need to validate different conditions to get the correct data.
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) ?
=IF()
=VLOOKUP()
The formula for 1 condition in column E:
=IF(VLOOKUP(A2,A:A,1,0)="chocolate",IF(VLOOKUP(C2,C:C,1,0)="candy","good","not good"),"not good")
The formula for 2 conditions in column F:
=IF(VLOOKUP(A2,A:A,1,0)="chocolate",IF(VLOOKUP(C2,C:C,1,0)="candy",IF(VLOOKUP(B2,B:B,1,0)="cake","good","not good"),"not good"),"not good")
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...