Excel 2007 counting empty cells in Average, Count and other functions

Michael Kensy

New Member
Joined
Sep 27, 2017
Messages
25
Hola Forum

I recently came across a file where the AVERAGE function calculates its value base on the number of all cells no matter if they contain a value or not. Please view the example below:
Excel Workbook
AQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBIBJBKBLBMBNBOBPBQBRBSBTBU
28080807590606550606540606060656075858565658075808369.224
Hospitation Record


Even using the COUNTIF function with a condition >0 does not use the expected divisior. At the same time the COUNTBLANKS does recognize these same cells. I further on used the GoTo, Special, Blanks and Cleared, All command but still those empty cells are counted.

Anyone any idea why?

The original file is generated on a CHINESE SETUP PC, my one is a US SETUP. Both PCs got Office 2007 installed.
--
Cheers Michael
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
[1] =SUM(AQ2:BR2)/(COUNT(AQ2:BR2)-COUNTBLANK(AQ2:BR2))

is a wrong calculation, that is, it's not an average what it calculates.

Both:

[2] =AVERAGE(AQ2:BR2)

[3] =SUM(AQ2:BR2)/COUNT(AQ2:BR2)

ignore empty/blank cells, while [1] does not not because COUNTBLANK counts both empty (unused) and blanks (e.g., created by ="").

To recap: the denominator the formula in [1] uses is wrong for an ordinary average.
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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