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

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
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,224,566
Messages
6,179,550
Members
452,927
Latest member
rows and columns

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