ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Formula Result (https://www.excelbanter.com/excel-discussion-misc-queries/49656-formula-result.html)

JT

Formula Result
 
How can I prevent a #DIV/0! result from displaying in a cell?

Jack Taylor



JE McGimpsey

One way:

If your current formula is, for instance

=A1/B1

then use

=IF(B1=0,"",A1/B1)

In article ,
"JT" wrote:

How can I prevent a #DIV/0! result from displaying in a cell?

Jack Taylor


David Billigmeier

Include an error check using ISERROR()

i.e.

=IF(ISERROR(A1),"There is an error","No Error")


--
Regards,
Dave


"JT" wrote:

How can I prevent a #DIV/0! result from displaying in a cell?

Jack Taylor



JE McGimpsey

Note that ISERROR() will mask all other errors, not just #DIV/0 errors.
In general it's better to trap known conditions that might cause errors,
and let unexpected errors pass through.

In article ,
"David Billigmeier"
wrote:

Include an error check using ISERROR()

i.e.

=IF(ISERROR(A1),"There is an error","No Error")


JT

Dave:

Thanks but I'm still having trouble. Following is the formula I'm
using...can you show me how to include the ISERROR function? When I do it,
then input data in the e16..n16 range, I get the FALSE error.

=SUM(E16:N16)/O16

JT

"David Billigmeier" wrote:

Include an error check using ISERROR()

i.e.

=IF(ISERROR(A1),"There is an error","No Error")


--
Regards,
Dave


"JT" wrote:

How can I prevent a #DIV/0! result from displaying in a cell?

Jack Taylor



JE McGimpsey

One way:

=IF(ISERROR(SUM(E16:N16)/O16),"",SUM(E16:N16)/O16)

Much more efficient, and won't mask other errors:

=IF(O16=0,"",SUM(E16:N16)/O16)

In article ,
"JT" wrote:

Thanks but I'm still having trouble. Following is the formula I'm
using...can you show me how to include the ISERROR function? When I do it,
then input data in the e16..n16 range, I get the FALSE error.

=SUM(E16:N16)/O16


JT

JE:

Tried...but when data is entered in e16..n16, I get a blank cell when there
should be an numeric answer. If there is a way I could show you the
worksheet, you cpould better see what I mean.

JT

"JE McGimpsey" wrote:

One way:

=IF(ISERROR(SUM(E16:N16)/O16),"",SUM(E16:N16)/O16)

Much more efficient, and won't mask other errors:

=IF(O16=0,"",SUM(E16:N16)/O16)

In article ,
"JT" wrote:

Thanks but I'm still having trouble. Following is the formula I'm
using...can you show me how to include the ISERROR function? When I do it,
then input data in the e16..n16 range, I get the FALSE error.

=SUM(E16:N16)/O16



Roger Govier

Hi

Then it sounds like you have nothing entered in O16.

Regards

Roger Govier



JT wrote:

JE:

Tried...but when data is entered in e16..n16, I get a blank cell when there
should be an numeric answer. If there is a way I could show you the
worksheet, you cpould better see what I mean.

JT

"JE McGimpsey" wrote:



One way:

=IF(ISERROR(SUM(E16:N16)/O16),"",SUM(E16:N16)/O16)

Much more efficient, and won't mask other errors:

=IF(O16=0,"",SUM(E16:N16)/O16)

In article ,
"JT" wrote:



Thanks but I'm still having trouble. Following is the formula I'm
using...can you show me how to include the ISERROR function? When I do it,
then input data in the e16..n16 range, I get the FALSE error.

=SUM(E16:N16)/O16



JE McGimpsey

The only way to get a blank is if O16 evaluates to 0, which would
include being empty/blank. What's in O16?


In article ,
"JT" wrote:

Tried...but when data is entered in e16..n16, I get a blank cell when there
should be an numeric answer. If there is a way I could show you the
worksheet, you cpould better see what I mean.



All times are GMT +1. The time now is 02:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com