Skip to content

Instantly share code, notes, and snippets.

@bcoughlan
Created July 2, 2012 02:09
Show Gist options
  • Save bcoughlan/3030514 to your computer and use it in GitHub Desktop.
Save bcoughlan/3030514 to your computer and use it in GitHub Desktop.
OpenOffice calc - count duplicates
=COUNTA(A2:A23)-SUMPRODUCT((A2:A23<>"")/(COUNTIF(A2:A23,A2:A23)+(A2:A23="")))
@stiegenaufgang
Copy link

At first, thanks for this great snippet.
I tried it with Apache OpenOffice 4.0.1 and it only worked after changing the comma in the COUNTIF function to a semicolon.

=COUNTA(A2:A23)-SUMPRODUCT((A2:A23<>"")/(COUNTIF(A2:A23;A2:A23)+(A2:A23="")))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment