Sum from two different data sheets

questforexcel

Board Regular
Joined
Jan 18, 2019
Messages
128
Office Version
  1. 2013
Platform
  1. Windows
Hi,

I am hoping this should be an easy and simple one.

I tried using SUMIF and SUMIFS, i likely got something wrong there, it didnt work for me.

I have two sheets. First one has the summary of total counts by specific codes. This is the original data sheet.

The second sheet is the updates list to this original sheet. It has names of people and their counts that need to be updated in these codes.

The unique reference on each sheet is the code column.

I would like a formula to sum the count in the original sheet, with data on the updated sheet for old code and count, and also the new code and count. To give me a summary by each of the below mentioned codes.

Thank you,

List of Codes

AA01
AA02
AA03
AA04
AA05
AA06

Original Data Sheet

CodeCount
AA01
3​
AA02
4​
AA03
2​
AA04
4​
AA05
6​
AA06
7​
Total
26​

Updated Data

NameOld CodeCountNew CodeCount
MichaelAA04
-1​
AA05
1​
JimAA05
-1​
AA04
1​
PamAA05
-1​
AA06
1​
DwightAA06
-1​
AA05
1​
CreedAA05
-1​
AA06
1​
-5​
5​
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Unfortunately I can't know where your data is and where you want the result.

🧙‍♂️
But assuming that your data is like this in the "original" sheet and the results go in column C

Dante Amor
ABC
1CodeCountOriginal + update
2AA0133
3AA0244
4AA0322
5AA0444
6AA0565
7AA0678
original
Cell Formulas
RangeFormula
C2:C7C2=SUMIF(A:A,A2,B:B)+SUMIF(update!B:B,A2,update!C:C)+SUMIF(update!D:D,A2,update!E:E)

And also assuming that the data is like this in the update sheet:
Dante Amor
ABCDE
1NameOld CodeCountNew CodeCount
2MichaelAA04-1AA051
3JimAA05-1AA041
4PamAA05-1AA061
5DwightAA06-1AA051
6CreedAA05-1AA061
update


I await your comments.
 
Upvote 1
Solution
Thank you, yes this exactly how it was, on two different sheets and this is what I was looking
Unfortunately I can't know where your data is and where you want the result.

🧙‍♂️
But assuming that your data is like this in the "original" sheet and the results go in column C

Dante Amor
ABC
1CodeCountOriginal + update
2AA0133
3AA0244
4AA0322
5AA0444
6AA0565
7AA0678
original
Cell Formulas
RangeFormula
C2:C7C2=SUMIF(A:A,A2,B:B)+SUMIF(update!B:B,A2,update!C:C)+SUMIF(update!D:D,A2,update!E:E)

And also assuming that the data is like this in the update sheet:
Dante Amor
ABCDE
1NameOld CodeCountNew CodeCount
2MichaelAA04-1AA051
3JimAA05-1AA041
4PamAA05-1AA061
5DwightAA06-1AA051
6CreedAA05-1AA061
update


I await your comments.

Thank you, this is exactly how my sheets were and this is exactly what I was looking to achieve. Appreciate your swift response and effort in helping me solve this.

Have a great day!
 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,189
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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