Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
"T. Valko" wrote...
.... =IF(ISERROR(your_formula),"N/A",your_formula) That will trap *all* errors, not just the #DIV/0! error. .... In the particular case of #DIV/0!, the most common causes are an AVERAGE function call against a range containing no number values or a formula like N/D where D = 0. Those are better handled using =IF(COUNT(range),AVERAGE(range),"N/A") or =IF(-D<0,N/D,"N/A") [-D rather than D intentional] More generally, it's possible to trap only specific errors using =IF(COUNT(1/(ERROR.TYPE(formula)={1;2})),"N/A",formula) This example traps #NULL! and #DIV/0! errors. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find and Replace - Replace with Blank Space | Excel Discussion (Misc queries) | |||
Can I replace a ' at the beginning of a text cell using Replace | Excel Discussion (Misc queries) | |||
Replace dialog should put focus on "Find What" not "Replace With" | Excel Discussion (Misc queries) | |||
find and replace - replace data in rows to separated by commas | Excel Worksheet Functions | |||
How can I use replace(alt+H) for mutiple items needing replace | Excel Worksheet Functions |