Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Return date associated with maximum value

Posted on 2014-02-17
3
Medium Priority
?
158 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 2000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

618 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