vba - If, Then, Duplicate Excel Formula -
vba - If, Then, Duplicate Excel Formula -
column "a" numbering column each row, numbers same, ie..
a1 1 a2 3 a3 1 a4 3
i need formula show how many cells content in column without counting duplicates, above 2. figuring "if-then" formula unable straight. help out there? give thanks in advance!
if you're using excel 2013, want there's count distinct function. nonetheless, can this:
=sum(if(frequency(a1:a4,a1:a4)>0,1))
edit: adding explanation. frequency
function gets frequency of unique values within array a1:a4
(first parameter), binning using values within a1:a4
(second parameter). if
checks see if returns anything, i.e. if frequency greater 0, in case returns 1 each unique value finds. sum
adds number of 1s returned if
statement, in turn giving number of unique values within array a1:a4
.
excel vba if-statement duplicates formula
Comments
Post a Comment