Solved

Sorting multiple rows and columns, and count duplicates in Excel 2013

Posted on 2016-11-03
4
76 Views
Last Modified: 2016-11-06
Hi Experts,

I'm working in Excel spreadsheet exported from a Sharepoint survey solution. The spreadsheet contains names of the people from the survey in a table.

There are multiple duplicates in various cells within this table.

I am trying to do the following:

1. Sort the names in Alphabetical order
2. Count the number of names
3. A tally of Names with number of duplicates (if possible)

Is there a tool or formula that I can use to achieve this? A sample of input data and also what I would like to achieve as an output is attached.

Thanks in advance!
input.jpg
output.jpg
0
Comment
Question by:alexkim
  • 2
4 Comments
 
LVL 29

Accepted Solution

by:
Subodh Tiwari (Neeraj) earned 500 total points
ID: 41873421
Please find the attached with the code on Module1 and a button on Sheet2.
You may click the button on Sheet2 to get the Names from Sheet1 and their count on Sheet2 in alphabetical order.

If sheet names are different from Sheet1 and Sheet2, change them in the code. The code assumes that the Sheet1 is the sheet with raw data and Sheet2 is the output sheet.
NamesAndTheirCount.xlsm
0
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 41874781
For a non-code solution, I'd use a PivotTable:
1) Copy and paste your responses into a single column.  Make sure that data has a column header, such as "Name"
2) Create a PivotTable based on that, with Name as a Row field, and Count of Name as a Value field
3) Sort the PivotTable on the Name column
1
 

Author Comment

by:alexkim
ID: 41876367
Thank you Subodh, this is the exact solution I was looking for - you have just made my day!!
0
 
LVL 29

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41876593
You're welcome Alex! Glad to help.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Office Picture Manager is not included in Office 2013. This comes as a shock to users upgrading from earlier versions of Office, such as 2007 and 2010, where Picture Manager was included as a standard application. This article explains how…
Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now