VLOOKUP to return "text"
LOOKUP returns text values but it won't allow exact-match search.
VLOOKUP allows exact-match search but won't return anything other than numbers.
I need to exact-match search then return text. How can I achieve this?
LOOKUP returns text values but it won't allow exact-match search.
VLOOKUP allows exact-match search but won't return anything other than numbers.
I need to exact-match search then return text. How can I achieve this?
Hi! I found the error in my code by looking at yours!
THANK YOU SO MUCH!!!!
Hi hlpm,
Thanks for the 'greenie' and feedback.
Actually, I got it wrong. My formula looks for a close match
It should be
=VLOOKUP(A2,Data::B:C,2,0)
(zero to specify an exact match).
The formula works because there are only exact matches in my example 😊 (blush).
Regards,
Ian.
Hi hlpm,
Another way to control for an exact match is to use a popup of search terms that are reflected in the lookup table. I have a 200 item popup that was easy to make (used the table I search) and very quick to scroll thru on my mac.
quinn
And don't forget there is the versatile INDEX MATCH combination that avoids some of the limitations of LOOKUP and VLOOKUP.
You can specify exact or somewhat fuzzy (find value, find smallest, find largest) and the order of the columns in the lookup range can be whatever you want (i.e., unlike VLOOKUP the value doesn't have to be looked up in the leftmost column; it can be any column you specify).
Here, for example, you can look up the first name for a given last name, without moving last name to the leftmost column in your lookup range:
SG
VLOOKUP to return "text"