![]() |
Excel Formulas "Not Greater than"
I want to create a formula that does the following
1) Takes a number from another worksheet 2) Subtracts a certain number from it 3) Gives a value that is not great than another number Example =sum(2006!A28) Less 15 Not greater than 5 Or 23-15=8 not greater than 5 = 5 |
Answer: Excel Formulas "Not Greater than"
To create a formula that subtracts a certain number from a value and ensures that the result is not greater than another number, you can use the MIN function. Here are the steps:
This formula will subtract 15 from the value in cell A28 of worksheet "2006" and return the result, but only if it is not greater than 5. If the result is greater than 5, the formula will return 5 instead. |
Excel Formulas "Not Greater than"
Have a look in the help index for MAX and MIN.
-- Don Guillett SalesAid Software "Trace" wrote in message ... I want to create a formula that does the following 1) Takes a number from another worksheet 2) Subtracts a certain number from it 3) Gives a value that is not great than another number Example =sum(2006'!A28) Less 15 Not greater than 5 Or 23-15=8 not greater than 5 = 5 |
Excel Formulas "Not Greater than"
This should work for you:
=MIN(2006!A15-15,5) Note, you don't need to use the SUM function if you're only referring to a single cell. HTH, Elkar "Trace" wrote: I want to create a formula that does the following 1) Takes a number from another worksheet 2) Subtracts a certain number from it 3) Gives a value that is not great than another number Example =sum(2006!A28) Less 15 Not greater than 5 Or 23-15=8 not greater than 5 = 5 |
Excel Formulas "Not Greater than"
Fantastic. THANKS!
"Elkar" wrote: This should work for you: =MIN(2006!A15-15,5) Note, you don't need to use the SUM function if you're only referring to a single cell. HTH, Elkar "Trace" wrote: I want to create a formula that does the following 1) Takes a number from another worksheet 2) Subtracts a certain number from it 3) Gives a value that is not great than another number Example =sum(2006!A28) Less 15 Not greater than 5 Or 23-15=8 not greater than 5 = 5 |
All times are GMT +1. The time now is 03:04 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com