Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Is there an easy way, such as a format setting, to make a cell value zero if
the cell's formula returns a value less than zero? I've used a conditional statement with the SIGN function before, but I have existing cells with formulas that I would just like to apply a format to if possible. =IF(SIGN(+L7+N7+P7-K7)=-1,0,+L7+N7+P7-K7) Thank you, Fred |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this:
=MAX(L7+N7+P7-K7,0) Hope this helps. Pete On Feb 20, 4:49 pm, "Fred Ernst" wrote: Is there an easy way, such as a format setting, to make a cell value zero if the cell's formula returns a value less than zero? I've used a conditional statement with the SIGN function before, but I have existing cells with formulas that I would just like to apply a format to if possible. =IF(SIGN(+L7+N7+P7-K7)=-1,0,+L7+N7+P7-K7) Thank you, Fred |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try:
=max(L7+N7+P7-K7,0) "Fred Ernst" wrote: Is there an easy way, such as a format setting, to make a cell value zero if the cell's formula returns a value less than zero? I've used a conditional statement with the SIGN function before, but I have existing cells with formulas that I would just like to apply a format to if possible. =IF(SIGN(+L7+N7+P7-K7)=-1,0,+L7+N7+P7-K7) Thank you, Fred |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
formula for a cell which is blank returns populated cell | Excel Discussion (Misc queries) | |||
Cell reference in formula always returns a zero value | Excel Discussion (Misc queries) | |||
Formula returns cell name | Excel Discussion (Misc queries) | |||
Formula returns cell name | Excel Discussion (Misc queries) | |||
Formula to sum every 4th cell returns #DIV/0! error in some column | Excel Worksheet Functions |