Count frequency based on person

RobbieL

Board Regular
Joined
Oct 4, 2007
Messages
109
I've been googling this all morning but with no joy so thought it made sense to ask the learned minds on here!

I have a table of data which contains:

the unique customer ref in column A (replicated across rows if there is more than one transaction),
the individual transaction ref in column B.

I need to know how many individual transactions have taken place for each individual. I'm sure there's a simple way to do this using frequency and an array formula but evidently I haven't had enough coffee yet!

Grateful if someone could point me in the right direction.

Many thanks
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

etaf

Well-known Member
Joined
Oct 24, 2012
Messages
7,002
Office Version
  1. 365
Platform
  1. MacOS
would there be the same "individual transaction ref" in more than one row - OR does each row represent a unique transaction
if so then a CountIF() should work and just count the "
unique customer ref"
 
Upvote 0

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,426
Office Version
  1. 2019
Sounds fairly simple.
Can you provide a diagram, or dummy spreadsheet as I cant quite visualize the data.
 
Upvote 0

RobbieL

Board Regular
Joined
Oct 4, 2007
Messages
109
would there be the same "individual transaction ref" in more than one row - OR does each row represent a unique transaction
if so then a CountIF() should work and just count the "
unique customer ref"

No, each row represents a different unique transaction ref but the customer ref will stay the same (as it's a new transaction for the same person). So I want it to display:

Column A Column B Count Unique Transactions
1234 9876 2
1234 8765
0001 4563 3
0001 9745
0001 3122
 
Upvote 0

cyrilbrd

Well-known Member
Joined
Feb 2, 2012
Messages
4,095
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Hi,
Try in c2 =IF(A2=A1,"",COUNTIF($A$2:$A$100,A2))
Adjust range to fit your model.
 
Upvote 0

cyrilbrd

Well-known Member
Joined
Feb 2, 2012
Messages
4,095
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Thanks but unfortunately I cannot get that to work either.

Does this help display my issues:

What version of excel are you using?
What does not work exactly?
Based on model posted in thread #1 what fails?
 
Upvote 0

cyrilbrd

Well-known Member
Joined
Feb 2, 2012
Messages
4,095
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
And while waiting for more info, have you tried to extract your summary with a pivot table? Based on your first data you are looking solely at ColumnA, a pivot could count the occurrences of customer reference and return an exact count...
 
Upvote 0

Forum statistics

Threads
1,191,026
Messages
5,984,209
Members
439,878
Latest member
melodysc

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
Top