Conditional Minimums

squidnum1

New Member
Joined
Mar 30, 2011
Messages
6
Hey everyone,

I am trying to set up a conditional Minimum formula. On Sheet 1, I have 1000 IDs split into 20 different groups all on one rolling list. So Column A has all of the IDs, Coulmn B has the group name they are in, and Column C has the values of each. On another sheet (Sheet 2) I have the list of the 20 groups in Column A. I want to know if there is a formula that can give me the minimum for each group while also excluding 0's.

Any help would be great! Thanks!
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
What you refer to in Sheet 2 I have done in the same sheet so where applicable, add 'Sheet1!' before the cell references.

Column C has the values,
Column B has the group number.
Column E has the unique list of Group numbers (your Sheet 2 column A)

In 2007, try this

=IF(COUNTIFS($C$2:$C$1001,0,$B$2:$B$1001,E2)>0,SMALL(IF($B$2:$B$1001=E2,$C$2:$C$1001,""),(COUNTIFS($C$2:$C$1001,0,$B$2:$B$1001,E2)>0)+1),SMALL(IF($B$2:$B$1001=E2,$C$2:$C$1001,""),1))
 
Upvote 0
Try the CSE formula
=MIN(IF(AND(Sheet1!$B$1:$B$1000="GroupOfInterest",Sheet1!$C$1:$C$1000<>0), Sheet1!$C$1:$C$1000))

This has to be entered with Ctrl-Shift-Enter (Cmd+Return for Mac)
 
Upvote 0

Forum statistics

Threads
1,215,460
Messages
6,124,949
Members
449,198
Latest member
MhammadishaqKhan

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
Back
Top