Distinct Count

Szucchari

New Member
Joined
Jun 3, 2019
Messages
22
Hi,
I need a formula that will do a distinct count for multiple criteria. I need the Rows to only be counted once if Rows A, B, and C are all distinct. This examples is small but the workbook I have to do this distinct count on is over 36,000 rows.
Customer Account numberCustomer First nameCustomer Last nameItem number
555555LeeAdams103
222222MikeJones103
88888StephTyme103
444444HollyMoore103
555555LeeAdams103

222222
MikeJones103
444444HollyMoore103
7777777StephTamen103
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Hi,
I need a formula that will do a distinct count for multiple criteria. I need the Rows to only be counted once if Rows A, B, and C are all distinct. This examples is small but the workbook I have to do this distinct count on is over 36,000 rows.
Customer Account numberCustomer First nameCustomer Last nameItem number
555555LeeAdams103
222222MikeJones103
88888StephTyme103
444444HollyMoore103
555555LeeAdams103

222222
MikeJones103
444444HollyMoore103
7777777StephTamen103
HI,

Please try this formula.

=ROWS(UNIQUE(A2:C9,0,0))


Please update your Excel Version in the profile so that we can provide accurate formula.
 
Upvote 0
If you have other version of excel, Try this:
Excel Formula:
=SUMPRODUCT(1/COUNTIFS($A$2:$A$20,$A$2:$A$20,$B$2:$B$20,$B$2:$B$20,$C$2:$C$20,$C$2:$C$20))
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,257
Members
449,075
Latest member
staticfluids

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