[Solved] Counting duplicates

Discuss the spreadsheet application
Post Reply
dentopolis
Posts: 19
Joined: Mon Sep 23, 2013 2:44 pm

[Solved] Counting duplicates

Post by dentopolis »

I have a list of Cities where my customers come from. how to display only unique values and count numbers of customers from those cities?
example:
Washington
New York
New York
New York
Washington


I need:
New York | 3
Washington | 2
Last edited by Hagar Delest on Tue Dec 10, 2013 11:10 pm, edited 1 time in total.
Reason: tagged [Solved].
LibreOffice 7.4
User avatar
Villeroy
Volunteer
Posts: 31363
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: counting duplicates

Post by Villeroy »

Add a column header on top, say "Cities"
Select the list including that header cell.
Data>PivotTables>Start...
[X] Pivot table from current selection, [OK]
Drag "Cities" to "Row Fields"
Drag "Cities" to "Data Fields", double-click, choose "Count" as function.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
dentopolis
Posts: 19
Joined: Mon Sep 23, 2013 2:44 pm

Re: counting duplicates

Post by dentopolis »

great.that works!thank you
LibreOffice 7.4
thinman3
Volunteer
Posts: 382
Joined: Sat Jul 11, 2009 8:53 pm

Re: counting duplicates

Post by thinman3 »

 Edit: Well, a little late but whatever; 
The attached file shows two ways to get the count of the same entries in col. A and describes how to FILTER column A to get a single entry list for entries in column A.
Duplicates, FILTER, COUNTIF.ods
(12.86 KiB) Downloaded 1677 times
3.4.1 & 4.1.5 on MS Windows 7 Pro x64
Post Reply