

You see when I select Projected, it is selecting the values under the Projected column of the first table (on the top left corner of the worksheet). 4) Selecting col index num argument of VLOOKUP function dynamically with IF function If the value of cell C14 is not “In Stock”, then the cell will show this value “Coming soon…”. This formula is just a product of D14 cell value and a simple VLOOKUP formula. If the value of cell C14 is “In Stock”, then the cell will show the value of this part of the formula: D14*VLOOKUP(B14,product_status,3, FALSE). This is the formula I have used in cell E14 =IF(C14="In Stock", D14*VLOOKUP(B14,product_status,3, FALSE), "Coming soon.") We have also used another IF and VLOOKUP combo under the Price $ column. If this part of the formula returns a TRUE value then the cell will show “In Stock” value, otherwise it will show “Not in Stock” value. We are using this formula VLOOKUP(B14, product_status, 2, FALSE)="Available"as the IF function’s logical_test argument. Let’s explain the logical_test argument of this formula. Here is the explanation for new Excel users: This formula is also self-explanatory from the above image. =IF(VLOOKUP(B14, product_status, 2, FALSE)="Available", "In Stock", "Not in Stock") How does this formula work?

In the 2 nd table (under the Shopping Cart), under the Status column, and in cell C14 I have input this formula: The table lists some products and their status under the Availability column. In the following worksheet (top left corner), you’re seeing I have a table. This is a good example if you manage inventory using Excel. I have used TRUE value as the range_lookup argument, so the VLOOKUP function will search for the closest value equal to or less than the lookup value.ģ) Using VLOOKUP function as the logical test of IF function (good for inventory management).So, the VLOOKUP function will return the value from the 2 nd column of the same row where it finds the lookup value. IF(F5="New", new_customer, old_customer): This formula will return one of the two tables: new_customer and old_customer.G5 is the lookup_value here and it is an amount under the Sales column.In cell H5, I have used this formula: =VLOOKUP(G5, IF(F5="New", new_customer, old_customer), 2, TRUE).Here is the explanation for the complete laymen: In the following image, you’re seeing how I have made a formula using VLOOKUP and IF functions to choose one of the two table arrays.

#Excel read another excel vlookup example how to
In this example, you will see how to use two or more table arrays in the Excel VLOOKUP formula.

VLOOKUP finds the value of the F8 cell in the shop_price table array and if it finds then returns the value of the 3 rd column of the same row. If the logical test is FALSE, then it returns this part of the formula VLOOKUP(F8, shop_price,3, FALSE).It searches for the value of cell F8 in the shop_price table array and if it finds there then returns the value of the 2 nd column of the same row. If the above logical test is TRUE, it returns this part of the formula VLOOKUP(F8, shop_price,2, FALSE).IF Function tests whether $C$4 cell value is equal to value Meena.Let me explain the formula in cell G8 = IF($C$4="Meena",VLOOKUP(F8,shop_price,2,FALSE),VLOOKUP(F8,shop_price,3,FALSE)) 1) Using VLOOKUP and IF condition to Choose the best Bargain Store
