0

I am creating a budget spreadsheet in Excel and in some instances I will need the formulas in the spreadsheet to include the =MIN and in some instances I won’t. For example, the formula is:

=MIN(221900, (H15+(H15*'Budget Details'!T18)))

I’d like to have a yes/no dropdown option, which will determine if this minimum is used, or if it isn’t. Is that even possible?

Without the =MIN, the formula is:

=(H15+(H15*'Budget Details'!T18))

Thank you for any guidance.

3
  • 4
    Nest two versions of your formula inside an IF() statement, one using the MIN() portion and one without it. IF(A2="Yes", [formula if TRUE], [formula if FALSE]).
    – bugdrown
    Commented May 16 at 1:06
  • You may create a drop down list of "Yes"/"No". Then like bugdrown suggested above, us IF function to create the formula.
    – Emily
    Commented May 16 at 1:48
  • Thank you bugdrown and Emily. I did this, but wish I had figured out how to nest the formula correctly. I couldn’t do it properly with the min formula too. I have another spreadsheet that I’ll test on tomorrow…
    – EMD
    Commented May 17 at 1:27

1 Answer 1

2

According to the information you provided, this should be easily achieved in combination with an IF() statement. Let's assume your data is stored in the range A1:A6 and you have the validation list in B1:B6.

In C2 you can put the following formula:

=IF(B2 = "Yes", MIN(500, A2), A2)

The formula checks if you have activated the Min. option in cell B2. If this is the the case, i.e., TRUE, it takes the MIN() of 500 and the value in A2. If the the Min. option is not acitvated in cell B2, i.e., FALSE, then it simply takes the value from cell A2. In your case, simply replace the A2 and minimum with your corresponding values.

The output looks as follows:

output

The data used is as follows; with the Min Option determined via a validation list Yes or No, and the values in column C determined via the formula specified above:

Values Min Option Formula
100 No 100
500 Yes 500
1000 No 1000
200 Yes 200
600 Yes 500

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .