Solved

Return date associated with maximum value

Posted on 2014-02-17
3
154 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
[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
  • 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

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

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
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.

690 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