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
 

Some videos you may like

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

sakmsb

New Member
Joined
Apr 15, 2014
Messages
6
hi,

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

and AVERAGEIF for getting average.
 

Pup Denab

Active Member
Joined
May 12, 2013
Messages
299
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,
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,201
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
Joined
Aug 18, 2011
Messages
6,465
Office Version
  1. 365
Platform
  1. Windows
Or if you have XL2010 and higher:

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

Watch MrExcel Video

Forum statistics

Threads
1,123,087
Messages
5,599,658
Members
414,325
Latest member
kfg1287

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
Top