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?

Posted on Jan 17, 2015 2:20 AM

Reply
5 replies

Jan 17, 2015 3:20 AM in response to hlpm

Hi hlpm,


Thanks for the 'greenie' and feedback.


Actually, I got it wrong. My formula looks for a close match

  • close match (TRUE, 1, or omitted): If there’s no exact match, select the row with the largest left-column value that is less than or equal to the search value. If you use close match, you can’t use wildcards in search-for.
  • exact match (FALSE or 0): If there’s no exact match, return an error. If you use exact match, you can use wildcards in search-for.


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.

Jan 17, 2015 8:53 AM in response to hlpm

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:


User uploaded file


SG

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

VLOOKUP to return "text"

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.