Data from two sheets to a third, then compare and add together if same

dzig_33

New Member
Joined
Jan 19, 2018
Messages
2
I have two sheets (named sheet1 and sheet2), column B is labelled $ and Column K is labelled Buyer. I would like to take the buyer names from column K of both sheets to sheet3 column A and the $ amounts from column B of both sheets to column B of sheet3, then if the names in column A are an exact match, add the $ amounts together, ending up with each name only listed once on sheet 3 column A and their total $ amount from sheet1 and sheet2 on the corresponding line in column B.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Hello and welcome to MrExcel

Here's how to do this using native Excel functionality and formulas:

Copy the names from column K in sheet 1 into cell A2 on sheet 3.
Copy the names from column K in sheet 2 to the next unused cell in column A on sheet 3.
While on sheet 3, select cell A2, select menu option Data > Remove Duplicates > (tick header if you have a header value in cell A1) > tick Column A > Ok.

With this reduced list enter the following formula into cell B2:
=SUMIF(Sheet1!K:K,A2,Sheet1!B:B)+SUMIF(Sheet2!K:K,A2,Sheet2!B:B)
and copy down.

I trust this helps.
Andrew
 
Upvote 0
Finally had some time to get back to this. I have it working as Andrew Fergus suggested. Many thanks. Now wondering if there is a way to make this more dynamic, meaning if I delete a name in column K in either of the first two sheets, it will update sheet 3. Might be getting in to more than I want to, but I thought I would throw this question out there.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
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