Excel Questions

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?
[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]
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
i tired but it's not giving me accurate answer.. i need non repeated products according to its brand sold by each customer
 
Upvote 0
i tired but it's not giving me accurate answer.. i need non repeated products according to its brand sold by each customer

Are you sure?


Book1
ABCDFGHIJ
1Customer codeProduct codeBrandProductCount of Product codeColumn Labels
211110010040LunaLuna Green PeasRow LabelsABCLunaXXXGrand Total
311110010050LunaLuna Chick Peas11122
411210011049ABCDairyland Danish Cheddar Block Coloured1122114
511210011051ABCDairyland Danish Cheddar Block WhiteGrand Total2316
611210036240XXXSunbulah Lamb Kebabs
711210010050LunaLuna Chick Peas 400 Gm
Sheet1
 
Upvote 0
pivot table dont help as i need to know how many products is sold by each customer and also i dont want the products to be repeated... any idea???????????????? i will send you all my database through email ... jibu.7350@gmail.com
 
Upvote 0
Your sample is misleading because there are repeats do not occur.

Are you wanting a unique count of products per customer and per brand?
 
Upvote 0
yes.. i need LIKE THIS but i have very large database
customer code Luna ABC XXX
Are you sure?
111 2 - -
112 - 2 2


ABCDFGHIJ
Customer codeProduct codeBrandProductCount of Product codeColumn Labels
LunaLuna Green PeasRow LabelsABCLunaXXXGrand Total
LunaLuna Chick Peas111
ABCDairyland Danish Cheddar Block Coloured112
ABCDairyland Danish Cheddar Block WhiteGrand Total
XXXSunbulah Lamb Kebabs
LunaLuna Chick Peas 400 Gm

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]2[/TD]
[TD="align: right"]111[/TD]
[TD="align: right"]10010040[/TD]

[TD="align: center"]3[/TD]
[TD="align: right"]111[/TD]
[TD="align: right"]10010050[/TD]

[TD="align: right"][/TD]
[TD="align: right"]2[/TD]
[TD="align: right"][/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]4[/TD]
[TD="align: right"]112[/TD]
[TD="align: right"]10011049[/TD]

[TD="align: right"]2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]4[/TD]

[TD="align: center"]5[/TD]
[TD="align: right"]112[/TD]
[TD="align: right"]10011051[/TD]

[TD="align: right"]2[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]6[/TD]

[TD="align: center"]6[/TD]
[TD="align: right"]112[/TD]
[TD="align: right"]10036240[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]7[/TD]
[TD="align: right"]112[/TD]
[TD="align: right"]10010050[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

</tbody>
Sheet1
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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