Minimum Value - But Need Help

will2learn

Board Regular
Joined
Dec 1, 2005
Messages
144
I'm using this formula =MIN(O20:O1000) to obtain a mininmum amount. I need to change it so that only the minimum value is picked up if a value grater than zero is in the range L20:L1000.

Can anyone assist?
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
I'm using this formula =MIN(O20:O1000) to obtain a mininmum amount. I need to change it so that only the minimum value is picked up if a value grater than zero is in the range L20:L1000.

Can anyone assist?
It is unclear whether you want to check column L and if any value is > 0 then find the minimum value in column O, or whether you want to check column L and for the all the rows that are > 0 find the minimum value from column O from those rows.

One of these may suit. If not please try to clarify.

=IF(MAX(L20:L1000)>0,MIN(O20:O1000),"")


=MIN(IF(L20:L1000>0,O20:O1000))
This second formula is an array formula so should be entered as shown but confirmed with Ctrl+Shift+Enter, not just Enter. If confirmed correctly, Excel will insert {} around the formula.
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,253
Members
452,900
Latest member
LisaGo

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