richard_d1
New Member
- Joined
- Feb 7, 2022
- Messages
- 12
- Office Version
- 365
- Platform
- Windows
I've got a range of letters, and I want to calculate how many unique values occur in it, excluding the letter A and empty cells.
I've used the formula
which works fine, except when the result should be zero.
Here are some examples:
The first three work, counting the number of unique values, except A and empty cells. But the last two should return 0, but don't, as COUNTA is counting #VALUE as 1.
I've tried all sorts, but can't figure out how to do it.
I've used the formula
Excel Formula:
=COUNTA(UNIQUE(FILTER(A1:A10,(A1:A10<>"A")*(A1:A10<>""))))
Here are some examples:
Cell Formulas | ||
---|---|---|
Range | Formula | |
A12,I12,G12,E12,C12 | A12 | =COUNTA(UNIQUE(FILTER(A1:A10,(A1:A10<>"A")*(A1:A10<>"")))) |
The first three work, counting the number of unique values, except A and empty cells. But the last two should return 0, but don't, as COUNTA is counting #VALUE as 1.
I've tried all sorts, but can't figure out how to do it.