Home > Software design >  Vlookup how to find the price by name in Excel
Vlookup how to find the price by name in Excel

Time:07-05

im currently learning excel and trying to do some excercise on excel Vlookup the current question that i had is

  1. find the price product id
  2. find the price by product id
  3. find the stock by product id
  4. find product name by ID
  5. find product name by stock
  6. find product price by name

i can solve 1 - 6 question and always getting error on question 6 i tried

=VLOOKUP(I20;C6:D10;2;0)

and having #N/A I dont understand why, pls help :)

the excel screenshot

CodePudding user response:

You can't use Vlookup() to return price by product name because Vlookup() always search on first column of table and in your case product name is second column (as per your current formula). Use INDEX()/MATCH() in this case like-

=INDEX(C6:C10,MATCH(I20,D6:D10,0))
  • Related