Identify and count reoccurring numbers in cells

markdoughty

Board Regular
Joined
Nov 4, 2010
Messages
226
Urrmmmmhh...here goes

I have a product file spreadsheet.Which contains details of all products held in stock. We have multiple sites so MY product file is a collation of all sites. Therefore a product may appear multiple times as it may be stored at more than one site. New products can be added at anytime without my knowledge.

Column A is the product code, Column B is the product description. Column C is the qty sold.

I need to:-

  • look at column A and establish every occurrence of a product code, including newly added products.
  • to summarize the number of occurrences of the codes.
  • copy the description from column B
  • Summarise the qty sold from column C
  • And display an overall summary of A, B, C.

The aim being to identify the top selling products for the group.

I have been using the code below for " NON CHANGEABLE " data, and, can probably modify this for the second part of the calculation.

But have no idea where to start in regard to finding occurrences of over 4500 numbers to which new numbers can be added at any time.

=SUMIFS('Exported Data'!S:S,'Exported Data'!E:E,"Timberworld NORTH EAST",'Exported Data'!I:I,"clearance")

Any ideas would be a great help.

Thank you
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi,

The following is sample data and example results based on that data.....

Excel Workbook
ABCDEFGHI
1Product CodeDescriptionQty SoldNo of OccProduct CodeDescriptionTotal Qty Sold
2ID12345Red Paint102ID12345Red Paint110
3ID12346Blue Paint203ID12346Blue Paint300
4ID12347Green Paint301ID12347Green Paint30
5ID12348Orange Paint402ID12348Orange Paint180
6ID12349Yellow Paint502ID12349Yellow Paint200
7ID12350Pink Paint603ID12350Pink Paint340
8ID12351Black Paint702ID12351Black Paint200
9ID12352White Paint802ID12352White Paint260
10ID12353Brown Paint901ID12353Brown Paint90
11ID12345Red Paint100
12ID12346Blue Paint110PIVOT TABLE
13ID12350Pink Paint120Values
14ID12351Black Paint130Product CodeDescriptionCount of Qty SoldSum of Qty Sold2
15ID12348Orange Paint140ID12345Red Paint2110
16ID12349Yellow Paint150ID12346Blue Paint3300
17ID12350Pink Paint160ID12347Green Paint130
18ID12346Blue Paint170ID12348Orange Paint2180
19ID12352White Paint180ID12349Yellow Paint2200
20ID12350Pink Paint3340
21ID12351Black Paint2200
22ID12352White Paint2260
23ID12353Brown Paint190
24Grand Total181710
25
Sheet7


The formula in F2 needs entering with ctrl shift enter NOT just enter, it can then be copied down.
All other formulas need to be copied down.
You will obviously need to change the cell references to suit your layout.

You can also get the same results by using a Pivot Table!

I hope this helps.

Ak
 
Upvote 0

Forum statistics

Threads
1,203,069
Messages
6,053,352
Members
444,655
Latest member
didr

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