Replacing an ERROR message with "NA"
You can use this generic IF statement to work around errors:
IF(ISERROR(Formula),"N/A",Formula)
If you're dividing A1 by B1 the IF statement would read:
IF(ISERROR(A1/B1),"N/A",A1/B1)
--
Kevin Backmann
"COL" wrote:
I have created a table and some of the cells display the message "#DIV/0"
which I expected would happen, yet I want to automate the document so that
all error messages are replaced by the text message "NA". It's a large
document and it would take a very long time to change each cell manually so I
was hoping someone could help me. I also update it often, therefore I need to
keep the formula in the cell and if I type NA in the cell the formula will be
erased...
Does anybody know how to fix this?
|