Counting the number of unique values
The following array formula returns the number of unique values in a range named Data:
{=SUM(1/COUNTIF(Data,Data))}
The preceding formula is one of those “classic” Excel formulas that gets passed around the Internet. I don’t think anyone knows who originated it.
Useful as it is, this formula does have a serious limitation: If the range contains any blank cells it returns an error. The following array formula solves this problem:
{=SUM(IF(COUNTIF(Data,Data)=0,””,1/COUNTIF(Data,Data)))}
// Related Posted - GOOGLE!
Loading
Related Websites
- Review: Wimbledon - The Official History of the Championships by John Barrett The Wimbledon championships began their life all the way back in 1877. They were simply a summer past time back...
- Excel How-to: The SUMIF Function The SUMIF function is an easy way to get a subtotal of specific data that meets a certain condition, without...
- Bushnell 5x20 Golf Scope Rangefinder (Silver) User Reviews Send this to a friend Bushnell 5x20 Golf Scope Rangefinder (Silver) Manufacturer: Bushnell Customer Rating: List Price: $24.99...
- PHP Class for better cache - fileCache Last days I'm working making many changes in Open Classifieds and one of them is this new class to handle...
- Review Comparing mascaras, Stiletto and Lancome Today I wanted to see how Maybelline's Stiletto mascara compared to Lancome's Oscillation mascara. I wore black in each. In...
