MIN greater than zero with a true false option

MAHONEY21

New Member
Joined
Mar 4, 2011
Messages
3
Help Me PLease!

I am working on an estimate sheet at work and cannot seem to create a formula that will allow all options to work. :confused:

I need to create a formula that will reference the minimum of one column but it must only choose numbers greater than zero. I also have a check box inserted in the table to identify whether the costs entered are lump sum or per unit pricing. If the statement is false or unchecked it will multiply the MIN of these cells times a quantity cell.

I have been able to have it ignore 0 for when the statement is tru (check box marked) but when the statement is false it reverts to 0 as the minimum number.

This is the formula i have so far....


=IF(G9=TRUE,MIN(IF(F9:F14>0,F9:F14)),MIN(IF(F9:F14>0,F9:F14)*G12))

using Shift Ctrl & Enter to enter the formula...

G9 is the check box or the true false statement.

F9 : F14 is a list of quote or values

G12 is the quantity that is being purchased

If any one could help me i would greatly appreciate it, this is driving me nuts!!!!

Thank you! Thank you! Thank you! Thank you! Thank you! Thank you!:):):)
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Welcome to the Board!

Is G12 blank or 0, that is the only way I can see the false part returning 0 if the true part works as you say, since it is essentially the same formula?
 
Upvote 0
Actually you ahev the *G12 in the wrong palce, try this:


=IF(G9=TRUE,MIN(IF(F9:F14>0,F9:F14)),MIN(IF(F9:F14>0,F9:F14))*G12)

Hope that helps.
 
Upvote 0

Forum statistics

Threads
1,223,912
Messages
6,175,340
Members
452,637
Latest member
Ezio2866

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