Number of Occurences Totaled in separate column

tm1422

New Member
Joined
Dec 26, 2016
Messages
4
Hello, in the below table i'd like to add a column summing the occurences of same week # for each store.

for example - Store 115 - 1 for 49, 50, 51, 52
store 160 - 1 for 50, 51, 52
store 161 - 2 for 49, 2 for 50

Week #Store #
49Store ##00115
50Store ##00115
51Store ##00115
52Store ##00115
50Store ##00160
51Store ##00160
52Store ##00160
49Store ##00161
49Store ##00161
50Store ##00161
50Store ##00161

<colgroup><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi,

Just write all the unique values in column D and apply this formula in column E

=SUMIF(B:B,D2,A:A)

I'm online and able to respond in real time to you until it's solved.
 
Upvote 0
Set up a pivot table...

Store # to ROWS, Week # to COLUMNS, and Store # to VALUES where you replace Sum with Count.

Row\Col
A​
B​
C​
D​
E​
F​
3​
Count of Week #Column Labels
4​
Row Labels
49
50
51
52
Grand Total
5​
Store ##00115
1​
1​
1​
1​
4​
6​
Store ##00160
1​
1​
1​
3​
7​
Store ##00161
2​
2​
4​
8​
Grand Total
3
4
2
2
11
 
Upvote 0
I don't under the "unique values" in column D reference.

Just write all the unique values in column D and apply this formula in column E

=SUMIF(B:B,D2,A:A)

I'm online and able to respond in real time to you until it's solved.
 
Upvote 0
Write all the unique store numbers in D2,D3,D4 and so on, so if you have 3 unique stores write Store ##00115 in D2, Store ##00160 in D3 and so on...
I don't under the "unique values" in column D reference.
 
Upvote 0

Forum statistics

Threads
1,214,962
Messages
6,122,482
Members
449,088
Latest member
Melvetica

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