# how to sum when there is #div/0 in datas

#### pmncivil

##### New Member
hi there thank u for help
my problem is : i have many digits that comes from other cells and they have not calculated yet so
forexample i have the answer of a1,b1,c1 but i have not the answer of d1,e1,f1
but i need the average of those digits that i have them. the important is these digits are bringed from other cells so the excell doesn't show the average
 1 2 3 #div/0! #div/0!

<tbody>
</tbody>
in need the average of these new cells in above but it shows #div/0!
how can i tell to excell : ignore those #div/0! part till they come in future then calculate them as new numbers for average function

i mean i dont need those #div/0! till the other day which i insert them in the other sells so they will bring to above chart.
did u understand what do i mean?
thank u for ur help

### Excel Facts

Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

#### sakmsb

##### New Member
hi,

try this:- =SUMIF(M16:Q16,"<>#DIV/0!") for getting sum

and AVERAGEIF for getting average.

#### Pup Denab

##### Active Member
Hi pmncivil
Put this around you formula, then you can average the row,
however if you want the average of all cells in the row use
as excel will only count cells, which are visible, as in your example, 3 cells would be averaged, in the second formula all 5 cells would be averaged,

##### MrExcel MVP
Either...

=SUM(SUMIF(A1:F1,{"<0",">0"}))/MAX(1,COUNT(A1:F1))

Or...

=IFERROR(SUM(SUMIF(A1:F1,{"<0",">0"}))/COUNT(A1:F1),"")

#### FormR

##### MrExcel MVP
Or if you have XL2010 and higher:

Excel Workbook
ABCDEFG
1123#DIV/0!#DIV/0!6
Sheet2

#### FormR

##### MrExcel MVP
Or if you have XL2010 and higher:

For the average it would be:
=AGGREGATE(1,6,A1:F1)

Replies
10
Views
325
Replies
2
Views
169
Replies
8
Views
120
Replies
4
Views
791
Replies
15
Views
672

1,127,554
Messages
5,625,477
Members
416,109
Latest member
TripleA00123

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back