Count different types of cell entries linked to unique ID

Tupelo1984

New Member
Joined
Jan 26, 2021
Messages
22
Office Version
  1. 365
Platform
  1. Windows
Dear,

I wish to count the different amount of type of groups that I have linked to my unique ID.
Example: ID 123 (first column) has 4 rows with a group type (second column). In these 4 rows linked to that unique ID we have 3 different types of groups: Group A, Group B, Group C.
In the 3rd column I wish to see that count displayed in all rows of that unique ID so I can pivot the data. In this example Unique ID 123 has 3 group types. Hope someone can help! Thanks
Unique IDGroupdesired result Group Types countGroup valuedesired result group value types count
123Group A3 Group typesBells3 group values types
123Group A3 Group typesHorns3 group values types
123Group B3 Group typesStrings3 group values types
123Group C3 Group typesStrings3 group values types
456Group A1 Group typesBells2 group values types
456Group A1 Group typesBells2 group values types
456Group A1 Group typesHorns2 group values types
789Group A2 Group typesHorns3 group values types
789Group B2 Group typesStrings3 group values types
789Group B2 Group typesCymbals3 group values types
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,239
Messages
6,123,818
Members
449,127
Latest member
Cyko

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