Hi AleishaB,
Thanks for your post in Microsoft Community.
Actually, using the Filter feature in Excel to filter cells is only visual. The cells are still present on the worksheet. You may have noticed that there are gaps between cells A1 and A3. This indicates that cell A2 has not disappeared; it's just hidden from view.
Formulas work based on the actual cells, not the displayed ones. Therefore, the previous formula does not work perfectly in this case.
However, you might consider using the FILTER function, which can achieve similar functionality to the filter tool.
For example, if I want to count the names in column A when Type equals "renew", using Excel's Filter feature results in this:
Using this formula:
=COUNTA(UNIQUE(FILTER(A2:A5, B2:B5 = C3)))
The name "Doyle" after being filtered and deduplicated is counted as only one instance, and the updated formula works correctly.
I hope the information above is helpful to you!
Best Regards,
Thomas C - MSFT | Microsoft Community Support Specialist