Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default GETTING RID OF LEADING HASH MARKS

While attempting to use VLOOKUP THE LOOKUP VALUE IS 12345 the column that
has the list of values to be looked at has '12345 so it is not recognized
and I get NA. The table I am working with has the ' attached to all of the
entries in that column. Is there any way I can get rid of the hash mark so
that my lookup will recognize the vale?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,073
Default GETTING RID OF LEADING HASH MARKS

On May 14, 1:50 pm, CLEM wrote:
While attempting to use VLOOKUP THE LOOKUP VALUE IS 12345 the column that
has the list of values to be looked at has '12345 so it is not recognized
and I get NA. The table I am working with has the ' attached to all of the
entries in that column. Is there any way I can get rid of the hash mark so
that my lookup will recognize the vale?


One way is to use TEXT(A1,"@") as the lookup_value in the VLOOKUP
function instead of A1 when the lookup_value is in A1.

BTW it's an apostrophe ('), not a hash.

Ken Johnson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default GETTING RID OF LEADING HASH MARKS

Worked great, thanks!!!

"Ken Johnson" wrote:

On May 14, 1:50 pm, CLEM wrote:
While attempting to use VLOOKUP THE LOOKUP VALUE IS 12345 the column that
has the list of values to be looked at has '12345 so it is not recognized
and I get NA. The table I am working with has the ' attached to all of the
entries in that column. Is there any way I can get rid of the hash mark so
that my lookup will recognize the vale?


One way is to use TEXT(A1,"@") as the lookup_value in the VLOOKUP
function instead of A1 when the lookup_value is in A1.

BTW it's an apostrophe ('), not a hash.

Ken Johnson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,073
Default GETTING RID OF LEADING HASH MARKS

On May 17, 12:00 pm, CLEM wrote:
Worked great, thanks!!!

"Ken Johnson" wrote:
On May 14, 1:50 pm, CLEM wrote:
While attempting to use VLOOKUP THE LOOKUP VALUE IS 12345 the column that
has the list of values to be looked at has '12345 so it is not recognized
and I get NA. The table I am working with has the ' attached to all of the
entries in that column. Is there any way I can get rid of the hash mark so
that my lookup will recognize the vale?


One way is to use TEXT(A1,"@") as the lookup_value in the VLOOKUP
function instead of A1 when the lookup_value is in A1.


BTW it's an apostrophe ('), not a hash.


Ken Johnson


You're welcome CLEM.
Thanks for the feedback.

Ken Johnson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default GETTING RID OF LEADING HASH MARKS

Thye say if you can't bring Muhamed to the mountain, bring the mountain to
Muhamed. The hash mark is a single quote used to make the cell string data
instead of a number. Why don't you look up the number with the quote.

from
=VLookup(A1, A1:D100,3)

=VLookup("'" & A1, A1:D100,3)

The first three character are
Double Quote
Single Quote
Double Quote

Basically the change adds a single quote to the beginning of A1. I simply
add the single quote to the search string rather than remove it from the
lookup table.


"CLEM" wrote:

While attempting to use VLOOKUP THE LOOKUP VALUE IS 12345 the column that
has the list of values to be looked at has '12345 so it is not recognized
and I get NA. The table I am working with has the ' attached to all of the
entries in that column. Is there any way I can get rid of the hash mark so
that my lookup will recognize the vale?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default GETTING RID OF LEADING HASH MARKS

Thank you this worked great also........

"Joel" wrote:

Thye say if you can't bring Muhamed to the mountain, bring the mountain to
Muhamed. The hash mark is a single quote used to make the cell string data
instead of a number. Why don't you look up the number with the quote.

from
=VLookup(A1, A1:D100,3)

=VLookup("'" & A1, A1:D100,3)

The first three character are
Double Quote
Single Quote
Double Quote

Basically the change adds a single quote to the beginning of A1. I simply
add the single quote to the search string rather than remove it from the
lookup table.


"CLEM" wrote:

While attempting to use VLOOKUP THE LOOKUP VALUE IS 12345 the column that
has the list of values to be looked at has '12345 so it is not recognized
and I get NA. The table I am working with has the ' attached to all of the
entries in that column. Is there any way I can get rid of the hash mark so
that my lookup will recognize the vale?

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
Are hash tables in Excel possible? Mahurshi Akilla Excel Discussion (Misc queries) 4 May 10th 23 07:44 PM
to get the relative marks from a table of names,subjects & marks? kswarrier Excel Worksheet Functions 2 February 19th 08 08:13 AM
Graph with large data range (hash marks on axis) cebceb122 Excel Discussion (Misc queries) 1 January 10th 07 01:47 AM
Show hash marks instead of text Mary Thomas Excel Worksheet Functions 3 June 22nd 06 11:33 PM
Hash marks in a chart clayton Charts and Charting in Excel 0 May 25th 05 04:36 PM


All times are GMT +1. The time now is 08:17 AM.

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"