Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
DTTODGG
 
Posts: n/a
Default Apostrophe vs Text format

Hello-

I'm attempting a VLOOKUP.

The lookup value is a field that has the little green triangle in the upper
left corner of the cell (like when you put an apostrophe before a number) ie
10054

The col_index_nbr in another file is a number 10054 (without the little
green triangle).

When I attempt a VLOOKUP - it does not work.
If I re-type the col_index_nbr so that is begins with an apostrophe, the
lookup works. But my file is huge and I can't re-type all of these numbers.
If I reformat them to "text", it still does not find a match.

Please help.
  #2   Report Post  
Posted to microsoft.public.excel.newusers
Dave Peterson
 
Posts: n/a
Default Apostrophe vs Text format

Your key column in the lookup table is numeric, but the value that you're
matching up is Text.

You can coerce those Text values to number values by:
selecting an empty cell
edit|copy
select the range of text numbers
edit|Paste special|check add



DTTODGG wrote:

Hello-

I'm attempting a VLOOKUP.

The lookup value is a field that has the little green triangle in the upper
left corner of the cell (like when you put an apostrophe before a number) ie
10054

The col_index_nbr in another file is a number 10054 (without the little
green triangle).

When I attempt a VLOOKUP - it does not work.
If I re-type the col_index_nbr so that is begins with an apostrophe, the
lookup works. But my file is huge and I can't re-type all of these numbers.
If I reformat them to "text", it still does not find a match.

Please help.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.newusers
DTTODGG
 
Posts: n/a
Default Apostrophe vs Text format

Thank you for your quick response, Dave!

You are correct, the key column is numeric and the matching column is text.

