Solved

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

Posted on 2013-01-10
4
228 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need help with excel question, fill in cell below category? 7 32
Excel file not created as expected 7 49
First Blank Cell in a range 7 34
Excel partial font macro 14 26
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 article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

911 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

20 Experts available now in Live!

Get 1:1 Help Now