Solved

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

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

770 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