Frequency of Pairs Formula

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,844
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

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Could you provide a small data sample (~10 rows) along with expected results?

M.
 
Upvote 0
411023314
88001610
411023314
88001610
411023314
88001610
411023314
88001610
411023314
88001610
411023314
88001610
411023314
88001610
411023314
88001610
411023314
88001610
411023314
88001610
411023314
88001610
411023314
88001610
411023314
88001610
411023314
88001610
411023314
88300110
411023314
88500100
411039133
88001610
411039133
88001610
411039133
88001610

<tbody>
</tbody>

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,214,967
Messages
6,122,503
Members
449,090
Latest member
RandomExceller01

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