Free Microsoft Excel 2013 Quick Reference

Ignoring #DIV/O! in averages

I'm averaging numbers linked to worksheets for five weeks,
week 1 100
week 2 200

but weeks 3,4 and 5 aren't complete yet, so the cells shows #DIV/O!

The average shows the same thing. It only shows an average after all five weeks. Is there a way to tell it to ignore the cell contents if it's #DIV/O!


Post your answer or comment

comments powered by Disqus
Is it possible to ignore a cell in a formula if the data is #DIV/0 ive tried
messing around with IF statements but I cant seem to figure it out

I am having problems gatting rid of the #div/o! In an excel sheet. It has all this formulas so that my employees don't have to do them manually and insted just enter info in a data_base. But i don´t know what to do when i get #div/o! In the following formula:


I get the #div/o! When there is no data on sheet1 matching the value on sheet2!$b41, and they look awful...specially when i print and post the reports...

Please help!!!

Below is my formula...there are #DIV/0! in the data set...(I can't remove).
I want to exclude them in the formula. to I exclude the
#DIV/0! in the following formula? Thanks in advance...

=(SUMPRODUCT((Main!$H$2:$H$95>100)*(Main!$I$2:$I$9 5-Main!$H$2:$H$95)/(Main!$I$2:$I$95)>0.5))

Hello folks!

I can't seem to find any information on ignoring div/0 errors when using formulas. Currently I have a lot of formulas that read from cells which currently have a div/0 error due to another formula. I'd rather make some changes to the formula reading the div/0 errors than change the formulas themselves to change any div/0 errors (using the countif tips given to me on my last post - thanks for the help, once again).

How do you make a formula ignore div/0 errors? If that doesn't work, does that mean I need to change all of my formulas which result in div/0 errors?

Any help would be greatly appreciated.

Formula 1: AVERAGE(A1:A50) - results in #DIV/0!
Formula 2: AVERAGE(Formula 1, someothervalue)

Hey all,

I have a formula where the average of an entire column of values is displayed. Now the values for this column are all averages of a small row of cells. The issue is, I would like to have the formula in place for all the cells, so people can input the values of the results they have, so the rows will automatically generate a value when inputted. The problem is, when the formula (in column D below) doesn't have any values, a #DIV/0! comes up, and then the total average (the merged cell in row 9) ends up the same.

******** ******************** ************************************************************************>Microsoft Excel - Call Flow Adherance.xls___Running: xl2000 : OS = Windows Windows 2000 (F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)boutD3D4D5D6D7D8A9=
ABCD1Revenue Generation21= Yes
0= No1= Yes
0= No1= Yes
0= NoAverage for Revenue Generation310166.67%4 #DIV/0!5 #DIV/0!6 #DIV/0!7 #DIV/0!8 #DIV/0!9#REF!Sheet2
[HtmlMaker 2.42] To see the formula in the cells just click on the cells hyperlink or click the Name box

Is there a way to do this?



I have a data range - C4:C54 and I want an AVERAGE calculated in C56, but I only want a value displayed in C56 when a data entry is put in. Up to 50 data points could be put in anywhere e.g. only 14 values in C16:C30, or 44 values in C6:C50, or the full 50 in C4:C54.

The formula I've been trying is

However, when no values are in the range it displays DIV/0! whereas I'd like the cell blank.

Can anyone help me? Sure this is pretty easy and it's just me missing a trick ?


A little knowledge is a terrible thing. This should be a common problem, but I couldn't find the solution anywhere. I'm looking for a function that will display the average of a row of cells, while at the same time not displaying any error messages. It's easy to average cells without blank values, but to combine that with no errors is difficult for me. I saw many ways to do the average, one of which is:


That function doesn't work for a row of blank cells (i.e., hidden rows), though. The result is an error message.

I also read about a way to ignore an error in a computation:


The problem is when I combine those functions I get a blank cell no matter which function I put first, and without regards to cell values or not. The reason I want this to be error-free is that I have to average the "average column" at the bottom of the table, too (i.e., F100). Is there a better way?


Above formula gives out "#DIV/0!" value if there is not data (in other words, zero value). Is there a way to modify above formula to get a 0 (zero) or a blank if there is no data (numeric only)?

Thank you!


I need a formula that will ignor #DIV/0! in the columns that it need to average. Right now I have a YTD sheet that pull multile months and if I had added a column that didn't exist in a prior month a #DIV/0! is in the cell so my average statement returns the same.



I have searched through the groups and found suggestions as to how to
include "if" statements to capture div/0 and exclude them. The problem
I am having is how to exclude from the range all values equal Div/O. I
read that an error is propogated in a formula. I found
=SUMPRODUCT((5>10)*(5/0)) shows Div/O. I can use an If to capture the
2nd argument but not if the 2nd argument is a range of cells C1:C50
which may have div/0 at cell C5, C13, C16. Any suggestions how I can
get sumproduct to ignore these values? thanks.



