Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / September 2006

Tip: Looking for answers? Try searching our database.

Error in VLOOKUP REFERENCE?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Takeadoe - 25 Sep 2006 14:10 GMT
The following formula is in a cell in a worksheet called MODEL.  It
pulls data from the named range HarvestData.  Problem is, if I add a
column before "M" in the named range HarvestData, effectively moving
data from M to N, my lookup formula obviously no longer works.  Does
HarvestData need to be a dynamic range (it is not) or does the problem
lie in the VLOOKUP?  Somehow I need to update the column reference in
the VLOOKUP when a column is added or subtracted in HarvestData.

Help on this would be greatly appreciated.

Mike

(VLOOKUP($A17,HarvestData,COLUMN(M14),0)
Dave Peterson - 25 Sep 2006 15:35 GMT
If you have headers for your columns, you may want to dump the =vlookup() and
use =index(match(),match()).

You can match on column 1 of the table (or any other column) and match on row 1
of the table, too.

Debra Dalgleish explains it:
http://www.contextures.com/xlFunctions03.html#IndexMatch2
http://www.contextures.com/xlFunctions03.html#IndexMatch3

> The following formula is in a cell in a worksheet called MODEL.  It
> pulls data from the named range HarvestData.  Problem is, if I add a
[quoted text clipped - 9 lines]
>
> (VLOOKUP($A17,HarvestData,COLUMN(M14),0)

Signature

Dave Peterson

Takeadoe - 25 Sep 2006 16:24 GMT
Thank you Dave!  Before I move in that direction, I just want to make
sure I simply can't replace my absolute reference to the column in
HarvestData to a relative one?  IOW, is there a way to have the column
updated in the formula to reflect the additional column added in
HarvestData?

Mike

> If you have headers for your columns, you may want to dump the =vlookup() and
> use =index(match(),match()).
[quoted text clipped - 19 lines]
> >
> > (VLOOKUP($A17,HarvestData,COLUMN(M14),0)
Dave Peterson - 25 Sep 2006 16:46 GMT
COLUMN(M14)
will refer to the sheet with the cell with the formula.

Maybe you should just refer to the same sheet that has owns Harvestdata:

=VLOOKUP($A17,HarvestData,column('sheet2'!m:m),0)

> Thank you Dave!  Before I move in that direction, I just want to make
> sure I simply can't replace my absolute reference to the column in
[quoted text clipped - 31 lines]
> >
> > Dave Peterson

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.