Merging and summing values with common column

basak.dibojyoti

New Member
Joined
Mar 3, 2011
Messages
2
Hi All Geniuses there,

I have a specific requirement where I need to sum values based on a common column. Say for ex-

Sheet1 has the following info:
Account Values
A3 30
A4 40
A1 50
A2 80

Sheet2 has the following Info:

Account Values
A2 20
A3 70
A1 50
Requirement is like to add up the values with respect to the common field and also merging the two sheets:

Result:

Account Values
A1 100
A2 100
A3 100
A4 40

I am new to excel, so was not too sure how to get this done, can someone please help.

Thanks in advance.
Dibo.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
On your summary sheet creat a unique list of all the accout numbers from both sheets 1 and 2. Lets sy the list is in the range a1:a10. Lets also say that the data on sheets 1 & 2 are in the range a1:B10.

In b1 on the summary sheet type this formula.

=sumif(sheet1!a1:a10,A1,Sheet1!b1:b10)+sumif(sheet2!a1:a10,A1,Sheet2!b1:b10)


You can anchor the ranges with $ as required.


In
 
Upvote 0

Forum statistics

Threads
1,224,559
Messages
6,179,513
Members
452,921
Latest member
BBQKING

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