Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Sonohal
 
Posts: n/a
Default VLOOKUP for a cell with both letters and numbers

Hello

I am trying to use VLOOKUP to find an exact match, the problem is that the
cell contains data that is a series of letters and numbers. I have used
vlookup to find and then return data successfully if the search cells are all
letters OR all numbers, but can't get it to work when both are present. I
have also tried formatting the cells to read as 'text', or 'general', neither
of which made a difference. PLEASE HELP! Thanks
  #2   Report Post  
Trevor Shuttleworth
 
Posts: n/a
Default

Please give examples of the data you are using, the value you are using as a
key and the LOOKUP formula itself

Regards

Trevor


"Sonohal" wrote in message
...
Hello

I am trying to use VLOOKUP to find an exact match, the problem is that the
cell contains data that is a series of letters and numbers. I have used
vlookup to find and then return data successfully if the search cells are
all
letters OR all numbers, but can't get it to work when both are present. I
have also tried formatting the cells to read as 'text', or 'general',
neither
of which made a difference. PLEASE HELP! Thanks



  #3   Report Post  
Sonohal
 
Posts: n/a
Default

This is the formula that works:
=VLOOKUP(J1,'VW THCD List'!G:BE,3,0)
It searches data on a different tab, the inserts it.

I am essentiall looking up an assigned number and returning a specific piece
of data in the row that the assigned number is in. This formula is to
display the corresponding name of the assigned number. The problem is when
the assigned number (which is usually six numbers long) has a letter in it.
It is always in the fourth position, and for some reason, vlookup can't find
it.

"Trevor Shuttleworth" wrote:

Please give examples of the data you are using, the value you are using as a
key and the LOOKUP formula itself

Regards

Trevor


"Sonohal" wrote in message
...
Hello

I am trying to use VLOOKUP to find an exact match, the problem is that the
cell contains data that is a series of letters and numbers. I have used
vlookup to find and then return data successfully if the search cells are
all
letters OR all numbers, but can't get it to work when both are present. I
have also tried formatting the cells to read as 'text', or 'general',
neither
of which made a difference. PLEASE HELP! Thanks




  #4   Report Post  
Trevor Shuttleworth
 
Posts: n/a
Default

Try:

=VLOOKUP(J1,'VW THCD List'!$G:$BE,3,FALSE)

or with error trapping:

=IF(ISNA(VLOOKUP(J1,'VW THCD List'!$G:$BE,3,FALSE)),"not
found",VLOOKUP(J1,'VW THCD List'!$G:$BE,3,FALSE))

works for me with 123x45

Regards

Trevor


"Sonohal" wrote in message
...
This is the formula that works:
=VLOOKUP(J1,'VW THCD List'!G:BE,3,0)
It searches data on a different tab, the inserts it.

I am essentiall looking up an assigned number and returning a specific
piece
of data in the row that the assigned number is in. This formula is to
display the corresponding name of the assigned number. The problem is
when
the assigned number (which is usually six numbers long) has a letter in
it.
It is always in the fourth position, and for some reason, vlookup can't
find
it.

"Trevor Shuttleworth" wrote:

Please give examples of the data you are using, the value you are using
as a
key and the LOOKUP formula itself

Regards

Trevor


"Sonohal" wrote in message
...
Hello

I am trying to use VLOOKUP to find an exact match, the problem is that
the
cell contains data that is a series of letters and numbers. I have
used
vlookup to find and then return data successfully if the search cells
are
all
letters OR all numbers, but can't get it to work when both are present.
I
have also tried formatting the cells to read as 'text', or 'general',
neither
of which made a difference. PLEASE HELP! Thanks






  #5   Report Post  
Sonohal
 
Posts: n/a
Default

Thanks, but still no luck. I do get the "not found" message though. Do the
columns have to have a particular format, ie text, general, number, etc.?

"Trevor Shuttleworth" wrote:

Try:

=VLOOKUP(J1,'VW THCD List'!$G:$BE,3,FALSE)

or with error trapping:

=IF(ISNA(VLOOKUP(J1,'VW THCD List'!$G:$BE,3,FALSE)),"not
found",VLOOKUP(J1,'VW THCD List'!$G:$BE,3,FALSE))

works for me with 123x45

Regards

Trevor


"Sonohal" wrote in message
...
This is the formula that works:
=VLOOKUP(J1,'VW THCD List'!G:BE,3,0)
It searches data on a different tab, the inserts it.

I am essentiall looking up an assigned number and returning a specific
piece
of data in the row that the assigned number is in. This formula is to
display the corresponding name of the assigned number. The problem is
when
the assigned number (which is usually six numbers long) has a letter in
it.
It is always in the fourth position, and for some reason, vlookup can't
find
it.

"Trevor Shuttleworth" wrote:

Please give examples of the data you are using, the value you are using
as a
key and the LOOKUP formula itself

Regards

Trevor


"Sonohal" wrote in message
...
Hello

I am trying to use VLOOKUP to find an exact match, the problem is that
the
cell contains data that is a series of letters and numbers. I have
used
vlookup to find and then return data successfully if the search cells
are
all
letters OR all numbers, but can't get it to work when both are present.
I
have also tried formatting the cells to read as 'text', or 'general',
neither
of which made a difference. PLEASE HELP! Thanks








  #6   Report Post  
Fredrik Wahlgren
 
Posts: n/a
Default


"Sonohal" wrote in message
...
Thanks, but still no luck. I do get the "not found" message though. Do

the
columns have to have a particular format, ie text, general, number, etc.?


Formatting only affects what you see, not the underlying value/text
/Fredrik


  #7   Report Post  
Sonohal
 
Posts: n/a
Default

Ok thanks. That is what I thought, but you never know.

"Fredrik Wahlgren" wrote:


"Sonohal" wrote in message
...
Thanks, but still no luck. I do get the "not found" message though. Do

the
columns have to have a particular format, ie text, general, number, etc.?


Formatting only affects what you see, not the underlying value/text
/Fredrik



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
no row numbers or column letters DISPLAYED RagDyer Excel Discussion (Misc queries) 4 April 24th 23 03:42 AM
How can I write in a text in a cell using numbers and the letters. Sandy Excel Discussion (Misc queries) 2 January 10th 05 11:49 PM
Finding Numbers with Cells that also contain letters Adam Excel Discussion (Misc queries) 7 December 29th 04 02:41 PM
How do I change column labels from numbers to letters in Excel? AllisonCincy Excel Discussion (Misc queries) 2 December 9th 04 12:55 AM
Hor to write numbers in letters in spanish MXAlher Excel Worksheet Functions 0 November 12th 04 01:47 PM


All times are GMT +1. The time now is 04:33 PM.

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

About Us

"It's about Microsoft Excel"