jesselavaca
asked on
Excel: VLOOKUP not returning expected results for repeated lookup values
Hello experts,
I'm working on an Excel spreadsheet that needs to perform a lookup.
Table A is looking up a value in Table B and returning the corresponding value in Table B to Table A. Table B contains only unique lookup values, while Table A contains multiple occurances of the same lookup value. The first instance of the value in Table A returns the correct result while all duplicates return error messages (#N/A).
Here's the Vlookup formula: =VLOOKUP($A1,'Master'!$A:$ H,6,FALSE)
Any thoughts? Let me know if you need more info...
-Jess
I'm working on an Excel spreadsheet that needs to perform a lookup.
Table A is looking up a value in Table B and returning the corresponding value in Table B to Table A. Table B contains only unique lookup values, while Table A contains multiple occurances of the same lookup value. The first instance of the value in Table A returns the correct result while all duplicates return error messages (#N/A).
Here's the Vlookup formula: =VLOOKUP($A1,'Master'!$A:$
Any thoughts? Let me know if you need more info...
-Jess
ASKER
No rows on the master worksheet have the #N/A error.
Could it have something to do with the fact that the value being used to do the lookup is actually a concatenation of a few different columns?
My company wouldn't be happy if I posted this info somewhere, is there any other way I can describe it to you?
Thanks for the help.
Jess
Could it have something to do with the fact that the value being used to do the lookup is actually a concatenation of a few different columns?
My company wouldn't be happy if I posted this info somewhere, is there any other way I can describe it to you?
Thanks for the help.
Jess
Not sure which version of excel you are using.
Is Master a seperate worksheet (another tab on bottom)
or a seperate Workbook (different excel file)?
This is what the my lookup looks like using Excel 2002 (aka Excel XP):
same excel file (tab on bottom):
=VLOOKUP($A1,Sheet2!A1:H16 ,6,FALSE)
** Note no single quote **
two different files:
=VLOOKUP($A1,[File1.xls]Sh eet1!$A$1: $H$16,6,FA LSE)
Is Master a seperate worksheet (another tab on bottom)
or a seperate Workbook (different excel file)?
This is what the my lookup looks like using Excel 2002 (aka Excel XP):
same excel file (tab on bottom):
=VLOOKUP($A1,Sheet2!A1:H16
** Note no single quote **
two different files:
=VLOOKUP($A1,[File1.xls]Sh
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Emory: Hmm, TRIM didn't change the outcome...yet.
Sorry for the delay, things have been really busy. Friday I might try to recreate a file without confidential data and post it somewhere...be back Friday!
Thanks,
Jess
Sorry for the delay, things have been really busy. Friday I might try to recreate a file without confidential data and post it somewhere...be back Friday!
Thanks,
Jess
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Sorry for the delay, experts.
I've fixed the problem with your help - it was the pesky extra spaces fixed using TRIM() - but I had to trim the lookup values in both tables, and then it fixed the problem. Thanks, and sorry for taking so long to get back to you...
-Jess
I've fixed the problem with your help - it was the pesky extra spaces fixed using TRIM() - but I had to trim the lookup values in both tables, and then it fixed the problem. Thanks, and sorry for taking so long to get back to you...
-Jess
Regards,
Emory