Min / Max

Nickel

New Member
Joined
Oct 28, 2011
Messages
8
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.

Many thanks in advance
Niel
 

Some videos you may like

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

JamesW

Well-known Member
Joined
Oct 30, 2009
Messages
1,197
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.
 

Nickel

New Member
Joined
Oct 28, 2011
Messages
8
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.
 

Dannyh1

Well-known Member
Joined
Nov 18, 2009
Messages
1,144
Hi Try:


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

Nickel

New Member
Joined
Oct 28, 2011
Messages
8

ADVERTISEMENT

fabulous. it works.

you guys ruuuule
 

Nickel

New Member
Joined
Oct 28, 2011
Messages
8
For the same data base i need to count the number specific levels in a specific year. Please help guys. N
 

Dannyh1

Well-known Member
Joined
Nov 18, 2009
Messages
1,144

ADVERTISEMENT

Try:


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

snoopyhr

Active Member
Joined
Aug 12, 2002
Messages
395
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:

Watch MrExcel Video

Forum statistics

Threads
1,122,469
Messages
5,596,329
Members
414,055
Latest member
mcarduner

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Top