

If it is greater than 180, then we multiply the value by 80% (i.e., 20% discount), else we multiply the result by 90% (i.e., 10% discount). First, it checks the result of the lookup function. We implement this by using the formula as shown in the screenshot below: Now, let’s move to our pricing strategy, i.e., if the cost is more than 180, we will provide a 20% discount, else we will provide only a 10% discount. read more so that in cell E5, you can select any of the fruits mentioned in column B. I have used the Data Validation in excel Data Validation In Excel Data validation in Excel is used to limit a user's inputs to specified cells or input ranges by offering pre-defined inputs for selection to avoid multiple redundant data inputs. Please see the screenshot below for the data:Ĭells B3:C8 shows the price of Fruits. Let’s suppose we want to have a discounting strategy applied based on the retail price of stuff. Let’s move to the third example now, wherein, based on the ‘vlookup’ result. Now, see as the cut off was reduced to 90, the performance of Vijay in the same subject of Chemistry has been classified as “Great” compared to “Good” as shown in the previous example. The only difference is that the value to which now you are comparing the results is a dynamic one stored in cell E8. It is like what I had shown in the earlier example. You want to change cutoff values and instantly want to see whether the value is “Great/Good” (in this case). Now, let’s move on to another example, say where you want to make this cutoff dynamic. Now, it checks, if these marks are greater than 92, it is “Great” otherwise, it is “Good.” Since here, we are getting the Marks of Vijay corresponding to Chemistry, i.e., 92.

Now, see the cell F3, we are doing a ‘vlookup’ just like above, it will give the result “92”. Now, let’s suppose we have decided on a condition, that if the marks scored is greater than 92, then it will be shown as “Great” otherwise, it will be shown as “Good.” Now, when I see the marks, I am not interested in their actual marks, but I just want to see whether they are great or good. The data table remains the same, as explained during the ‘vlookup’ function. Now that I have explained to you the formula template and some of the use cases, let’s try to explain it better through examples and then explaining it in a lucid way.
HOW TO DO VLOOKUP IN EXCEL HOW TO
How to Use Vlookup with IF Statement in Excel? Compare the value returned by Vlookup and, based on it, choose between 2 sets of calculations.Compare the value returned by Vlookup with a value present in another cell and return values as above.Compare the value returned by Vlookup with that of a sample value and return “True/False,” “Yes/No,” or 1 out of 2 values determined by us.IF(VLOOKUP(…) = sample_value, TRUE, FALSE) Now that we have revised these 2 let’s investigate the combinations of these 2. Let’s say you want to know the marks of Vijay in Chemistry.įrom the ‘vlookup’ formula template above, you can see the ‘lookup_value’ is “Vijay,” table array is “B2:E6” since we are interested in marks of “Chemistry,” column number is 3, and since we are interested in an “exact match,” 4 th argument is “FALSE” which denotes approximate match. Suppose, cells ‘B2:E6’ is the data containing the marks of Students in the 3 subjects shown. Similarly, for the ‘Vlookup’ Function, suppose you have data in a table, and you want to look up a value in any of the columns corresponding to a value in the left column of the table. In the above formula, “logical_test” is the condition on which we are testing, then the value if the condition is True, and then Value if the condition is False. ‘If’ is used when you want to have a condition decide which value is to be populated in a cell. I will briefly explain to you the ‘IF Statement’ & ‘Vlookup’ Function, so that combination becomes easier to explain.

‘Vlookup’ with ‘If’ statement: Returns ‘True/False’ or ‘Yes/No.’ Here, we will combine the twin functions of ‘IF Function’ & ‘VLOOKUP.’ We will also see how to deal with #NA errors, which we might sometimes receive while using a combination of ‘IF Statement’ & ‘VLOOKUP.’ While the two are quite important on their own, together, they provide more value. Vlookup is a reference function while if is a conditional statement in excel, these both functions are combined together to find out certain value which meets the criteria and also match the reference value, based on the results of Vlookup function If statements display the result, in other words, we nest Vlookup in If function.
