Consolidate a packing list with Formulas or Macros possible?

HAK88

New Member
Joined
Aug 31, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I would like to know if it is possible to consolidate a packing list by comparing the Purchase Orders and Item Codes.
If the Purchase Orders match each other AND the Item Codes are the same, then add the Lengths together, removing the unnecessary lines.
I am not sure how to get the Batches to combine as well.
I suspect what I want to do might not be possible unless done manually.
Example of the Packing list AND what I would like to achieve below.
Any Formulas, Macros or ideas are welcome.
Example:


Before
Item CodeDescriptionBatchesLengthsUnitPurchase Order
50102​
Green1 x 100
100​
M11a
50102​
Green1 x 100
100​
M11a
50102​
Green1 x 100
100​
M11a
50102​
Green1 x 100
100​
M12b
50102​
Green1 x 100
100​
M12b
60105​
Blue1 x 100
100​
M11a
After
Item CodeDescriptionBatchesLengthsUnitPurchase Order
50102​
Green3 x 100
300​
M11a
50102​
Green2 x 100
200​
M12b
60105​
Blue1 x 100
100​
M11a
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Not sure where the Edit button is located.
The Items code also contains Letters, Example : RAP-50102
 
Upvote 0

Forum statistics

Threads
1,215,446
Messages
6,124,896
Members
449,194
Latest member
JayEggleton

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