Solved

Return date associated with maximum value

Posted on 2014-02-17
3
151 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
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.

856 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