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?
 
Doesnt make any difference, there are only two numbers anyway, I am just using a small test area of data before I apply to my large recordset. If it works in 2003 then that will have to do, thank you so much for your time, it is appreciated
 
Upvote 0

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
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?

Control+shift+enter:
Rich (BB code):
=IFERROR(SMALL(IF(Stops!$A$7:$A$1028=A7,
  IF(Stops!$B$7:$B$1028=B7,IF(Stops!$E$7:$E$1028=C7,
  Stops!$P$7:$P$1028))),1),"No data")

What does this yield?
 
Upvote 0
Hi

Could it be that you have cases where all 3 conditions are met but the corresponding cell in column P is empty or with a null string?

Try your formula making sure you only use number values:

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

Forum statistics

Threads
1,216,153
Messages
6,129,172
Members
449,490
Latest member
TheSliink

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