![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 16
|
I have a list of part #s, prices, etc. in sheet 1, and part #s and descriptions on sheet 2. I need to bring the description from the sheet 2 into the corresponding row Column C on sheet 1. I have tried numerous vlookup formulas, but they all return #n/a as if the part # does not exist on the 2nd sheet, when in fact it does.
The formula I think is right is: =VLOOKUP(A2,Sheet2!$A$2:$B$4210,2) where A2 = the part # I need the description for, and Sheet2 column a contains a list of part #s, and column B contains the descriptions. I'm thinking that the problem has to do with cell formatting, but I have tried everything I know to assure that column A on each sheet share the same formatting. Can anyone help? |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Posts: 7,743
|
Did you sort your columns?
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: Houston,Texas
Posts: 418
|
Try =VLOOKUP(A2,Sheet2!$A$2:$B$4210,2, FALSE)
|
|
|
|
|
|
#4 |
|
New Member
Join Date: Apr 2002
Posts: 16
|
Yes, however I have both 4 digit and 5 digit part #s, so the 4 digit #s don't sort to the top.
|
|
|
|
|
|
#5 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Make sure that the data type of your lookup_value is the same as the values in the left-most column of your table_array. These values must match in every respect... no trailing spaces allowed.
|
|
|
|
|
|
#6 |
|
New Member
Join Date: Apr 2002
Posts: 16
|
Steve,
I've tried that too... same result. |
|
|
|
|
|
#7 |
|
New Member
Join Date: Apr 2002
Posts: 16
|
Steve,
I've tried that too... same result. |
|
|
|
|
|
#8 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
|
|
|
|
|
|
|
#9 |
|
Board Regular
Join Date: Feb 2002
Location: Houston,Texas
Posts: 418
|
=VLOOKUP(A2,Sheet2!$A$2:$B$4210,2) should be=VLOOKUP(A2,'Sheet2'!$A$2:$B$4210,2)
|
|
|
|
|
|
#10 |
|
New Member
Join Date: Apr 2002
Posts: 16
|
I ran the =trim function on all of the unit# cells. I know there aren't any leading or trailing spaces.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|