Copy/Paste to Add Sum of Cells Across Separate Workbooks

Ambiversion

New Member
Joined
Jul 13, 2016
Messages
6
I have a master worksheet which is generated automatically at the end of the week by our system, which logs tips and mileage collected by each employee. We have deliveries which take place outside of our system which also need to be recorded, but cannot be logged by the system, so they need to be input manually. I've created a separate form which copies the master worksheet in format, and I'm looking for a way to copy the data in the tips and mileage columns of Worksheet 1 and then upon pasting them onto the same data in Worksheet 2A, which would add both the source cells and target cells, resulting in the data found in Worksheet 2B. Is this possible?

Worksheet 1
[TABLE="width: 500"]
<tbody>[TR]
[TD]Employee Name[/TD]
[TD]Tips[/TD]
[TD]Mileage[/TD]
[/TR]
[TR]
[TD]Employee A
[/TD]
[TD]$50[/TD]
[TD]$20[/TD]
[/TR]
[TR]
[TD]Employee B[/TD]
[TD]$100[/TD]
[TD]$20[/TD]
[/TR]
</tbody>[/TABLE]

Worksheet 2A
[TABLE="width: 500"]
<tbody>[TR]
[TD]Employee Name[/TD]
[TD]Tips[/TD]
[TD]Mileage[/TD]
[/TR]
[TR]
[TD]Employee A
[/TD]
[TD]$100[/TD]
[TD]$40[/TD]
[/TR]
[TR]
[TD]Employee B[/TD]
[TD]$200[/TD]
[TD]$40
[/TD]
[/TR]
</tbody>[/TABLE]

Worksheet 2B
[TABLE="width: 500"]
<tbody>[TR]
[TD]Employee Name[/TD]
[TD]Tips[/TD]
[TD]Mileage[/TD]
[/TR]
[TR]
[TD]Employee A
[/TD]
[TD]$150[/TD]
[TD]$60[/TD]
[/TR]
[TR]
[TD]Employee B[/TD]
[TD]$300[/TD]
[TD]$60[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Yes, copy paste sheet1 to sheet2b. Now copy sheet2a and (right click the mouse) > pastespecial >choose operations >add > click ok. IT Adds both values
ravishankar
 
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