help with a countif

Jinjunwei

New Member
Joined
Jun 12, 2005
Messages
49
hi,

I have a sheet that looks like this:

Col A Col B
ID # Provider
292890322 JBs
292890322 Smiths
292890326 JBs
292890326 Wilbright
292890326 Mixie
292890326 Equity Part
292890343 JBs
292890343 Equity Part
292890342 JBs
292890342 Smiths




Col A represents produts, and Col B represent's clients (customers). So, Product 292890322 was sold to both JBs and Smiths. Product 292890326 was sold to Smiths and Wilbright and so on.

I wanted to figure out which customers are competing with JBs. So above, JB bought 4 products. 50% of the time (or twice), JBs was competing with Smiths. 25% of the time, JBs was competing with Equity Part, and 25% of the time Wilbright.

I think I want a countif, but I am all confused. It has been a long day. thank you so much for any help.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
I was trying to use a pivit table to do this... but I couldn't figure out how to to get the same fields in both a column and row (ie, see where the counts overlap which is what I want to see... product x purchased by customer 1 and 2)
 
Upvote 0

Forum statistics

Threads
1,224,618
Messages
6,179,916
Members
452,949
Latest member
beartooth91

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