The problem is, the matching column is text because it is a 13 digit number
:-( Therefore, I can't use your suggestion.

So, would I rather coerce the key column to have the little apostrophe? I
don't know how to do this. It seems so simple. I can manually change the key
column to have an apostrophe and then everything works. If I convert it to
text it does not.

The question is: what's the difference between the little green triangle and
formating a cell to "text"? And how can you get little green apostophes in
many rows?

VLOOKUP
B2 (where B2 has the little green triangle (because the numbers range from 5
to 13 digits)
filename and valid data (where col A is a 5 digit number and col B is a 13
digit number with a little green triangle)
1020600060054 (where this number has the little green triangle)
False

Thank you again.

"Dave Peterson" wrote:

Your key column in the lookup table is numeric, but the value that you're
matching up is Text.

You can coerce those Text values to number values by:
selecting an empty cell
edit|copy
select the range of text numbers
edit|Paste special|check add



DTTODGG wrote:

Hello-

I'm attempting a VLOOKUP.

The lookup value is a field that has the little green triangle in the upper
left corner of the cell (like when you put an apostrophe before a number) ie
10054

The col_index_nbr in another file is a number 10054 (without the little
green triangle).

When I attempt a VLOOKUP - it does not work.
If I re-type the col_index_nbr so that is begins with an apostrophe, the
lookup works. But my file is huge and I can't re-type all of these numbers.
If I reformat them to "text", it still does not find a match.

Please help.


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.newusers
Dave Peterson
 
Posts: n/a
Default Apostrophe vs Text format

I don't understand why 13 digits would represent a problem.

And if =vlookup(value(... worked, then I think that the other suggestion would,
too.

DTTODGG wrote:

Thank you for your quick response, Dave!

You are correct, the key column is numeric and the matching column is text.

The problem is, the matching column is text because it is a 13 digit number
:-( Therefore, I can't use your suggestion.

So, would I rather coerce the key column to have the little apostrophe? I
don't know how to do this. It seems so simple. I can manually change the key
column to have an apostrophe and then everything works. If I convert it to
text it does not.

The question is: what's the difference between the little green triangle and
formating a cell to "text"? And how can you get little green apostophes in
many rows?

VLOOKUP
B2 (where B2 has the little green triangle (because the numbers range from 5
to 13 digits)
filename and valid data (where col A is a 5 digit number and col B is a 13
digit number with a little green triangle)
1020600060054 (where this number has the little green triangle)
False

Thank you again.

"Dave Peterson" wrote:

Your key column in the lookup table is numeric, but the value that you're
matching up is Text.

You can coerce those Text values to number values by:
selecting an empty cell
edit|copy
select the range of text numbers
edit|Paste special|check add



DTTODGG wrote:

Hello-

I'm attempting a VLOOKUP.

The lookup value is a field that has the little green triangle in the upper
left corner of the cell (like when you put an apostrophe before a number) ie
10054

The col_index_nbr in another file is a number 10054 (without the little
green triangle).

When I attempt a VLOOKUP - it does not work.
If I re-type the col_index_nbr so that is begins with an apostrophe, the
lookup works. But my file is huge and I can't re-type all of these numbers.
If I reformat them to "text", it still does not find a match.

Please help.


--

Dave Peterson


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.newusers
bpeltzer
 
Posts: n/a
Default Apostrophe vs Text format

Alternately, if you continue to get imported data of this form, you could
embed the conversion from text to number in the lookup formula. Instead of
=vlookup(a1...), =vlookup(value(a1)...)

"Dave Peterson" wrote:

Your key column in the lookup table is numeric, but the value that you're
matching up is Text.

You can coerce those Text values to number values by:
selecting an empty cell
edit|copy
select the range of text numbers
edit|Paste special|check add



DTTODGG wrote:

Hello-

I'm attempting a VLOOKUP.

The lookup value is a field that has the little green triangle in the upper
left corner of the cell (like when you put an apostrophe before a number) ie
10054

The col_index_nbr in another file is a number 10054 (without the little
green triangle).

When I attempt a VLOOKUP - it does not work.
If I re-type the col_index_nbr so that is begins with an apostrophe, the
lookup works. But my file is huge and I can't re-type all of these numbers.
If I reformat them to "text", it still does not find a match.

Please help.


--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.newusers
DTTODGG
 
Posts: n/a
Default Apostrophe vs Text format

Brillant! So, simple, so beautiful!

I REALLY do appreciate EVERYONE who contributes on this site. It has been a
GREAT learning experience for me.

Thank-you EVERYONE.

"bpeltzer" wrote:

Alternately, if you continue to get imported data of this form, you could
embed the conversion from text to number in the lookup formula. Instead of
=vlookup(a1...), =vlookup(value(a1)...)

"Dave Peterson" wrote:

Your key column in the lookup table is numeric, but the value that you're
matching up is Text.

You can coerce those Text values to number values by:
selecting an empty cell
edit|copy
select the range of text numbers
edit|Paste special|check add



DTTODGG wrote:

Hello-

I'm attempting a VLOOKUP.

The lookup value is a field that has the little green triangle in the upper
left corner of the cell (like when you put an apostrophe before a number) ie
10054

The col_index_nbr in another file is a number 10054 (without the little
green triangle).

When I attempt a VLOOKUP - it does not work.
If I re-type the col_index_nbr so that is begins with an apostrophe, the
lookup works. But my file is huge and I can't re-type all of these numbers.
If I reformat them to "text", it still does not find a match.

Please help.


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing cell format - for example text to numeric sjrku Excel Discussion (Misc queries) 3 December 30th 05 10:40 PM
zip codes not being saved as text in CSV format MelissaM Excel Discussion (Misc queries) 5 September 9th 05 11:10 PM
insert text conditionally and format John Sawyer Excel Discussion (Misc queries) 3 August 17th 05 06:51 PM
Format Number to Text Roni Excel Worksheet Functions 2 May 17th 05 03:17 PM
Problem with wrap text format Mitch Excel Worksheet Functions 1 January 20th 05 09:46 AM


All times are GMT +1. The time now is 11:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"