Count non-zero numbers only

loudnoiseman

Board Regular
Joined
Dec 31, 2004
Messages
218
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,

I'm trying to figure out how to make the count formula only account for numbers above or below zero but not zero itself.

For my purposes each instance where there is a zero essentially is not a factor to be considered yet it is factored in and thus throws off my expected result.

As an example, a range of cells containing 1 through 10 averages 5.5 but if I replace 3 & 7 with 0 then the average changes to 4.5 but if I deleted 3 & 7 then it's 5.625

Thanks!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Book1
ABCD
172018
21
3-5
410
5-3
6-10
74
80
9-7
103
11-1
127
135
147
150
169
1710
182
19-2
207
ListNamedRanges
Cell Formulas
RangeFormula
C1C1=COUNT(A1:A20)
D1D1=COUNTIF(A1:A20,"<>0")
 
Upvote 0
Solution

Forum statistics

Threads
1,214,947
Messages
6,122,411
Members
449,081
Latest member
JAMES KECULAH

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