Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
return 0 instead of a negative #
I just want to do a simple sum and if the sum returns a negative number, I
want to change it to 0. C6 = 38, D14 = 2, H6 = 43 =(C6+D14)-H6 result is -3 but I want it to show 0 |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
return 0 instead of a negative #
Try this:
=MAX((C6+D14)-H6,0) HTH, Elkar "Rusty" wrote: I just want to do a simple sum and if the sum returns a negative number, I want to change it to 0. C6 = 38, D14 = 2, H6 = 43 =(C6+D14)-H6 result is -3 but I want it to show 0 |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
return 0 instead of a negative #
Fixed. Thanks Elkar
"Elkar" wrote: Try this: =MAX((C6+D14)-H6,0) HTH, Elkar "Rusty" wrote: I just want to do a simple sum and if the sum returns a negative number, I want to change it to 0. C6 = 38, D14 = 2, H6 = 43 =(C6+D14)-H6 result is -3 but I want it to show 0 |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
return 0 instead of a negative #
One way:
=MAX(C6+D14-H6,0) In article , "Rusty" wrote: I just want to do a simple sum and if the sum returns a negative number, I want to change it to 0. C6 = 38, D14 = 2, H6 = 43 =(C6+D14)-H6 result is -3 but I want it to show 0 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Return SEARCHED Column Number of Numeric Label and Value | Excel Worksheet Functions | |||
Negative Values Only | Excel Discussion (Misc queries) | |||
Huge problem with "if" formula's | Excel Discussion (Misc queries) | |||
How do create a formula to evalute a # to return 1 of 4 conditions | Excel Worksheet Functions | |||
if the value of a cell in a range is not blank, then return the v. | Excel Worksheet Functions |