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

pmncivil

New Member
Joined
Oct 4, 2014
Messages
24
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
123#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

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
hi,

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

and AVERAGEIF for getting average.
 
Upvote 0
Hi pmncivil
Put this around you formula, then you can average the row,
=IFERROR(your formula here,"")
however if you want the average of all cells in the row use
IFERROR(your formula here,"0")
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,
 
Upvote 0
Either...

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

Or...

=IFERROR(SUM(SUMIF(A1:F1,{"<0",">0"}))/COUNT(A1:F1),"")
 
Upvote 0
Or if you have XL2010 and higher:

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

Forum statistics

Threads
1,214,429
Messages
6,119,433
Members
448,897
Latest member
ksjohnson1970

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top