Ignore blank cells in a average

g29115

New Member
Joined
Oct 30, 2003
Messages
3
All,

I am doing an average of a column of cells. How do I tell excel to ignore the blank cells in the column and not calculate them in the average?

G.
 
That is not true if all cells are blank in range.
Actually, it is still true.
I assume the error you get is #DIV/0! when ALL the cells are blank.
Average = sum/count
If you're getting #DIV/0! error, that means there was a 0 count, therefor it DID in fact ignore (did not count) the blanks.
The count was 0, therfor the average was basically 0/0 = #DIV/0!

Which version of Excel are you using?
If you have XL2007+ you can do
=IFERROR(AVERAGE(A:A),"")

or in XL2003 try
=IF(COUNT(A:A,AVERAGE(A:A),"")
 
Last edited:
Upvote 0

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
I was using the avg tab linked to the "AUTO SUM". However I read a little further in the thread and the formula IFERROR(AVERAGE(A1:A1),"") was suggested. this solved the problem of having blank cells in a column where an average is needed.
 
Upvote 0
That is not true if all cells are blank in range.

I have a range of cells used for Status averages. Initially each week all cells are blank and then filled in as tasks are completed or partially.
I want an average of all non-blank cells at the top but using any of the formulas given here, there is an error when all cells are blank. Any input?

Why not try AverageIF - that would avoid the array command (ctrl-shift-enter "{ }"). Average does not include blank cells in its calculation and the IF statement can exclude a certain criteria (for example, to avoid less than 0 values enter "=AVERAGEIF(Range, "<0")
 
Upvote 0

Forum statistics

Threads
1,214,821
Messages
6,121,759
Members
449,048
Latest member
excelknuckles

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