Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VLOOKUP #REF Error

Status
Not open for further replies.

vba317

Programmer
Mar 5, 2009
708
US
I am working in excel 2007. I have set up a Hlookup statement that is not working. I have data in Column A, I need this column to compare to column P. The formula is in column I. The value I want in Column I is the value from column R.

Any help is appreciated
Tom

Code:
=VLOOKUP(A2~P2:P17000~17~FALSE)
 
Hi,
[tt]
=Index(R2:R17000,Match(A2,P2:p17000,0),1)
[/tt]
Btw, vlookup requires the lookup Column to be the leftmost column in the lookup range.

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
This should work. You need to look in columns P to R and return a value from the third column in that range.
Code:
=VLOOKUP(A2,P2:R17000,3,FALSE)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top