Blank cells are zeros?

sdlevy13

New Member
Joined
Nov 7, 2011
Messages
1
I am trying to average cells, and several cells are blank for now. They will eventually be filled in, but they are showing up in the average formula as zeros, so has the #DIV/0! error. How can I get it to not factor in the blank cells?
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Assuming your data is in A1:A20.

For Excel 2007 and newer:

=AVERAGEIF(A1:A20,">"&0)

For 2003 and older:

=SUMIF(A1:A20,">"&0)/COUNTIF(A1:A20,">"&0)
 
Upvote 0
Welcome to the board...

The Average function does not consider blanks as 0's.

Can you post the actual formula in question?
 
Upvote 0
That's strange someone else just asked the same thing. The OP is correct though. Averaging an area with no populated values will result in a div/0! error.

Try like so:

Code:
=IF(ISERROR(AVERAGE(D4:D6)),"",AVERAGE(D4:D6))
 
Upvote 0

Forum statistics

Threads
1,203,356
Messages
6,054,932
Members
444,759
Latest member
TeckTeck

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