DISTINCTCOUNT

=DISTINCTCOUNT(Array)

Array
Required. Without it, calling this function is like a broken pencil – pointless.

Count the unique elements in an Array, regardless of their frequencies.

GeertD

Board Regular
Joined
Dec 22, 2020
Messages
60
Office Version
  1. 365
Platform
  1. Windows
DISTINCTCOUNT: Count the unique elements in an Array, regardless of their frequencies.
Excel Formula:
=LAMBDA(Array,
   COUNTA(UNIQUE(Array))
)
DXLR's LAMBDA.LET Library_v00.07.xlsb
ABCDEFGHIJ
1Just a table:
2First NameLast NameScoreCountryCountRows:20
3AliceLivingstone6GermanyDistinctCount:14(First Name)
4MikaylaLindberg14Germany
5CharlesHurst3Poland
6LondonEdmund1Argentina
7MylaStukeby5Germany
8XzavierAngus4Romania
9MikaylaSlater14Mexico
10AlicePoole4Finland
11AliceJohansen34MexicoDistinctCount:16(Score)
12KarlTilton11Mexico
13MikaylaBruno18Finland
14PaxtonChadsey3USA
15LamontLacy17Slovakia
16JaylanForbes9Egypt
17PaxtonBeckley15Brazil
18AlejandraDonoso22Spain
19DeonteAstley13Thailand
20AlfredSarisbury27Argentina
21KarlIngoldsby13Germany
22RylanHasbrouck33Indonesia
23
Sandbox_Mr.Excel
Cell Formulas
RangeFormula
H2H2=COUNTA(tblTop[First Name])
H3H3=DistinctCount(tblTop[First Name])
H11H11=DistinctCount(tblTop[Score])
 
Upvote 0

Forum statistics

Threads
1,224,836
Messages
6,181,251
Members
453,027
Latest member
Lost_in_spreadsheets

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