# Min / Max

#### Nickel

##### New Member
Hi All

I need to select a min and max value based on a multiple condition. E.g.

Year Level Salary
2010 1 100
2011 2 130
2010 1 90
2011 2 150
2010 1 130
2011 2 200

I need a formula that would return min, max values for 2010 and 2011 separately
Min Max
2010 XX yyy
2011 xx yyy

I have MS Excel 2003.

Niel

### Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hi there,

Try:

=MAX(IF(A2:A7=2010,C2:C7))

and

=MIN(IF(A2:A7=2010,C2:C7))

Confirm both with CTRL, SHIFT + ENTER - not just ENTER.

Thanks James

My situation is more complex.

I need to be able to choose it for a specifit level. In may example there is only one level in 2010 but what if I had Level 1 and 2.

I need the min and max values for noth.

Hi Try:

{=MAX(IF((\$A\$2:\$A\$7=2010)*(\$B\$2:\$B\$7=1),\$C\$2:\$C\$7))}

fabulous. it works.

you guys ruuuule

For the same data base i need to count the number specific levels in a specific year. Please help guys. N

Try:

=COUNTIF(\$A\$2:\$A\$7,"2010")

I realize your question is already answered, just as an alternative...Maybe you like to give this a try.

Excel Workbook
ABCDEFGHIJ
1Year Level SalaryYear Level SalaryMinMaxCount
22010110020101100902
3201125020112502003
42010190
520112150
620102130
720112200
Sheet1
#VALUE!

Last edited:
Ignore my solution the formula is flawed, sorry....

Replies
0
Views
64
Replies
5
Views
220
Replies
4
Views
226
Replies
9
Views
285
Replies
3
Views
176

1,203,487
Messages
6,055,714
Members
444,811
Latest member
NotJack

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back