Help counting unique numbers

HeRoseInThree

Board Regular
Joined
Jan 11, 2018
Messages
103
Hello. I would like to count my data in column F, but only each unique entry.
If I have multiple examples of a particular number, I need to exclude those.
Thanks in advance
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
=SUMPRODUCT((A:A<>"")/COUNTIF(A:A,A:A&""))
Book5
ABC
114
22
33
44
52
63
74
Sheet1
Cell Formulas
RangeFormula
C1C1=SUMPRODUCT((A:A<>"")/COUNTIF(A:A,A:A&""))
 
Upvote 0
Try this formula. Change the range to suit. =SUMPRODUCT(1/COUNTIF(F1:F12,F1:F12))
 
Upvote 0
=SUMPRODUCT((A:A<>"")/COUNTIF(A:A,A:A&""))
Book5
ABC
114
22
33
44
52
63
74
Sheet1
Cell Formulas
RangeFormula
C1C1=SUMPRODUCT((A:A<>"")/COUNTIF(A:A,A:A&""))
The answer schoud be 10, right? 1, 2, 3 & 4 once = 10. Ignoring the duplicate 2, 3 & 4.
 
Upvote 0
sorry I read
"I would like to count my data in column F,"
=SUMPRODUCT(1/COUNTIF(A:A,A:A&""),A:A)
 
Upvote 0
to count the unique entries
=SUMPRODUCT((A:A<>"")/COUNTIF(A:A,A:A&""))
in my example would result in 4

to sum the unique entries
=SUMPRODUCT(1/COUNTIF(A:A,A:A&""),A:A)
in my example would result in 10
or
=SUMPRODUCT((A:A<>"")/COUNTIF(A:A,A:A&""),A:A)

Book1
ABCDE
11
22
31UNIQUE Values
42Count5
53Sum17
64
71
82
93
107
Sheet1
Cell Formulas
RangeFormula
D4D4=SUMPRODUCT((A:A<>"")/COUNTIF(A:A,A:A&""))
D5D5=SUMPRODUCT((A:A<>"")/COUNTIF(A:A,A:A&""),A:A)
 
Upvote 0
It would help to know what version of Excel you are using. If you are using Excel 365 then you could use the UNIQUE function.

Book1
FGHI
11
224Count
3310Sum
44
52
63
74
Sheet1
Cell Formulas
RangeFormula
H2H2=COUNT(UNIQUE(F:F))
H3H3=SUM(UNIQUE(F:F))
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,150
Members
453,021
Latest member
Justyna P

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