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 / January 2008

Tip: Looking for answers? Try searching our database.

Vlookup and min formula

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Scott@CW - 10 Jan 2008 13:49 GMT
I have a worksheet that has dates in column B and file # in column A. In cell
J12, i have this formula =min(B2:B100), in L12, I have a vlookup to return
the information in column A that matches the date =vlookup(J12,A2:B100,1,0).
I receive a #name error.

Any ideas?
ryanb. - 10 Jan 2008 14:49 GMT
VLOOKUP goes left to right.   Are you able to move dates to A, and file
names to B?  what about having filenames in both A and another column to the
right of the dates column (say in column C enter the formula =A12 in cell
C12... then change the range in your VLOOKUP to B:C)?  since your lookup
value is a date returned with the min formula, the date column has to be the
first column in the range argument of a VLOOKUP formula.

HTH,

ryanb.
>I have a worksheet that has dates in column B and file # in column A. In
>cell
[quoted text clipped - 4 lines]
>
> Any ideas?
Dave Peterson - 10 Jan 2008 14:55 GMT
=vlookup() expects the key column to match to be the leftmost column of the
lookup range.

But you can use a different formula when that key column is not the leftmost
column:

=index(a2:a100,match(j12,b2:b100,0))
or even
=index(a2:a100,match(min(b2:b100),b2:b100,0))

Debra Dalgleish has lots of notes on =vlookup() and =index(match()) here:
http://www.contextures.com/xlFunctions02.html  (for =vlookup())
and
http://www.contextures.com/xlFunctions03.html  (for =index(match()))

> I have a worksheet that has dates in column B and file # in column A. In cell
> J12, i have this formula =min(B2:B100), in L12, I have a vlookup to return
> the information in column A that matches the date =vlookup(J12,A2:B100,1,0).
> I receive a #name error.
>
> Any ideas?

Signature

Dave Peterson

Scott@CW - 10 Jan 2008 15:02 GMT
both suggestions worked great. Thank you everyone!

> =vlookup() expects the key column to match to be the leftmost column of the
> lookup range.
[quoted text clipped - 17 lines]
> >
> > Any ideas?
 
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.