Formula Lookup returns wrong value

RisingPhoenix

New Member
Joined
May 5, 2002
Messages
3
The formula Lookup keeps returning the cell value in the row above the one that I want.
Does anyone know how to fix it?

Regards
 
The formula Lookup keeps returning the cell value in the row above the one that I want.
Does anyone know how to fix it?

This was happening to me. I changed the formula from TRUE to FALSE after making sure the fields I was matching...actually matched. They did not, due to several "spaces" after the text. Couldn't see em...but they were there and the TRUE made it look for something close...like the field just above it!!!
 
Upvote 0

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
you should not need to sort your data at all if you're using the VLOOKUP formula with a False indicator.

=vlookup(REFCELL, DATA RANGE, COLUMN, FALSE)

I use this formula just about every minute of every work day with no issues.
 
Upvote 0
The range lookup seaches must be sorted (ascending). If the lookup function does not find the value to be looked up, it will return the value just before it.

It sounds to me like the value you are looking for and the value in your lookup range might be just a bit different (maybe a trailing space?).

Whenever I do lookups, I like to nest them:

=IF(LOOKUP(C4,F4:F14,F4:F14)=C4,LOOKUP(C4,F4:F15,G4:G14),"Not Found")

Where C4 is the value to search for, F4:F14 is the search range and G4:G14 is the return range.

Hope this helps,

K

Excellent. Additional trailing space (due to copy of data) was the problem. Thanks for the tip.
 
Upvote 0

Forum statistics

Threads
1,214,924
Messages
6,122,294
Members
449,077
Latest member
Rkmenon

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