Display Empty Cell When Using SUM formula
Hi,
You can use the formula:
IF(SUM(B4:B13),SUM(B4:B13),"")
or you can leave the original formula and choose Tools, Options, View tab,
and uncheck Zero values.
or you can applly a custom format like #,##0_);(#,##0);; to the cells.
--
Thanks,
Shane Devenshire
"Koomba" wrote:
I am using a Custom Sales Order Template. I use a macro to clear contents
(from previous sales order). I use SUM formula in the TOTAL cell and wonder
if I can have the TOTAL cell show as empty (but leave formula intact) after
macro clears contents. I am being picky here, I know.
Here is Macro:
Sub NewSalesOrder()
'
' NewSalesOrder Macro
' Clears Sales Order for new data entry
'
' Keyboard Shortcut: Ctrl+b
'
Range("B2").Select
Selection.ClearContents
Range("B4:B13").Select
Selection.ClearContents
Range("E14").Select
Selection.ClearContents
End Sub
--
Thanks from Salt Spring
|