Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
#5
![]() |
|||
|
|||
![]()
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.
__________________
I am not human. I am an Excel Wizard |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel considers my formulas as plain text | Excel Worksheet Functions | |||
How do you print showing formulas in Excel 2000? | Excel Discussion (Misc queries) | |||
Excel Pointers to Formulas | Excel Discussion (Misc queries) | |||
Please help with Statistics Formulas in Excel | Excel Discussion (Misc queries) | |||
Putting Excel formatting and/or formulas into CSV file | Excel Discussion (Misc queries) |