Autofill with the SUM of data when the same value is met in a separate column

Pettor

Board Regular
Joined
Aug 8, 2015
Messages
175
Hello guys,

I have a new project where I would like excel to autofill in the third column the sum of the second column when the value in the first column is the same.
i.e. When the value is A, the third column to get the sum of all the previous values of column B.

The different values in column A are thousands.

Is it possible? Is it possible also MS Access to do the same?

Many thanks


ValuesValuesAuto Fill
A
1​
1​
A
0​
1​
B
1​
1​
B
0​
1​
A
0​
1​
A
1​
2​
C
1​
1​
C
0​
1​
A
1​
3​
B
0​
1​
B
0​
1​
C
1​
2​
C
1​
3​
C
0​
3​
 
Yes, using Sumifs()
Book1
ABCD
1First NameSecond NameValueAuto Fill
2AdamSmith11
3AdamJones11
4AdamJones01
5BarbaraEden00
6AdamSmith12
7AdamSmith13
8BarbaraEden11
9BarbaraEvans11
10CharlieFarley00
11CharlieSmith00
12CharlieFarley11
13BarbaraEvans12
14DeeVee11
15DeeVee01
16BarbaraEden12
17AdamJones12
18DeeVee12
19DeeSmith00
20AdamSmith14
21AdamJones13
Sheet1
Cell Formulas
RangeFormula
D2:D21D2=SUMIFS($C$2:C2,$A$2:A2,A2,$B$2:B2,B2)
 
Upvote 0
Solution

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,215,425
Messages
6,124,824
Members
449,190
Latest member
rscraig11

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