Add sum of data based on 2 columns, and add the data to another worksheet.

jasonms

New Member
Joined
Feb 27, 2021
Messages
2
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
HI,

I have received a file from a customer, the file contains 17500 lines of products been shipped.
what I need to do is reduce this down.

how it should be filtered is by country code & then unique commodity code and all the totals added up to create one row.

Yes, I can do this via a filter but it takes so much time.

Is their a formula / VBA.

I can set up the document to filter the information so it is in order via a macro I suppose.
but is their a way I can add a formula to select the country code first then select all the unique commodity code and add the total values per column within the range selected and for this information to be added to another worksheet?

see images attached, colour coded only for the exercise.

the product information may vary but only slightly so it's not important which data pulls across any of the descriptions of the goods within that range is fine.

the file had 17500 lines, by country code then unique commodity code I managed to reduce it down to 131 lines.
the system I use to upload the data only accepts 150 lines.
It took to be quite some time, I would really like a solution to this, I will see many of these files and a long term solution would be amazing! thanks
 

Attachments

  • image.jpg
    image.jpg
    88.9 KB · Views: 6
  • image 2.JPG
    image 2.JPG
    58.8 KB · Views: 6

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
the product information ITEM NAME may vary but only slightly so it's not important which data pulls across any of the descriptions of the goods within that range is fine.
 
Upvote 0

Forum statistics

Threads
1,214,885
Messages
6,122,090
Members
449,065
Latest member
Danger_SF

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