match column across sheets and summing values into last columns

leap out

Active Member
Joined
Dec 4, 2020
Messages
288
Office Version
  1. 2016
  2. 2010
Hi experts,



I would match data between acroos sheets based on matching columns B then should add & summing the values to sheet summary under headers BUYING and SELLING . should add the values to last columns (BUYING ,SELLING) ,because evrey month insert three columns BUYING,SELLING,NET. the most important BUYING,SELLING should match data across sheets based on columns B and put the values under headers (BUYING ,SELLING).

as in picture 1 , the values which showing in column H brings from the other file . it's openning balances , so it 's not relating of the others sheets .

SUM & ADD1.xlsm
ABCDEFGHIJKLMNOP
1CLASSIFICATIONCODEGOODSMARKMANFACTUREREFRS.NBUYINGSELLINGNETBUYINGSELLINGNETBUYINGSELLINGNET
2OIL-AS2OIL-10010W40 208LCASSURE1RS1200200200200
3OIL-10110W40 208LENIITRE1RS1300300300300
4OIL-1025W30 208LQ8EURE1RS1120120120120
5OIL-10310W40 208LQ8EURE1RS1100100100100
6S.AG72007200072000720
7OIL-AS2OIL-10410W40 12x1LQ8EURM1RC1123123123123
8OIL-10510W40 12x1LCASSURM1RC130303030
9OIL-10610W40 12x1LENIITRM1RC1120120120120
10OIL-10715W40 12x1LCASSURM1RC10000
11S.AG27302730027300273
12MS-OIL1OIL-1085W30 12x1LQ8EURRM1CV1200200200200
13OIL-10910W40 4x4LQ8EURRM1CV1300300300300
14OIL-11010W40 4x4LCASSURRM1CV1230230230230
15OIL-11110W40 4x4LENIITRRM1CV1123123123123
16OIL-1125W40 4x4LQ8EURRM1CV1456456456456
17OIL-1135W40 4x4LCASSURRM1CV1234234234234
18OIL-1145W40 4x4LENIITRRM1CV1230230230230
19OIL-11520W50 4x4LQ8EURRM1CV1123123123123
20OIL-11620W50 4x4LCASSURRM1CV1560560560560
21OIL-11720W50 4x4LENIITRRM1CV1120120120120
22OIL-1185W30 4x4LQ8EURRM1CV130303030
23S.AG260602606002606002606
summary
Cell Formulas
RangeFormula
H11:P11,H6:P6H6=SUM(H2:H5)
J12:J22,J7:J10,J2:J5J2=H2-I2
P12:P22,P7:P10,P2:P5,M12:M22,M7:M10,M2:M5M2=J2+K2-L2
H23:P23H23=SUM(H12:H22)

SUM & ADD1.xlsm
ABCDEFGHIJKLMNOP
1CLASSIFICATIONCODEGOODSMARKMANFACTUREREFRS.NBUYINGSELLINGNETBUYINGSELLINGNETBUYINGSELLINGNET
2OIL-AS2OIL-10010W40 208LCASSURE1RS1200200200200
3OIL-10110W40 208LENIITRE1RS1300300300300
4OIL-1025W30 208LQ8EURE1RS1120120120120
5OIL-10310W40 208LQ8EURE1RS1100100100100
6S.AG72007200072000720
7OIL-AS2OIL-10410W40 12x1LQ8EURM1RC1123123123123
8OIL-10510W40 12x1LCASSURM1RC130303030
9OIL-10610W40 12x1LENIITRM1RC1120120120120
10OIL-10715W40 12x1LCASSURM1RC10000
11S.AG27302730027300273
12MS-OIL1OIL-1085W30 12x1LQ8EURRM1CV1200200200200
13OIL-10910W40 4x4LQ8EURRM1CV1300300300300
14OIL-11010W40 4x4LCASSURRM1CV1230230230230
15OIL-11110W40 4x4LENIITRRM1CV1123123123123
16OIL-1125W40 4x4LQ8EURRM1CV1456456456456
17OIL-1135W40 4x4LCASSURRM1CV1234234234234
18OIL-1145W40 4x4LENIITRRM1CV1230230230230
19OIL-11520W50 4x4LQ8EURRM1CV1123123123123
20OIL-11620W50 4x4LCASSURRM1CV1560560560560
21OIL-11720W50 4x4LENIITRRM1CV1120120120120
22OIL-1185W30 4x4LQ8EURRM1CV130303030
23S.AG260602606002606002606
summary
Cell Formulas
RangeFormula
H11:P11,H6:P6H6=SUM(H2:H5)
J12:J22,J7:J10,J2:J5J2=H2-I2
P12:P22,P7:P10,P2:P5,M12:M22,M7:M10,M2:M5M2=J2+K2-L2
H23:P23H23=SUM(H12:H22)



SUM & ADD1.xlsm
ABCDEFG
1ITEMCODEGOODSREFRS.NBUYINGSELLING
21OIL-10410W40 12x1L Q8 EURM1RC110010
32OIL-10510W40 12x1L CAS SURM1RC16005
43OIL-10610W40 12x1L ENI ITRM1RC1125
54OIL-10010W40 208L CAS SURE1RS120040
65OIL-10715W40 12x1L CAS SURM1RC1131
76OIL-10110W40 208L ENI ITRE1RS140020
87OIL-1025W30 208L Q8 EURE1RS16020
98OIL-11520W50 4x4L Q8 EURRM1CV110
109OIL-11620W50 4x4L CAS SURRM1CV112
RES




