Solved

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

Posted on 2013-01-10
4
248 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

734 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