#1   Report Post  
Kenny16301 via OfficeKB.com
 
Posts: n/a
Default #DIV/0! Error

Hi,

In the formula listed below sometimes I put zeroes in the 2 cells or I leave
them blank but I get the #DIV/0! error. How can I add the ISError function to
my formula. Its driving me crazy.

=SUM(B14-C14)/B14

Thanks In advance.
Kenny
  #2   Report Post  
Bernard Liengme
 
Posts: n/a
Default

Firstly, you do not need SUM. This is used in formulas such as SUM(A1:A100)
to sum a range.
You need just = (B14-C14)/B14
But if B14 is zero you will get DIV error
So =IF(B14<0,(B14-C12)/B14,"Zero value in B14")
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Kenny16301 via OfficeKB.com" <u14535@uwe wrote in message
news:554edbdf1ad94@uwe...
Hi,

In the formula listed below sometimes I put zeroes in the 2 cells or I
leave
them blank but I get the #DIV/0! error. How can I add the ISError function
to
my formula. Its driving me crazy.

=SUM(B14-C14)/B14

Thanks In advance.
Kenny



  #3   Report Post  
Dan
 
Posts: n/a
Default

Another one is use formula as below:
=if(iserror(SUM(B14-C14)/B14), "", SUM(B14-C14)/B14)

"Bernard Liengme" wrote:

Firstly, you do not need SUM. This is used in formulas such as SUM(A1:A100)
to sum a range.
You need just = (B14-C14)/B14
But if B14 is zero you will get DIV error
So =IF(B14<0,(B14-C12)/B14,"Zero value in B14")
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Kenny16301 via OfficeKB.com" <u14535@uwe wrote in message
news:554edbdf1ad94@uwe...
Hi,

In the formula listed below sometimes I put zeroes in the 2 cells or I
leave
them blank but I get the #DIV/0! error. How can I add the ISError function
to
my formula. Its driving me crazy.

=SUM(B14-C14)/B14

Thanks In advance.
Kenny




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
Div/0 error scott45 Excel Worksheet Functions 4 September 9th 05 04:21 PM
DIV/0! error in SumProduct formula with no division Irrational Excel Worksheet Functions 1 August 18th 05 01:39 AM
replace "#DIV/0!" error with blanks Mark B Excel Worksheet Functions 0 June 22nd 05 10:19 AM
# DIV/0! error in Excel Helpwanted Excel Discussion (Misc queries) 8 May 6th 05 09:31 PM
"Average" with error DIV/0 agenda9533 Excel Discussion (Misc queries) 1 March 2nd 05 05:47 PM


All times are GMT +1. The time now is 05:40 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"