#1   Report Post  
JT
 
Posts: n/a
Default Formula Result

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

Jack Taylor


  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

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

  #3   Report Post  
David Billigmeier
 
Posts: n/a
Default

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


  #4   Report Post  
JE McGimpsey
 
Posts: n/a
Default

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")

  #5   Report Post  
JT
 
Posts: n/a
Default

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




  #6   Report Post  
JE McGimpsey
 
Posts: n/a
Default

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

  #7   Report Post  
JT
 
Posts: n/a
Default

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


  #8   Report Post  
Roger Govier
 
Posts: n/a
Default

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


  #9   Report Post  
JE McGimpsey
 
Posts: n/a
Default

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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Median result used in formula gives incorrect result vlatham Excel Worksheet Functions 4 September 21st 05 04:26 PM
Amount or Numbers in Words ron New Users to Excel 6 December 24th 04 07:32 PM
Convert Numeric into Text Monty Excel Worksheet Functions 0 December 18th 04 09:25 PM
Formula Result Correct but value in the cell is wrong jac Excel Worksheet Functions 2 December 17th 04 08:05 PM
Excel 2003 - Formula result shows as 0:00 Serena Excel Worksheet Functions 4 November 11th 04 10:18 PM


All times are GMT +1. The time now is 11:32 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"