View Full Version : Count unique number in a column
mahmoud-lee
01-06-2014, 12:41 AM
What if we wanted to collect the unique values in the entire column
PcMax
01-07-2014, 02:24 AM
Hi,
I propose the following file
Use a matrix to test each value
{=(SUM(LEN(tbl))-SUM(LEN(SUBSTITUTE(tbl;$B$9;""))))/LEN($B$9)}
Sub M_unique()
sn = Split(Join([transpose(A1:A10)], ","), ",")
With CreateObject("scripting.dictionary")
For j = 1 To UBound(sn)
If sn(j) <> "" Then x0 = .Item(sn(j))
Next
MsgBox .Count
MsgBox Join(.keys)
End With
End Sub
mahmoud-lee
01-07-2014, 02:37 PM
Unfortunately, I do not want it like this
I want it by formulas and in one step
And thanks for all
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.