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

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.
###### Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
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 Commented:
NBVC,
Something is not working, perhaps attaching a sample would help. Please see the worksheet:
lookup.xlsx
0
Commented:
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

Experts Exchange Solution brought to you by