I have searched through the groups and found suggestions as to how to
include "if" statements to capture div/0 and exclude them. The problem
I am having is how to exclude from the range all values equal Div/O. I
read that an error is propogated in a formula. I found
=SUMPRODUCT((5>10)*(5/0)) shows Div/O. I can use an If to capture the
2nd argument but not if the 2nd argument is a range of cells C1:C50
which may have div/0 at cell C5, C13, C16. Any suggestions how I can
get sumproduct to ignore these values? thanks.


This one's probably a silly question.

I have a formula with no inforamtion in the cells yet. This returns a value in the formula cell of #DIV/O!. What i'm looking for is if the formula doesn't have any data to have the formula cell return a value of Zero instead of #DIV/O!.

Any thoughts?

Example formula


B3,C3, and D3 are blank cells and returns a value of #DIV/O! and i would prefer the value to return a zero in this situation.

Thank you in return.

I maintain competition scores for a photo club and I would like to rank members by their average score. The average score is their total points divided by the number of entries.

My formula returns the DIV/O error because some of the cells in the column of averages have 0 entries and 0 scores. Is there a way to only rank the averages scores that are >0?

Here's the formula that works but only if all the cells in the column have a positive number. =RANK(CC6,$CC$6:$CC$56,0)

Thanks in advance for any suggestions.


I have rows of data with numbers and these #DIV/0! errors. I need a sum formula so when going through the entire row it will ignore these errors, at the moment as they are included in my sum formula the total is also giving me #DIV/0!

Any help, very greatful!!!

Hi- I have a spreadsheet that contains columns with weekly totals. I am using AVERAGEA to come up with MTD averages for the weekly totals. The spreadsheet covers the entire year so for some months there isn't data yet so the monthly average is a divide by zero error (#DIV/0!)- which is fine but now I need to be able to average the monthly results to obtain a YTD average.

Hi All

I am trying to work out if there is an excel formula to calculate the below.....

I have 2 cells A & B and if i divide A by B and the result is 0 (ie there being 0 in both A & B) I get a #DIV/O! result when I need it to show a 0

Can anyone help with this? Thanks, Niki

Hello, I have another problem!

I am using an "average if" formula and when there isn't a corresponding value it will return a #DIV/O!

I would like to know how to make it return a 0 figure rather than the #DIV/O!. I figure it would be something similar to the "IF ISNA" command

=AVERAGE(IF('MI April - June 2006 (2)'!$K$5:$K$20000=Report!$A30,IF('MI April - June 2006 (2)'!$G$5:$G$20000=Report!F$5,'MI April - June 2006 (2)'!$C$5:$C$20000)))

Thank you for your help.


Greetings all!

This is a working formula.

Problem: I would like to get rid of #DIV/0! error I get when the formula result is zero. I would simply prefer the value zero.


Thank you, have a good one.

Best Regards,

Hi Guys, the problem im having is I have a formula that will more often than not show a div/o error or value error, now i know there will be there but i want to add to the formula that if they occur it will just show NA and not an error. Below are the formulas which im using the problem being is that if the first formula being in cell DT3 comes back as NA then the second formula comes back as a value error.

So thinking about it now its the just the second formula that would need more information in it.

=IF(DJ3+CZ3+CP3+CF3+BV3+BL3+BB3+AR3+AH3+X3+N3+D3>0,(DJ3+CZ3+CP3+CF3+BV3+BL3+BB3+AR3+AH3+X3+N3+D3),"N A")


I have a formula as follows =TRUNC(G6/F6+0.5) when there
is no value in the cell it returns #DIV/O!
Is there a way that the cell becomes blank instead of

thank you all
rgs jerie

I put in the formula:


Some of the worksheets that I put this formula are going to have zero's at
times, so how do I change the formula to not have anything in the cell at all
instead of #DIV/0?

Thanks for your help!

I am trying to ignore blank cells in a certain column. Columns A and B contain data. Column A contains number between 2 and 11, and column B contains measured data.
The formula I am using is as follows:


This formula goes on using 2 to 11 in the logic test statement and takes the variance. But, if one of the cells is blank in the B column, an error occurs in the IF statement evaluation, leading to an error as the final answer.
This workbook will be used by others, and there is no way to predetermine which cells will be blank when data is pasted into the worksheet.


Howdy, first post here.

I'm using Pivot Table to summarize numeric results, formatted as numbers, to show average, count and standard deviation. These are arranged in columns by a sample size.

I'm getting normal results for average in the sample size columns and #DIV/0! in the Total column, even though the count and standard deviation show the correct values in both columns. When I use Excel's average function in the toolbar at the bottom there is no error. The number of numbers averaged is several dozen. There are no blanks in the data.

If I change the table option for showing errors to ??, it shows ??, so the table thinks it is finding an error.

Any ideas why the table is finding an error?

I have several calculated fields in a pivot table. Sometimes there's a division by zero, which returns #DIV/0!

In a regular formula, I can use an IF statement to return a blank or a zero, but it's not working in the calculated field.

I've tried both of these, but continue to get #VALUE! errors.

=IF(ISERROR('ACD Calls' /'-NCO' ),"",'ACD Calls'/'-NCO')
=IF('ACD Calls'+'Aban Calls' =0,"",'ACD Calls'/'-NCO')

EDIT: So can anyone tell me how to modify my calculated field to not return an error?

No luck finding an answer? You could always try Google.