Share via

COUNTA(UNIQUE(FILTER

Anonymous
2022-05-27T19:29:01+00:00

I have a formula that I can't seem to get working properly.

=COUNTA(UNIQUE(FILTER(LBL!$B:$B,"*Indepen*")))

I keep getting 1, which I know means the formula isn't finding anything that matches my filter, but even if I only put "e" I still get 1.

Any ideas what I'm doing wrong?

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

HansV 462.6K Reputation points
2022-05-27T19:46:13+00:00

The problem is that FILTER does not work with wildcards.

Because of that, FILTER(LBL!$B:$B,"*Indepen*") returns only a single #VALUE!, and hence the count is 1.

Change the formula to

=COUNTA(UNIQUE(FILTER(LBL!$B:$B,ISNUMBER(SEARCH("Indepen",LBL!$B:$B)))))

Was this answer helpful?

0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Anonymous
    2022-05-30T12:41:25+00:00

    Unforunatly this does not work as the string "Indepent" is not starting from the left hand side.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2022-05-30T12:39:12+00:00

    This worked perfectly, thank you!

    Was this answer helpful?

    0 comments No comments
  3. Ashish Mathur 102K Reputation points Volunteer Moderator
    2022-05-27T23:08:02+00:00

    Hi,

    Does this work?

    =COUNTA(UNIQUE(FILTER(LBL!$B:$B,LEFT(LBL!$B:$B,7)="Indepen")))

    Was this answer helpful?

    0 comments No comments