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?
[TABLE="width: 500"]
<tbody>[TR]
[TD]Customer code[/TD]
[TD]Product code[/TD]
[TD]Brand[/TD]
[TD]Product[/TD]
[/TR]
[TR]
[TD]111[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 92"]10010040[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 86"]
<tbody>[TR]
[TD="class: xl65, width: 86"]Luna[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 345"]
<tbody>[TR]
[TD="class: xl65, width: 345"]Luna Green Peas[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 86"]
<tbody>[TR]
[TD="class: xl65, width: 86"]111[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 92"]10010050[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 86"]
<tbody>[TR]
[TD="class: xl65, width: 86"]Luna[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 345"]
<tbody>[TR]
[TD="class: xl65, width: 345"]Luna Chick Peas[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 86"]
<tbody>[TR]
[TD="class: xl65, width: 86"]112[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 92"]10011049[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 86"]
<tbody>[TR]
[TD="class: xl65, width: 86"]ABC[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 345"]
<tbody>[TR]
[TD="class: xl65, width: 345"]Dairyland Danish Cheddar Block Coloured[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 86"]
<tbody>[TR]
[TD="class: xl65, width: 86"]112[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 92"]10011051[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]ABC[/TD]
[TD][TABLE="width: 345"]
<tbody>[TR]
[TD="class: xl65, width: 345"]Dairyland Danish Cheddar Block White[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 86"]
<tbody>[TR]
[TD="class: xl65, width: 86"]112[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 92"]10036240[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]XXX[/TD]
[TD][TABLE="width: 345"]
<tbody>[TR]
[TD="class: xl65, width: 345"]Sunbulah Lamb Kebabs[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 86"]
<tbody>[TR]
[TD="class: xl65, width: 86"]112[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 92"]10010050[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Luna[/TD]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="width: 345"]
<tbody>[TR]
[TD="class: xl65, width: 345"]Luna Chick Peas 400 Gm[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
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?
[TABLE="width: 500"]
<tbody>[TR]
[TD]Customer code[/TD]
[TD]Product code[/TD]
[TD]Brand[/TD]
[TD]Product[/TD]
[/TR]
[TR]
[TD]111[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 92"]10010040[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 86"]
<tbody>[TR]
[TD="class: xl65, width: 86"]Luna[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 345"]
<tbody>[TR]
[TD="class: xl65, width: 345"]Luna Green Peas[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 86"]
<tbody>[TR]
[TD="class: xl65, width: 86"]111[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 92"]10010050[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 86"]
<tbody>[TR]
[TD="class: xl65, width: 86"]Luna[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 345"]
<tbody>[TR]
[TD="class: xl65, width: 345"]Luna Chick Peas[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 86"]
<tbody>[TR]
[TD="class: xl65, width: 86"]112[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 92"]10011049[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 86"]
<tbody>[TR]
[TD="class: xl65, width: 86"]ABC[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 345"]
<tbody>[TR]
[TD="class: xl65, width: 345"]Dairyland Danish Cheddar Block Coloured[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 86"]
<tbody>[TR]
[TD="class: xl65, width: 86"]112[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 92"]10011051[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]ABC[/TD]
[TD][TABLE="width: 345"]
<tbody>[TR]
[TD="class: xl65, width: 345"]Dairyland Danish Cheddar Block White[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 86"]
<tbody>[TR]
[TD="class: xl65, width: 86"]112[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 92"]10036240[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]XXX[/TD]
[TD][TABLE="width: 345"]
<tbody>[TR]
[TD="class: xl65, width: 345"]Sunbulah Lamb Kebabs[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][TABLE="width: 86"]
<tbody>[TR]
[TD="class: xl65, width: 86"]112[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 92"]
<tbody>[TR]
[TD="class: xl65, width: 92"]10010050[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Luna[/TD]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="width: 345"]
<tbody>[TR]
[TD="class: xl65, width: 345"]Luna Chick Peas 400 Gm[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]