Min with multiple criteria

mclambchop

New Member
Joined
Apr 29, 2014
Messages
24
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am trying to calculate the minimum value based on three criteria. The array formula I have so far is this:

=MIN(IF((Stops!$A$7:$A$1028=A7)*(Stops!$B$7:$B$1028=B7)*(Stops!$E$7:$E$1028=C7),Stops!$P$7:$P$1028))

This works if I replace the MIN with SUM so not sure what is wrong, can anyone help please?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Yes I am, changing to sum calculates fine, change it back to min, entering as an array it returns zero when the value should be 34
 
Upvote 0
I think that means your criteria are never met in the dataset or if they are the min is indeed 0 or text.

What does this produce?

=MIN(IF(($A$7:$A$1028=A5)*($B$7:$B$1028=B5)*($E$7:$E$1028=C5),$P$7:$P$1028,1E+100))
 
Upvote 0
Ive done that but still the same. Interestingly I have opened the same file in Excel 2003 and it works but it wont in 2010. That doesnt sound right?
 
Upvote 0
Im afraid im stumped. I cant think of any reason apart from the ones ive mentioned.
 
Upvote 0
Maybe try $P$7:$P$1028*1 to convert any potential text numbers to true numbers?
 
Upvote 0

Forum statistics

Threads
1,216,157
Messages
6,129,195
Members
449,493
Latest member
JablesFTW

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