Forum

Notifications
Clear all

Lookup_value Issues

4 Posts
2 Users
0 Reactions
80 Views
(@paul_f)
Posts: 81
Estimable Member
Topic starter
 

Hello,

I have what must be a fairly common problem with the lookup_value field in VLOOKUP and MATCH. If I copy a list from somewhere into my workbook, using that list for VLOOKUP or MATCH, often the numbers that I want to use as the lookup reference are actually formatted as text. In the same list, I'll have text items to look up, too. For example:

Cell A1: 45383
Cell A2: G6552

The text field above is easy--leave it as is--but the number in A1 might actually be text. If I don't want to change the list upon import, can I use a formula to convert? For example, =VLOOKUP(value(A1,...). The value formula works for A1, but not A2. I need the same formula that will convert text numbers to values and leave text references like A2, above, intact. Any ideas?

Paul

 
Posted : 20/01/2018 2:36 am
(@sunnykow)
Posts: 1417
Noble Member
 

Hi Paul

You can give this a try.

If the 1st lookup (value) is an error, then use the 2nd lookup (text).

Sunny

 
Posted : 20/01/2018 4:12 am
(@paul_f)
Posts: 81
Estimable Member
Topic starter
 

Thanks, Sunny. That's a clever way to handle it.

Paul

 
Posted : 20/01/2018 7:48 pm
(@sunnykow)
Posts: 1417
Noble Member
 

Hi Paul

Thanks for your feedback. Glad we are able to help.

Cheers

Sunny

 
Posted : 20/01/2018 8:29 pm
Share: