How to count text as a number - Exclude duplicates

Lmaonade

Board Regular
Joined
Jan 5, 2018
Messages
52
This is probably very simple for most people but I want to have a total number of names from a list but if the name comes up more than once I only want to count it once.

For example:

A
1Ryan
2Bob
3Jim
4Dan
5Andy
6Luke
7Peter
8Ryan
9Andy
10Stephen
11Mike
12Mike
13Eddy
14Jim
15Paul

<tbody>
</tbody>

<tbody>
</tbody>


I want a formula in another cell to count total number of people. So I'd want it the answer to return 11 as there are 11 unique names.

Thanks,
Andy
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Hi njimack,

Thanks a lot! This works! BUT, I also have some blanks in my spreadsheet which will be filled in as time goes on. Is there a way to have it disregard blanks, otherwise I get an error return (#DIV/0!)
 
Upvote 0
Control+shift+enter, not just enter:
Rich (BB code):
=SUM(IF(FREQUENCY(IF(1-($A$1:$A$15=""),MATCH($A$1:$A$15,$A$1:$A$15,0)),ROW($A$1:$A$15)-ROW($A$1)+1),1))

which is by far the most efficient formula for unique counting.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,099
Messages
6,128,813
Members
449,469
Latest member
Kingwi11y

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top