Lookup Table using text?

EssKayKay

Well-known Member
Joined
Jan 5, 2003
Messages
533
Office Version
  1. 2007
Platform
  1. Windows
Hello,
I was trying to use a lookup table to return results. However, my formula was returning faulty answers. The lookup column B contains text, the result column C contains values. Some of the results were correct, others not.

As a simple example:
Lookup cell: C2
Formula cell: C3
Formula: =VLOOKUP(C2,B7:C10,2)
Lookup Range: B7:C10

1743862708453.jpeg


If I enter ONE in C2 it returns 1 in C3 which is correct
If I enter TWO it returns 2 which is correct
If I enter THREE it returns 1 which is INCORRECT
If I enter FOUR it returns N/A

Maybe instead of using lookup table I’ll just concatenate If statements instead (I may need help on this later). However, I’m still wondering why this lookup table does not work.

Thanks for viewing,
Steve K.
 
Hi Steve,

Change the formula as below :
Excel Formula:
=VLOOKUP(C2,B7:C10,2,False)
 
Upvote 0
Solution
Hi Steve,

Change the formula as below :
Excel Formula:
=VLOOKUP(C2,B7:C10,2,False)
Thank you Sanjeev that did it. Could you explain what the True/False does? I was not aware of that.

Thanks again,
Steve
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top