Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Put this formula in any cell other than A1 and you will get a "0" if A1 is
less than zero (negative). IF(A1<0,"0","Whatever") If you want a given cell to change to "0" whenever its value goes negative, you will need a macro. Post back if you need more. HTH Otto "mike" wrote in message ... |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Mike,
Or do you want the the value to be displayed as 0 in the actual cell (i.e. no helper cell needed). If so this can be achieved with custom formats: <Format <Cells Click on "Custom" Enter this: General;"0" This will display all positive values as their actual value as usual, but display any negative values as simply 0. Note the negative value is still located in the cell, it just "Looks" like it's 0. -- Regards, Dave "Otto Moehrbach" wrote: Put this formula in any cell other than A1 and you will get a "0" if A1 is less than zero (negative). IF(A1<0,"0","Whatever") If you want a given cell to change to "0" whenever its value goes negative, you will need a macro. Post back if you need more. HTH Otto "mike" wrote in message ... |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Mike,
If the cell in question is a calculated cell, ie, it gets its value from a formula, then just add an IF statement. eg IF(YourFormula<0,0,YourFormula) "David Billigmeier" wrote: Mike, Or do you want the the value to be displayed as 0 in the actual cell (i.e. no helper cell needed). If so this can be achieved with custom formats: <Format <Cells Click on "Custom" Enter this: General;"0" This will display all positive values as their actual value as usual, but display any negative values as simply 0. Note the negative value is still located in the cell, it just "Looks" like it's 0. -- Regards, Dave "Otto Moehrbach" wrote: Put this formula in any cell other than A1 and you will get a "0" if A1 is less than zero (negative). IF(A1<0,"0","Whatever") If you want a given cell to change to "0" whenever its value goes negative, you will need a macro. Post back if you need more. HTH Otto "mike" wrote in message ... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
vba outcome | Excel Worksheet Functions | |||
vba outcome | Excel Worksheet Functions | |||
How do I caclculate a ratio where the outcome is X to 1 | Excel Worksheet Functions | |||
format the outcome of a formula | Excel Discussion (Misc queries) | |||
How to calculate a sum as one outcome of an IF statement | Excel Worksheet Functions |