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

Book1
ABCDFGHIJ
1Customer codeProduct codeBrandProduct
211110010040LunaLuna Green PeasCusLunaABCXXX
311110010050LunaLuna Chick Peas111200
411210011049ABCDairyland Danish Cheddar Block Coloured112121
511210011051ABCDairyland Danish Cheddar Block White
611210011051ABCDairyland Danish Cheddar Block White
711210036240XXXSunbulah Lamb Kebabs
811110010040LunaLuna Green Peas
911210010050LunaLuna Chick Peas 400 Gm
Sheet1


In H3 control+shift+enter, not just enter, copy across, and down:

=SUM(IF(FREQUENCY(IF(1-($B$2:$B$9=""),IF($A$2:$A$9=$G3,IF($C$2:$C$9=H$2,MATCH($B$2:$B$9,$B$2:$B$9,0)))),ROW($A$2:$A$9)-ROW($A$2)+1),1))
 
Upvote 0

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,215,523
Messages
6,125,318
Members
449,218
Latest member
Excel Master

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