Frequency of Pairs Formula

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,860
Office Version
  1. 365
Platform
  1. Windows
Hi all,
I have cost centers in column A, and corresponding account codes in column B. I want to know how many different pairs are there, for each cost center and accounting codes.

So something like,
=IF(SUMPRODUCT(($A$1:A1000=A1)*($B$1:B1000)),…

Thanks
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Could you provide a small data sample (~10 rows) along with expected results?

M.
 
Upvote 0
[TABLE="width: 145"]
<tbody>[TR]
[TD]411023314
[/TD]
[TD]88001610
[/TD]
[/TR]
[TR]
[TD]411023314
[/TD]
[TD]88001610
[/TD]
[/TR]
[TR]
[TD]411023314
[/TD]
[TD]88001610
[/TD]
[/TR]
[TR]
[TD]411023314
[/TD]
[TD]88001610
[/TD]
[/TR]
[TR]
[TD]411023314
[/TD]
[TD]88001610
[/TD]
[/TR]
[TR]
[TD]411023314
[/TD]
[TD]88001610
[/TD]
[/TR]
[TR]
[TD]411023314
[/TD]
[TD]88001610
[/TD]
[/TR]
[TR]
[TD]411023314
[/TD]
[TD]88001610
[/TD]
[/TR]
[TR]
[TD]411023314
[/TD]
[TD]88001610
[/TD]
[/TR]
[TR]
[TD]411023314
[/TD]
[TD]88001610
[/TD]
[/TR]
[TR]
[TD]411023314
[/TD]
[TD]88001610
[/TD]
[/TR]
[TR]
[TD]411023314
[/TD]
[TD]88001610
[/TD]
[/TR]
[TR]
[TD]411023314
[/TD]
[TD]88001610
[/TD]
[/TR]
[TR]
[TD]411023314
[/TD]
[TD]88001610
[/TD]
[/TR]
[TR]
[TD]411023314
[/TD]
[TD]88300110
[/TD]
[/TR]
[TR]
[TD]411023314
[/TD]
[TD]88500100
[/TD]
[/TR]
[TR]
[TD]411039133
[/TD]
[TD]88001610
[/TD]
[/TR]
[TR]
[TD]411039133
[/TD]
[TD]88001610
[/TD]
[/TR]
[TR]
[TD]411039133
[/TD]
[TD]88001610
[/TD]
[/TR]
</tbody>[/TABLE]

So what I am looking for is, how many times each cost center with each accounting code. Each cost center may have many accounting codes and each accounting code may be with more than one cost center.
I would like to know the combinations.
Something like your earlier post.
=COUNTIFS(A1:A5,"Health",B1:B5,1)
 
Last edited:
Upvote 0
I will be 16
1
1
3

I used Marcelo's formula
=COUNTIFS(A1:A5,"Health",B1:B5,1),
and it is working,
I think that will suffice.

Thanks for reading, really appreciated, both of you have helped me in the past.
 
Upvote 0

Forum statistics

Threads
1,226,730
Messages
6,192,702
Members
453,748
Latest member
akhtarf3

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