Select Max value from range, where row contains (X) in another column

hfidgen

New Member
Joined
Jun 15, 2011
Messages
5
Hiya,

As the title suggests I'm struggling to find a formula that lets me select the max (and min) values out of a column, but only when another column matches the string "Complex"

Column E = "Complex" or "Simple"
Column V = The values, from which max and min need to be selected

I've managed to calulate the mean, but the other two elude me:
Code:
=AVERAGEIF(Data!E3:E100,"Simple",Data!V3:V100)
Can anyone help?
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
[strike]Which version of Excel are you using?[\strike]
Scratch that, it, I read your post again and realised the example was of the one you have working. So it must be 2007 or later.
 
Upvote 0
try:

=MIN(IF(Data!E3:E100="Simple",Data!V3:V100))

You need to use ctrl+shift+enter as this is an array formula

It should appear with curly brackets {} but you can't type or edit these.

HTH
 
Upvote 0
The Max version works well, thank you.

The MIN version though returns 0 unless ALL the cells have a value (some of my cells are blank / dataless).

Is there a way to force it to discount these cells?
 
Upvote 0
Sorry for late response

try:

=MIN(IF((data!E3:E100="Simple")*(data!V3:V100<>""),data!V3:V100))

again, this is an array formula
 
Upvote 0

Forum statistics

Threads
1,224,570
Messages
6,179,610
Members
452,931
Latest member
The Monk

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