Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
robertjtucker
 
Posts: n/a
Default Vlookup of list with text and number


I am trying to do a vlookup, I have alist of part numbers that are text
and some are numbers. The aray is going to a list with the same values
that are text and numbers to give me a text value.
=VLOOKUP(A144,[Book1]Sheet1!$A$1:$D$17174,4,FALSE)

When it looks up the numbers on the list it gives me my lookup value,
when it gets to the text part numbers ex (S#######/#####A) I get a #n/a
error. Why am I getting this error? Is there something I can use that
will lookup text and numbers that are on the same list?


--
robertjtucker
------------------------------------------------------------------------
robertjtucker's Profile: http://www.excelforum.com/member.php...o&userid=21805
View this thread: http://www.excelforum.com/showthread...hreadid=509540

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Tarburton
 
Posts: n/a
Default Vlookup of list with text and number

Try a combination of the INDEX and MATCH functions
=INDEX([Book1]Sheet1!$A$1:$D$17174,MATCH(A144,[Book1]Sheet1!$A$1:$A$17174,0),4)
or
=INDEX([Book1]Sheet1!$D$1:$D$17174,MATCH(A144,[Book1]Sheet1!$A$1:$A$17174,0))

If you have numbers stored as text you will have to go a step further
=IF(ISNA(INDEX([Book1]Sheet1!$D$1:$D$17174,MATCH(A144,[Book1]Sheet1!$A$1:$A$17174,0))),INDEX([Book1]Sheet1!$D$1:$D$17174,MATCH(value(A144),value([Book1]Sheet1!$A$1:$A$17174),0)),INDEX([Book1]Sheet1!$D$1:$D$17174,MATCH(A144,[Book1]Sheet1!$A$1:$A$17174,0)))
which is an array formula so commit using Control+Shift+Enter


"robertjtucker"
wrote in message
news:robertjtucker.22vobb_1139347205.6164@excelfor um-nospam.com...

I am trying to do a vlookup, I have alist of part numbers that are text
and some are numbers. The aray is going to a list with the same values
that are text and numbers to give me a text value.
=VLOOKUP(A144,[Book1]Sheet1!$A$1:$D$17174,4,FALSE)

When it looks up the numbers on the list it gives me my lookup value,
when it gets to the text part numbers ex (S#######/#####A) I get a #n/a
error. Why am I getting this error? Is there something I can use that
will lookup text and numbers that are on the same list?


--
robertjtucker
------------------------------------------------------------------------
robertjtucker's Profile:
http://www.excelforum.com/member.php...o&userid=21805
View this thread: http://www.excelforum.com/showthread...hreadid=509540



  #3   Report Post  
Posted to microsoft.public.excel.misc
Bob Tarburton
 
Posts: n/a
Default Vlookup of list with text and number

A little further testing shows me that these first two options I offered
don't improve your original formula but the third does (there must be values
stored as text). Also, VLOOKUP does not seem to accept the VALUE(your_range)
when I try to commit it as an array function, so you will have to use the
INDEX and MATCH combination (until someone else shows us differently)

=IF(ISNA(INDEX([Book1]Sheet1!$D$1:$D$17174,MATCH(A144,[Book1]Sheet1!$A$1:$A$17174,0))),INDEX([Book1]Sheet1!$D$1:$D$17174,MATCH(value(A144),value([Book1]Sheet1!$A$1:$A$17174),0)),INDEX([Book1]Sheet1!$D$1:$D$17174,MATCH(A144,[Book1]Sheet1!$A$1:$A$17174,0)))

which is an array formula so commit using Control+Shift+Enter


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
Return SEARCHED Column Number of Numeric Label and Value Sam via OfficeKB.com Excel Worksheet Functions 23 January 30th 06 06:16 PM
How do I look up a number within a string of text Rich Hayes Excel Worksheet Functions 3 October 14th 05 05:49 PM
Number Applying Value To Text Selection In List Box ANDYPAND New Users to Excel 2 July 19th 05 03:56 PM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 02:19 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"