So you want to do the equivalent of =countif() but with filtered data?
If that's close to what you mean:
Aladin Akyurek posted this:
If you're trying to count the occurrences of a certain text in V which
is part of an AutoFiltered range....
=SUMPRODUCT(SUBTOTAL(3,OFFSET(Vrange,ROW(Vrange)-MIN(ROW(Vrange)),,1)),
--(Vrange="Rome"))
would calculate the frequency of occurrence of "Rome" in Vrange, the
range in column V in the area subjected to AutoFilter.
===
that formula sits in one cell. And if you wanted to count the number of Rome's
that appear in B2:B99 after you filter on some other column (mixture of Rome,
Paris, London still appear in B2:B99, you'd used Aladin's formula--just replace
Vrange with B2:B99 in that formula.
I understand what you suggested, however, it doesn't address the issue of the
result changing when applying filters to other columns in the spreadsheet.
I was able to get the total number of cells that contains, for instance
"DP*", however when I applied filters to another column the total number of
cells containing DP did not change.