RockandGrohl
Well-known Member
- Joined
- Aug 1, 2018
- Messages
- 810
- Office Version
- 365
- Platform
- Windows
Hello all, bit of a problem here. Column P contains a list of 190,000 references and I would like to count how many times each name appears in the list, so I can sum up the final tally.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]P[/TD]
[TD]W[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Name[/TD]
[TD]Result[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Adam[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Dave[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Craig[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Mike[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Pete[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Adam[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Pete[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Pete[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]Adam[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The trouble is if I use a simple countif, when summing it would give Adam 9 instead of the correct 3.
My issue is that down my list of 190,000 rows, people pop in and out where they've made brochure requests over the years. So you can have the same unique reference appearing again after many thousand rows.
Now I know what you're thinking, I could just count the list and then tally that off into years and figure out how many brochure requests people make, but randomly at some point in time a year ago the database changed the way it recorded brochure requests, and long story short, it will require a formula.
What I'm trying to achieve is a unique count of every time a unique reference appears in P, so I can sum up the total amount of unique's per year and then work out the average per reference per year.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]P[/TD]
[TD]W[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Name[/TD]
[TD]Result[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Adam[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Dave[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Craig[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Mike[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Pete[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Adam[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Pete[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Pete[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]Adam[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The trouble is if I use a simple countif, when summing it would give Adam 9 instead of the correct 3.
My issue is that down my list of 190,000 rows, people pop in and out where they've made brochure requests over the years. So you can have the same unique reference appearing again after many thousand rows.
Now I know what you're thinking, I could just count the list and then tally that off into years and figure out how many brochure requests people make, but randomly at some point in time a year ago the database changed the way it recorded brochure requests, and long story short, it will require a formula.
What I'm trying to achieve is a unique count of every time a unique reference appears in P, so I can sum up the total amount of unique's per year and then work out the average per reference per year.