Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Macro Help
How do I write a macro to tell a cell not to perform the calculation in it if
one of the cells in the calculation is empty? In other words, "Don't do C5-B5 if C5 is null" |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Macro Help
You don't need a macro put this formula in the cell instead.
=IF(OR(C5="",B5=""),"",C5-B5) Mike "bumblebug787" wrote: How do I write a macro to tell a cell not to perform the calculation in it if one of the cells in the calculation is empty? In other words, "Don't do C5-B5 if C5 is null" |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Macro Help
=if(C5="","",C5-B5)
This is very common if you have a column of formulas, but the column of data is not complete yet. -- Gary''s Student - gsnu200729 "bumblebug787" wrote: How do I write a macro to tell a cell not to perform the calculation in it if one of the cells in the calculation is empty? In other words, "Don't do C5-B5 if C5 is null" |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
My excel macro recorder no longer shows up when recording macro | Excel Discussion (Misc queries) | |||
using a cell value to control a counter inside a macro and displaying macro value | Excel Worksheet Functions | |||
Macro needed to Paste Values and prevent Macro operation | Excel Discussion (Misc queries) | |||
Macro needed to Paste Values and prevent Macro operation | Excel Discussion (Misc queries) |