Find a Min value with conditional

epardo87

Board Regular
Joined
Feb 24, 2015
Messages
56
Hello,

I need a formula to return the Minimum value out of a table
  • I have 2 sheets, one with the table with all values and the other with a summary of products
  • I need that the formula returns only the minimum value of that specific product
  • e.g. in product A, I need to have returned "2", in product B would be "1", etc.)

I'd really appreciate your help

A2
A3
A4
B1
B3

<tbody>
</tbody>
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
thanks Jonmo1
I don't understand that about the ctrl+shift+enter?
I already tried that formula but it doesn't return corretly, for "A" returns =1 and for "B" returns =0 using the same table of the example
 
Upvote 0
After you type in the formula, don't just press enter.
Instead, press CTRL + SHIFT + ENTER

If you've already entered the formula, then highlight the cell with the formula and press F2.
Then press CTRL + SHIFT + ENTER


When entered correctly, the formula will be enclosed in {brackets}
 
Upvote 0
Alright,

excellent, that worked!
I'm already investigating the way these brackets work, apparently they are very powerful! I think my life would have been somewhat easier if I knew this earlier!

Thanks again Jonmo1!
 
Upvote 0
one more question,

What if I need to add one more column of criteria? there is one column with "yes" or "no" values, I need to return only Min values with yes, thought I could figure it out but just couldn't

ayes2
ano3
ayes4
bno1
byes2

<tbody>
</tbody>
 
Upvote 0
Try either

=MIN(IF(A2:A6="A",IF(B2:B6="yes",C2:C6)))

or

=MIN(IF((A2:A6="A")*(B2:B6="yes"),C2:C6))
 
Upvote 0

Forum statistics

Threads
1,213,560
Messages
6,114,309
Members
448,564
Latest member
ED38

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