When counting unique values in Microsoft Excel, use UNIQUE() as a helper function and avoid more complicated expressions. The TechRepublic article How to create a sorted unique list in an Excel ...
If you need to average a list of values in Microsoft Excel that contain duplicates without including the duplicates, don’t fret over a complex expression when you can easily remove those duplicates.