How to Count unique values in a single column

Twinkievizzio11

New Member
Joined
Apr 27, 2017
Messages
30
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hello,

What formula can I use to count unique values in a single column located on a worksheet named "Prior"?

Example:
Worksheet name ""prior" column D has the following information which is in text format

11111
22222
11111
33333
33333
44444
55555
11111
55555

I need a formula that will count the number f unique values totaling 5

Please help!

Thank you
 
That shouldn't matter, as long as they are all text.
 
Upvote 0

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Simply change the = to <> and reconfirm with Ctrl Shift Enter
 
Upvote 0
works for me (all values are text)

Excel 2013/2016
CD
3201813
4
52018111111
62018222222
72018122222
82018233333
92018211111
102018122222
Sheet6
Cell Formulas
RangeFormula
D3{=SUM(--(FREQUENCY(IF(C5:C10<>C3,MATCH(D5:D10,D5:D10,0)),ROW(D5:D10)-ROW(D5)+1)>0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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