count non repeated items with 2 criteria

Status
Not open for further replies.

jibu08

New Member
Joined
Jun 27, 2018
Messages
13
hello everyone, URGENT HELP
need your help in finding a formula..
i have a very large database where i have more than 1000 product and 500 customer .. i need to know what products are listed/sold by each customer .. i have used count-if and count-ifs but it is giving me repeated product ... for eg: luna has 20 product so i need to know 111 customer is selling how many luna product?
Customer codeProduct codeBrandProduct
111
10010040

<tbody>
</tbody>

Luna

<tbody>
</tbody>

Luna Green Peas

<tbody>
</tbody>

111

<tbody>
</tbody>

10010050

<tbody>
</tbody>

Luna

<tbody>
</tbody>

Luna Chick Peas

<tbody>
</tbody>

112

<tbody>
</tbody>

10011049

<tbody>
</tbody>

ABC

<tbody>
</tbody>

Dairyland Danish Cheddar Block Coloured

<tbody>
</tbody>

112

<tbody>
</tbody>

10011051

<tbody>
</tbody>

ABC
Dairyland Danish Cheddar Block White

<tbody>
</tbody>

112

<tbody>
</tbody>

10036240

<tbody>
</tbody>

XXX
Sunbulah Lamb Kebabs

<tbody>
</tbody>

112

<tbody>
</tbody>

10010050

<tbody>
</tbody>

Luna
Luna Chick Peas 400 Gm

<tbody>
</tbody>


<tbody>
</tbody>


<tbody>
</tbody>
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
custcodeprodcode
1a
2d
3f
4m
5p
1bCount of prodcodeprodcode
2ecustcodeabcdefghjkmnopqGrand Total
3g1222 6
4n2 336
5q3 111126
1c4 2226
2d5 336
3hGrand Total22233111122223330
4o
5p
1a
2e
3j
4ma pivot table will list each unique prodcode for each custcode
5q
1b
2d
3k
4n
5p
1c
2e
3k
4o
5q

<colgroup><col span="2"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col span="2"><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,215,054
Messages
6,122,897
Members
449,097
Latest member
dbomb1414

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