Solved

Return date associated with maximum value

Posted on 2014-02-17
3
148 Views
Last Modified: 2014-02-17
This question relates to the same data set from a previous question: http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Excel/Q_28363479.html

For each "Site", I would like to obtain the value for "SampDate" associated with the maximum values in columns H, I, and J. The results should appear in columns K, L, and M.

I think that VLOOKUP may be able to do this, but I am unsure of the proper syntax.

Many thanks in advance for any potential solutions!
0
Comment
Question by:dougf1r
  • 2
3 Comments
 
LVL 1

Author Comment

by:dougf1r
ID: 39866113
To clarify, the ranges of data from which to search for the maximum values for each site are in columns H, I, and J. For example, for the first site (04CEF-1) I would like to be able to identify the SampDate associated with the maximum value from the range of values in rows 5 through 90 for each column H, I, and J.
0
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 39866193
Hello dougflr,

I used this "array formula" in K5 confirmed with CTRL+SHIFT+ENTER and copied across 3 columns and all the way down.

=IF(AND($J4="",$J5<>""),INDEX($C5:$C200,MATCH(MAX(IF($B5:$B200=$B5,H5:H200)),H5:H200,0)),"")

That will give you the SampDate associated with the max value on the first row of average data for each site.

To "array enter" a formula you can put the formula in a cell, select that cell and press F2 key to select formula - now hold down CTRL and SHIFT keys and press ENTER. If done correctly curly braces will appear around the formula. If you change the formula this needs to be re-done....but only for first formula - it can then be copied

See attached

regards, barry
maxdate-barry.xlsx
0
 
LVL 1

Author Comment

by:dougf1r
ID: 39866302
Thanks barry! This works perfectly.
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

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

706 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

12 Experts available now in Live!

Get 1:1 Help Now