ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   sort (https://www.excelbanter.com/excel-worksheet-functions/63745-sort.html)

Bobt

sort
 
Have a column with hundreds of names. Sometimes the names appear more than
once. Would like to total the column by the number of names. Do not want a
name added to the total more than once. EX: John Smith appears 5 times in
the column. I only want it counted once.
Thanks.

Dave Peterson

sort
 
This'll count the number of distinct values in a range:

=SUMPRODUCT((A1:A99<"")/COUNTIF(A1:A99,A1:A99&""))

(adjust the range to match, but don't use the whole column)

Bobt wrote:

Have a column with hundreds of names. Sometimes the names appear more than
once. Would like to total the column by the number of names. Do not want a
name added to the total more than once. EX: John Smith appears 5 times in
the column. I only want it counted once.
Thanks.


--

Dave Peterson


All times are GMT +1. The time now is 11:04 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com