Solved

formula for a lookup based on the max value of a looked-up range

Posted on 2013-01-10
4
218 Views
Last Modified: 2013-01-11
can someone please help me with the following formula,

get the max value in a column based on a code, then do a lookup for value of another column

example attached

thank you very much
example.xlsx
0
Comment
Question by:newparadigmz
4 Comments
 
LVL 23

Assisted Solution

by:NBVC
NBVC earned 100 total points
ID: 38764144
Try:

=INDEX(Table92[ResultDate],MATCH(G6&"_"&MAX(IF(Table92[code]=G6,Table92[LookupDate])),Table92[code]&"_"&Table92[LookupDate],0))

Open in new window


confirmed with CTRL+SHIFT+ENTER not just ENTER and copy down
0
 
LVL 8

Accepted Solution

by:
ragnarok89 earned 300 total points
ID: 38764164
This should do it.
example.xlsx
0
 
LVL 92

Assisted Solution

by:Patrick Matthews
Patrick Matthews earned 100 total points
ID: 38764183
The following seems to work for me in H6:

=INDEX(A:A,MIN(IF((Table92[ccode]=G6)*(MAX(IF(Table92[ccode]=G6,Table92[LookupDate],""))=Table92[LookupDate]),ROW(Table92[ccode]),10^99)),1)

Note that ccode = code
0
 

Author Closing Comment

by:newparadigmz
ID: 38767292
Thanks!
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now