Help moving values based on cell values from one sheet to another

RGPRICE

New Member
Joined
Mar 15, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi there,

I’m trying to figure out the macro needed to move and compile information from one sheet to another based on vendor names. The first sheet has shipment listings, name of supplier, contents, etc. and is constantly being added to. I’m trying to make a macro that will take that information and compile it in another sheet with each vendor only taking up one row.

So if it were like

Vendor|Product Amount|Defect Amount|Etc
VendorA|300|12|
VendorB|17|0|
VendorA|200|0|

The second sheet would read

VendorA|500|12|
VendorB|17|0|


I don’t know if I explained it well but that’s what I’m trying to do
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Select your data with headers -> Insert -> Pivot Table -> Select a location -> Drag Vendor into the Rows then Product Amount and Defect Amount into Values

Book1
ABCDEFGH
1VendorProduct AmountDefect AmountRow LabelsSum of Product AmountSum of Defect Amount
2Vendor A30012Vendor A50012
3Vendor B170Vendor B170
4Vendor A2000Grand Total51712
Sheet1
 
Upvote 0
Select your data with headers -> Insert -> Pivot Table -> Select a location -> Drag Vendor into the Rows then Product Amount and Defect Amount into Values

Book1
ABCDEFGH
1VendorProduct AmountDefect AmountRow LabelsSum of Product AmountSum of Defect Amount
2Vendor A30012Vendor A50012
3Vendor B170Vendor B170
4Vendor A2000Grand Total51712
Sheet1
This looks perfect, thank you
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,239
Members
452,621
Latest member
Laura_PinksBTHFT

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