Lookup table is finding the wrong value

DataJo

New Member
Joined
Mar 10, 2014
Messages
2
Hello
We have created a lookup formula in Excel to look at 2 columns on another sheet, to find out what value the character (in cell K) has. This is using this formula: =IFERROR(LOOKUP(K$3,VALUES!$B$4:$B$51,VALUES!$A$4:$A$51),"")

However, the character in cell K is a sublevels, e.g. 5a, 5b, 5c. When it pulls through the value from the lookup table it is only showing the highest value- e.g. if cell K is 5c it is showing the value for 5a instead (this is the highest of the 5s).

Is there a way to make sure it selects the exact value and doesnt default to the highest for whatever reason it is doing this?

Many thanks!!

Jo
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Welcome to the forum.

If you use VLookup rather than Lookup and set the last parameter to 0 it will only return an exact match.
 
Upvote 0
If you use VLookup rather than Lookup and set the last parameter to 0 it will only return an exact match.

Vlookup can't find a match in column B and return a corresponding value from column A (to the left)

You could use Index/Match though

=INDEX(VALUES!$A$4:$A$51,MATCH(K$3,VALUES!$B$4:$B$51,0))
 
Upvote 0
Thank you so much, the Index/Match formula works great! Yes they were in ascending order. That's really helpful :)
 
Upvote 0

Forum statistics

Threads
1,214,950
Messages
6,122,436
Members
449,083
Latest member
Ava19

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