Need Marco to Combine and Sub Total data

Gbadd

New Member
Joined
Sep 12, 2014
Messages
7
I am working with a large amount of data that needs to be combined by RA# and then sub totaled by material number.

RA #Store #MaterialCustomer MaterialOrder qtyUoMReturn PlantBox PlantProduction plant
60178173724738125ESS147466400861EA V796D796PCON
60178173724738125ESS147466400861EA V796D796PCON
60178173724738125ESS147466400861EA V796D796PCON
60178173724705846AQU147465584661EA V796D796PCON
60178173724705846AQU147465584661EA V796D796PCON
60171864724726342BIO175416215571EA V796D796PCON
60171864724726342BIO175416215571EA V796D796PCON
60171864724726342BIO175416215571EA V796D796PCON

<colgroup><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>

After the macro is run the result should match the table below.

StoreMaterialOrder qtyUoMRA #
724738125ESS3EA60178173
724705846AQU2EA60178173
724726342BIO3EA60171864

<colgroup><col><col><col><col span="2"></colgroup><tbody>
</tbody>
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Try the SUMPRODUCT function. It's basically a nested look-up based on multiple criteria.


Thank you for your response. I do not think SUMPRODUCT would work for me. We get raw data from the warehouse of all the materials a store returned us. We have over 900 different materials that can be returned to us and we are using a data collection scanner out in the warehouse to record what is coming in. Basically what happens is the customer has a RA # and when they receive it they can send the material(s) back to us to get credit. Once it arrives a warehouse man takes the RA paperwork off the pallet and enters the RA # and Store number into the scanner and then they scan the UPC code on the product. Some of these returns may have twenty different materials with fifteen or more of each material. At the end of the day the warehousemen dump the data into into an Excel file. Basically I end up with this large Excel file that has around 5 to 10 thousand lines on it and I need to quickly have Excel tell me the total of each material grouped by the RA number and store number.
 
Upvote 0

Forum statistics

Threads
1,220,986
Messages
6,157,224
Members
451,406
Latest member
Kevin_267

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