SUM & ADD1.xlsm
ABCDEF
1ITEMCODEGOODSREFRS.NBUYING
21OIL-1085W30 12x1L Q8 EURRM1CV1100
32OIL-1145W40 4x4L ENI ITRRM1CV120
43OIL-11110W40 4x4L ENI ITRRM1CV1125
MONTH



SUM & ADD1.xlsm
ABCDEF
1ITEMCODEGOODSREFRS.NSELLING
22OIL-1145W40 4x4L ENI ITRRM1CV120
33OIL-11110W40 4x4L ENI ITRRM1CV1125
MM



RESULT
first time
SUM & ADD1.xlsm
ABCDEFGHIJKLMNOP
1CLASSIFICATIONCODEGOODSMARKMANFACTUREREFRS.NBUYINGSELLINGNETBUYINGSELLINGNETBUYINGSELLINGNET
2OIL-AS2OIL-10010W40 208LCASSURE1RS120020020040360360
3OIL-10110W40 208LENIITRE1RS130030040020680680
4OIL-1025W30 208LQ8EURE1RS11201206020160160
5OIL-10310W40 208LQ8EURE1RS1100100100100
6S.AG7200720660801300001300
7OIL-AS2OIL-10410W40 12x1LQ8EURM1RC112312310010213213
8OIL-10510W40 12x1LCASSURM1RC130306005625625
9OIL-10610W40 12x1LENIITRM1RC1120120125245245
10OIL-10715W40 12x1LCASSURM1RC100131131131
11S.AG2730273956151214001214
12MS-OIL1OIL-1085W30 12x1LQ8EURRM1CV1200200100300300
13OIL-10910W40 4x4LQ8EURRM1CV1300300300300
14OIL-11010W40 4x4LCASSURRM1CV1230230230230
15OIL-11110W40 4x4LENIITRRM1CV1123123125125123123
16OIL-1125W40 4x4LQ8EURRM1CV1456456456456
17OIL-1135W40 4x4LCASSURRM1CV1234234234234
18OIL-1145W40 4x4LENIITRRM1CV12302302020230230
19OIL-11520W50 4x4LQ8EURRM1CV112312310133133
20OIL-11620W50 4x4LCASSURRM1CV156056012548548
21OIL-11720W50 4x4LENIITRRM1CV1120120120120
22OIL-1185W30 4x4LQ8EURRM1CV130303030
23S.AG2606026062551572704002704
summary
Cell Formulas
RangeFormula
H11:P11,H6:P6H6=SUM(H2:H5)
J12:J22,J7:J10,J2:J5J2=H2-I2
P12:P22,P7:P10,P2:P5,M12:M22,M7:M10,M2:M5M2=J2+K2-L2
H23:P23H23=SUM(H12:H22)



second
SUM & ADD1.xlsm
ABCDEFGHIJKLMNOP
1CLASSIFICATIONCODEGOODSMARKMANFACTUREREFRS.NBUYINGSELLINGNETBUYINGSELLINGNETBUYINGSELLINGNET
2OIL-AS2OIL-10010W40 208LCASSURE1RS12002002004036020040520
3OIL-10110W40 208LENIITRE1RS130030040020680400201060
4OIL-1025W30 208LQ8EURE1RS112012060201606020200
5OIL-10310W40 208LQ8EURE1RS1100100100100
6S.AG7200720660801300660801880
7OIL-AS2OIL-10410W40 12x1LQ8EURM1RC11231231001021310010303
8OIL-10510W40 12x1LCASSURM1RC13030600562560051220
9OIL-10610W40 12x1LENIITRM1RC1120120125245125370
10OIL-10715W40 12x1LCASSURM1RC100131131131262
11S.AG2730273956151214956152155
12MS-OIL1OIL-1085W30 12x1LQ8EURRM1CV1200200100300100400
13OIL-10910W40 4x4LQ8EURRM1CV1300300300300
14OIL-11010W40 4x4LCASSURRM1CV1230230230230
15OIL-11110W40 4x4LENIITRRM1CV1123123125125123125125123
16OIL-1125W40 4x4LQ8EURRM1CV1456456456456
17OIL-1135W40 4x4LCASSURRM1CV1234234234234
18OIL-1145W40 4x4LENIITRRM1CV123023020202302020230
19OIL-11520W50 4x4LQ8EURRM1CV11231231013310143
20OIL-11620W50 4x4LCASSURRM1CV15605601254812536
21OIL-11720W50 4x4LENIITRRM1CV1120120120120
22OIL-1185W30 4x4LQ8EURRM1CV130303030
23S.AG26060260625515727042551572802
summary
Cell Formulas
RangeFormula
H11:P11,H6:P6H6=SUM(H2:H5)
J12:J22,J7:J10,J2:J5J2=H2-I2
P12:P22,P7:P10,P2:P5,M12:M22,M7:M10,M2:M5M2=J2+K2-L2
H23:P23H23=SUM(H12:H22)


and so on every time should add & sum to last columns SELLING & BUYING
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,224,603
Messages
6,179,850
Members
452,948
Latest member
UsmanAli786

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