Min(IF(#>0)) Help

L

Legacy 327601

Guest
Hi All,

I have a column of numbers. Some rows are 0. I want to get the min of this column excluding the 0's. So far my formula is:

{MIN(IF($A$76:$A$341=A8,$H$76:$H$341))}

Column H is the column that contains 0

Column A contains unit types.

Thank you for your help.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Perhaps:

=MIN(IF($A$76:$A$341=A8,IF($H$76:$H$341<>0,$H$76:$H$341)))

Confirm with CTRL-SHIFT-ENTER
 
Upvote 0
Perhaps:

=MIN(IF($A$76:$A$341=A8,IF($H$76:$H$341<>0,$H$76:$H$341)))

Confirm with CTRL-SHIFT-ENTER

Scott,

Thank you this works.

Now I am trying to find the min assuming the lease was signed past a certain date. This is what I have added onto your formula(highlighted in bold):

=+MIN(IF($A$76:$A$341=$A42,IF($H$76:$H$341<>0,$H$76:$H$341,AND($I$76:$I$341,">="&$AA$6,$I$76:$I$341))))

Column I are dates. AA6 is the date that column I must be greater than or equal to.

Thanks again!
 
Upvote 0
=MIN(IF($A$76:$A$341=$A42,IF($H$76:$H$341<>0,IF($I$76:$I$341>=$AA$6,$H$76:$H$341))))

Confirm with CTRL-SHIFT-ENTER
 
Upvote 0

Forum statistics

Threads
1,216,574
Messages
6,131,492
Members
449,653
Latest member
aurelius33

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