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

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.
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,215,566
Messages
6,125,593
Members
449,237
Latest member
Chase S

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