I need a VBA code or a function like countifs but for unique values.
In my file, I introduced COUNTIFS formula but this formula does not count right for unique values.
COUNTIFS calculate the global number but in my file a person can be situated in the report for many times. For example, If I have 6 rows in report but a Insurance number have situated on 2 rows, the COUNTIFS function returns 6 instead of 5.
My columns are the following:
Name, Middle Name, Insurance Number, Town, Street, decision number, value, date and County
I have to calculate the number of unique persons based on date and county.
In my file, I introduced COUNTIFS formula but this formula does not count right for unique values.
COUNTIFS calculate the global number but in my file a person can be situated in the report for many times. For example, If I have 6 rows in report but a Insurance number have situated on 2 rows, the COUNTIFS function returns 6 instead of 5.
My columns are the following:
Name, Middle Name, Insurance Number, Town, Street, decision number, value, date and County
I have to calculate the number of unique persons based on date and county.