Solved

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

Posted on 2014-07-24
3
167 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Generating a graph via Excel 3 28
Freeze Panes Solution 6 28
Excel range I cannot find 8 26
Excel 17 37
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
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.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

863 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

20 Experts available now in Live!

Get 1:1 Help Now