"Formula"

Marwan69

Board Regular
Joined
Mar 14, 2018
Messages
80
Hi Folks,

I'm trying to take the average of a series. However, there're a few empty cells with no values which returns "#DIV/0!".

How can fix that with excel formulas?

Many thanks,
Marwan
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
what is the range? can you post an example of your averages? what does you current formula look like? what version of excel are you running?

if i use =average(B2:E2) where c2 is blank it still calculates an average
even if there is a 0 it should work
(excel 2016)

the only time i get your error is if all values are blank
 
Upvote 0
#DIV/0! is the result of a division by zero in that particular cell.
As BlakeSkate stated, empty cells in the range with the Average formula don't raise the DIV/0 error.
 
Upvote 0
See if this helps.
If you have Excel ver 2010 or later try:

Book1
ABC
1DataAverage
222.625
31.5
43
5#DIV/0!
64
Sheet2
Cell Formulas
RangeFormula
C2C2=AGGREGATE(1,6,A2:A6)
A5A5=45/0
 
Upvote 0
what is the range? can you post an example of your averages? what does you current formula look like? what version of excel are you running?

if i use =average(B2:E2) where c2 is blank it still calculates an average
even if there is a 0 it should work
(excel 2016)

the only time i get your error is if all values are blank
what is the range? can you post an example of your averages? what does you current formula look like? what version of excel are you running?

if i use =average(B2:E2) where c2 is blank it still calculates an average
even if there is a 0 it should work
(excel 2016)

the only time i get your error is if all values are blank
Hi BlakeSkate

Am using Version 2013 and the idea is I have a range from A1 to E1 and so on for the other ranges. For the entire range sometimes there's only one number which yields this value error when using Average.
 
Upvote 0
See if this helps.
If you have Excel ver 2010 or later try:

Book1
ABC
1DataAverage
222.625
31.5
43
5#DIV/0!
64
Sheet2
Cell Formulas
RangeFormula
C2C2=AGGREGATE(1,6,A2:A6)
A5A5=45/0
Thanks so much AhoyNC!

I have also incorporated the IFERROR when vale returns "#DIV/0!"

=IFERROR(AGGREGATE(1,6,D4,F4,H4,J4,L4,N4,P4),"").

Appreciated and happy new year to all of you:)
 
Upvote 0
You're welcome. Thanks for the feedback. You may want to see what cell or cells are causing the error and try to correct the error before passing the data to the AVERAGE or AGGREGATE function.
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,834
Members
452,947
Latest member
Gerry_F

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