View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.newusers
Hugh self taught Hugh self taught is offline
external usenet poster
 
Posts: 7
Default Text formated cells with numbers

Hi Bernie,

Found a solution

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

"Hugh self taught" wrote:

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

"Bernie Deitrick" wrote:

Hugh,

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

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

HTH,
Bernie
MS Excel MVP


"Hugh self taught" wrote in message
...
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