A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Text formated cells with numbers



 
 
Thread Tools Display Modes
  #1  
Old August 18th, 2009, 07:56 PM posted to microsoft.public.excel.newusers
Hugh self taught[_2_]
external usenet poster
 
Posts: 57
Default 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
  #2  
Old August 18th, 2009, 08:05 PM posted to microsoft.public.excel.newusers
Bernie Deitrick
external usenet poster
 
Posts: 2,496
Default 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



  #3  
Old August 18th, 2009, 08:42 PM posted to microsoft.public.excel.newusers
Hugh self taught[_2_]
external usenet poster
 
Posts: 57
Default 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




  #4  
Old August 18th, 2009, 08:44 PM posted to microsoft.public.excel.newusers
Hugh self taught[_2_]
external usenet poster
 
Posts: 57
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




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:58 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.