Solved

Excell error #DIV/0

Posted on 2002-04-15
7
336 Views
Last Modified: 2012-06-27
I have designed an excell worksheet with columns A thru K.  My question refers to rows 10 thru 20 which have some simple calculations.
  G10 has the formula:  H10-F10
  G11 thru 19 has the same formula  (H11-F11, etc.)
  J10 has the formula:  F10/H10  (The result is a percentage)
  J11 thru 19 has the same formula  (F11/H11, etc.)
  K10 has the formula:  D10*J10-E10
  K11 thru 19 has the same formula  (D11*J11-E11, etc.)
  I10 has the formula:  D10-H10
  I11 thru I19 has the same formula  (D11-H11, etc.)

Row 20 contains totals for each column.
  Example:  Cell G20  Formula: G10:G19

My problem is trying to get a running total in Cell K20. Formula: K11:K19.
Since the individual cells, K10 thru K19, have the formula D*J-E, and values have not been entered for all of those cells; I get an error: #DIV/0 in Cell K10 thru K19.

The problem is that Cell K20 will not give me a total unless all cells, K10 thru K19, have a value.

Example:  D10=100,000, J10=85%, E10=50,000, then K10=35,000.  (D10*J10-E10)

Since values have not been filled in for the other rows, K11 thru K19, I get the error #DIV/0 in Cell K20.

Is there any way to get rid of that error and show a value of Zero in cells K10 thru K19 until a value has been inputed in the other cells so that I will have a running total in Cell K20?
0
Comment
Question by:Miked062998
7 Comments
 
LVL 44

Accepted Solution

by:
bruintje earned 200 total points
ID: 6943062
Hi Miked.

-If you use division always test the cell you divide with

-so change the formula
-in cell J10 to =IF(VALUE(H<>0),J10/H10,0)
-and copy this down J11 through J19

-this will solve the #DIV/0 errors
-and will use 0 for cells not filled yet

HTH:O)Bruintje
0
 
LVL 44

Expert Comment

by:bruintje
ID: 6943081
sorry my mistake

in cell J10 to =IF(VALUE(H10)<>0,J10/H10,0)
0
 
LVL 8

Expert Comment

by:starl
ID: 6943147
bruin - take a look at this please:
http://www.experts-exchange.com/msoffice/Q.20289391.html
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 6

Expert Comment

by:bkpchs237
ID: 6943685
Miked,

I like the following alternative for J10:
=IF(H10=0,0,F10/H10) then copy down the column as needed.

Hope this helps.
0
 
LVL 3

Expert Comment

by:forsbom
ID: 6944106
Hi Miked
Excel has a worksheet function for error checking you can use: ISERROR(), which traps errors like :#N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, and #NULL!
 
In your case you can use it like this:
in J10 enter
=IF(ISERROR(F10/H10);0;F10/H10)

:-)
regards
Peter
0
 

Author Comment

by:Miked062998
ID: 6945435
Thank you all for your input.  They all were excellent.  Since bruintje responded first; I am awarding the points to him.

Thanks again
Mike
0
 
LVL 44

Expert Comment

by:bruintje
ID: 6945566
glad i could help, thanks for the grade + points
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IF OR formula Excel - multiple conditions 9 54
Excel Formula - certain part of string 2 47
Copying and pasting pictures from Excel 2 41
Compile Error 7 41
In case Office 2010 has not been deployed in your environment, this article may be quite useful. In our office, we wanted a way to deploy Microsoft Office Professional Plus 2010 through an automated batch file via logon script. This article is docum…
No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now