Text formated cells with numbers

H

Hugh self taught

Hi All,

I'm trying to do a vlookup from one worksheet to another. The one sheet is
an export from an Access database & the lookup column is numbers but the
Access field is text. That was done for a possible eventuality in the
database.

My problem is that unless I add the label ' into the cell the lookup doesn't
work. How do I get around that?

Cheers
Hugh
 
B

Bernie Deitrick

Hugh,

Change the first argument of your VLOOKUP to convert the string to a number:

=VLOOKUP (VALUE( ), ........)

HTH,
Bernie
MS Excel MVP
 
H

Hugh self taught

Hi Bernie,

=VLOOKUP(VALUE(A4),Couples!$B$2:$D$350,2,FALSE)

A4 is what I input (ie 47) & the exported data is in worksheet Couples.
Hence I get N/A

Thanks for responding
Hugh
 
H

Hugh self taught

Hi Bernie,

Found a solution

=VLOOKUP(TEXT(A4,"#"),Couples!$B$2:$D$350,2,FALSE)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top