Solved

Finding min or max value in a row inside a range of data

Posted on 2014-07-24
3
168 Views
Last Modified: 2014-07-25
I have data that's organized as such:


                             Area 1 Area 2 Area 3 Area 4 etc...
Bucket 1 Type A   454     345        453    565
Bucket 1 Type B   565     454        343    234
Bucket 1 Type C   454     565        676    454
Bucket 2 Type A   565     567        343   787
Bucket 2 Type B   232     343        565    787
Bucket 2 Type C   345     345       343    565
etc...

While I know how extract a specific value with sumproduct lookup formula, how can I extract min or max value per row. In other words what would be the min or max Area value and area name for Bucket 2, Type B.
0
Comment
Question by:Dmitriy Kritskiy
  • 2
3 Comments
 
LVL 23

Expert Comment

by:NBVC
ID: 40217637
Try something like:

=MAX(IF(A2:A100="Bucket 2",IF(B2:B100="Type B",C2:F100)))

adjust ranges to suit.  Confirm the formula with CTRL+SHIFT+ENTER not just ENTER.

You can also make references absolute by adding the $ signs.  You can reference the criteria from cells containing the criteria.
0
 

Author Comment

by:Dmitriy Kritskiy
ID: 40217696
NBVC,
Something is not working, perhaps attaching a sample would help. Please see the worksheet:
lookup.xlsx
0
 
LVL 23

Accepted Solution

by:
NBVC earned 200 total points
ID: 40217781
You have Type spelled incorrectly in a few of the column B cells.  This is why no match is made.

Also, for the MAX you are incorrectly referencing A13 for the 2nd condition, you should be referencing A12
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

785 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