I have the below table in Excel with 3 columns. I need to do a distinct count for type 1 and type 2 on the SN column with the filter working. Duplicate values are in Red, they shouldn't be counted two times and just count visible cells in the table.
in the below screenshot, the Class A filter is applied:
in the below screenshot, the Class B filter is applied:
in the below screenshot, the Class A filter is applied:
in the below screenshot, the Class B filter is applied: