Counting Rows with Duplicate Data

ralamo

New Member
Joined
Apr 22, 2002
Messages
2
I don't know if its possible to do this in Excel. My worksheets has clients with duplicate rows. I'm attempting to tally the number of clients without counting them more than once.

i.e.:

client a
client a
client a
client b
client b
client c

total client: 3 instead of 6

Thanks in advance for your help.
Rob
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
On 2002-04-23 12:39, ralamo wrote:
I don't know if its possible to do this in Excel. My worksheets has clients with duplicate rows. I'm attempting to tally the number of clients without counting them more than once.

i.e.:

client a
client a
client a
client b
client b
client c

total client: 3 instead of 6

Thanks in advance for your help.
Rob

Either

=SUM(IF(FREQUENCY(MATCH(A2:A100,A2:A100,0),MATCH(A2:A100,A2:A100,0)),1))

or, array-enter,

=SUM(IF(LEN(A2:A100),1/COUNTIF(A2:A100,A2:A100)))

Note. To array-enter a formula hit control+shift+enter at the same time, not just enter.
This message was edited by Aladin Akyurek on 2002-04-23 12:52
 
Upvote 0
On 2002-04-23 12:39, ralamo wrote:
I don't know if its possible to do this in Excel

Never say that! Anything is possible in Excel. I knew Aladin would get to you soon enough. :LOL:
This message was edited by John McGraw on 2002-04-23 12:57
 
Upvote 0
Thank you very, very much, Aladin. The first formula worked. I will never doubt Excel ever again, John.

I'm a true believer, now.
 
Upvote 0
Otherwise try the advanced data filter-> unique record only. Then marking duplcate rows and couting them.

Even better: use SAS to tacle these kind of things.
 
Upvote 0

Forum statistics

Threads
1,214,620
Messages
6,120,559
Members
448,970
Latest member
kennimack

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