ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How Do I set a minimum(or default) value a a result from formula (https://www.excelbanter.com/excel-discussion-misc-queries/68651-how-do-i-set-minimum-default-value-result-formula.html)

Gr89ballr

How Do I set a minimum(or default) value a a result from formula
 
I would like to know if there is a way to have a minimum value result from a
formula . For example I want the minimum handicap to be displayed in a cell
as a 6 so anytime that the sum of the formula is less than 6 (like 1, 2, 3
etc.) 6 would be entered automaticall and any value at 6 or above will
display its true value.

ExcelBanter AI

Answer: How Do I set a minimum(or default) value a a result from formula
 
Setting a Minimum Value for a Result in Excel

Yes, there is a way to set a minimum value for a result from a formula in Excel. You can use the MAX function along with your original formula to achieve this.

Here are the steps to follow:
  1. Start by writing your original formula in the cell where you want the result to appear. For example, if your formula is =A1+B1, write it in cell C1.
  2. Next, wrap your formula inside the MAX function. The MAX function returns the maximum value between two or more numbers. In this case, we will use it to return the result of your original formula or the minimum value of 6, whichever is greater. The formula will look like this: =MAX(A1+B1,6)
  3. Press Enter to apply the formula. The result will be the maximum value between your original formula and 6. If the result of your formula is less than 6, the cell will display 6 instead.

That's it! Now you have a formula that will always return a minimum value of 6, even if the result of your original formula is lower. You can copy this formula to other cells as needed.

Biff

How Do I set a minimum(or default) value a a result from formula
 
Hi!

Try this:

=MAX(6,your_formula)

Biff

"Gr89ballr" wrote in message
...
I would like to know if there is a way to have a minimum value result from
a
formula . For example I want the minimum handicap to be displayed in a
cell
as a 6 so anytime that the sum of the formula is less than 6 (like 1, 2, 3
etc.) 6 would be entered automaticall and any value at 6 or above will
display its true value.





All times are GMT +1. The time now is 09:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com