ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Text formated cells with numbers (https://www.excelbanter.com/new-users-excel/240081-text-formated-cells-numbers.html)

Hugh self taught

Text formated cells with numbers
 
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

Bernie Deitrick

Text formated cells with numbers
 
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




Hugh self taught

Text formated cells with numbers
 
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





Hugh self taught

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






All times are GMT +1. The time now is 11:33 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com