Trying to create cell from duplicate values.

gazenium

New Member
Joined
Feb 22, 2018
Messages
3
Hi all

First time posting and hope we have an Excel guru.

I am trying to use a running list of names (below is dummy data), and then count the times the name appears:

Source
Name
John
Sally
John
Dave
Dave
John
Sally
Mick

Resulting in something like below in a new Spreadsheet page

Result
Name | Total
John | 3
Dave | 2
Sally | 2
Mick | 1

However it will be a running list, ie I will not know the names from the outset and as I add Gary to the Source tab would want it to create in the Result tab.

Is this possible, I have been trying variants of countif.

Would love some help as its getting pretty urgent at work that I get this done?

Thank you in advance


Garry
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Re: Formula help! Trying to create cell from duplicate values.

Use a pivot table - it will update as you add new names to the list.
 
Upvote 0
Re: Formula help! Trying to create cell from duplicate values.

Name
John
Sally
John
Dave
Dave
John
SallyCount of Name
MickNameTotalA PIVOT TABLE LOOKING AT A2 TO A100
Dave2
John3SEE NEXT POST
Mick1
Sally2
Grand Total8

<colgroup><col span="3"><col><col><col span="8"></colgroup><tbody>
</tbody>
 
Upvote 0
Re: Formula help! Trying to create cell from duplicate values.

Name
John
Sally
John
Dave
Dave
John
SallyCount of Name
MickNameTotalA PIVOT TABLE LOOKING AT A2 TO A100
RogerDave2
FredJohn3
EdMick1
IanSally2
SidRoger4
BarryFred4
RobnertEd4
RogerIan4
FredSid4
EdBarry4
IanRobnert4
SidGrand Total36
Barry
Robnert
Roger
Fred
Ed
Ian
Sid
Barry
Robnert
Roger
Fred
Ed
Ian
Sid
Barry
Robnert

<colgroup><col span="3"><col><col><col span="7"></colgroup><tbody>
</tbody>
 
Upvote 0
Re: Formula help! Trying to create cell from duplicate values.

That looks spot on but I am struggling to replicate. Do you have any links or guidance how to set up in Excel?
 
Upvote 0
Re: Formula help! Trying to create cell from duplicate values.

put "name" in A1
put a few names in A2 to A10
highlight A1 to A100
data, pivot table
confirm data is in excel
confirm data is highlighted
click on data layout
drag name (from options you see) in left (not top left) box
drag name into central box
ok
locate in same sheet (and highlight G10 to fix position0

note when you add more names you need to refresh the pivot table
 
Upvote 0
Re: Formula help! Trying to create cell from duplicate values.

Darn I hate that I am not better at this!

I get the amalgamated names but no Number beside:

Name
John
Sally
John
Dave
Mick

Grand total
 
Upvote 0
Re: Formula help! Trying to create cell from duplicate values.

to the right of your list of unique names in the pivot table make sure it says "count of names"
 
Upvote 0

Forum statistics

Threads
1,214,957
Messages
6,122,472
Members
449,087
Latest member
RExcelSearch

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top