Trying to Understand Filter Function

Stephen_IV

Well-known Member
Joined
Mar 17, 2003
Messages
1,168
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I know how to use Countifs but I decided to try to use the Filter function and cannot understand why I keeps giving me a count of 1 for 2 of the values that should be 0 (I suppose CountA).

For in stance HOU gives me a count of ($A$1:$A$28=$D14)*($B$1:$B$28="W") {0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0} and I am still receiving a count of 1. Any help I would appreciate it!

Breaking Down Series.xlsx
ABCDEFG
1BOSWTeamFilterCountifs
2TORTBOS11
3BALLTOR33
4DETWBAL33
5CLEWDET22
6BALWCLE22
7KCRWKCR11
8TORWTEX11
9TEXWCHW11
10TORWTBR22
11CHWWLAA11
12BALWMIN11
13CHWLCHC11
14BALWHOU10
15TBRTOAK11
16LAAWPIT10
17DETW
18MINW
19CHCW
20TBRW
21TORW
22TBRW
23HOUT
24OAKW
25HOUL
26CLEW
27PITT
28BOST
Sheet2
Cell Formulas
RangeFormula
E2:E16E2=COUNTA(FILTER($A$1:$A$28,($A$1:$A$28=$D2)*($B$1:$B$28="W")))
G2:G16G2=COUNTIFS($A$1:$A$28,D2,$B$1:$B$28,"W")
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
If the filter returns an error then Counta will count that error hence you get 1
Try it like
Excel Formula:
=COUNT(FILTER(ROW($A$1:$A$28),($A$1:$A$28=$D2)*($B$1:$B$28="W")))
 
Upvote 0
Perfect Fluff. I suspected that. Always a pleasure! Thanks again!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,213,484
Messages
6,113,924
Members
448,533
Latest member
thietbibeboiwasaco

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