How to consolidate this?

Romano_odK

Active Member
Joined
Jun 4, 2020
Messages
379
Office Version
  1. 365
Platform
  1. Windows
Good morning,
Can you help me with the following please. I Have a few thousand lines like these and would like to consolidate the amounts so I get only one line. The best thing would be to sum the amounts and then delete the rest of the lines, but I do not know what would be possible. Thank you for your help and time.

artcodeItemDescriptiondatumoms25aantalCreatedbkstnr
133141Kunststof Rasterblok 32x2 mm blauw - 100 stuks07/08/2023 00:00Telling 10/08/2023, difference of: 300,0000 for item: 1949930007/08/202323359157
195009Beschermfolie 1000x0,05 mm blauw - 100 m10/08/2023 00:00Telling 10/08/2023, difference of: -208,0000 for item: 19500-20810/08/202323360632
195009Beschermfolie 1000x0,05 mm blauw - 100 m10/08/2023 00:00Telling 10/08/2023, difference of: 7,0000 for item: 195009710/08/202323360672
195009Beschermfolie 1000x0,05 mm blauw - 100 m10/08/2023 00:00Telling 10/08/2023, difference of: 100,0000 for item: 19500910010/08/202323360670
195009Beschermfolie 1000x0,05 mm blauw - 100 m10/08/2023 00:00Telling 10/08/2023, difference of: 100,0000 for item: 19500910010/08/202323360671
195003Beschermfolie 100x0,05 mm blauw - 100 m10/08/2023 00:00Telling 10/08/2023, difference of: -283,0000 for item: 19500-28310/08/202323360657
195003Beschermfolie 100x0,05 mm blauw - 100 m10/08/2023 00:00Telling 10/08/2023, difference of: 284,0000 for item: 19500328410/08/202323360676
195004Beschermfolie 125x0,05 mm - 100 m10/08/2023 00:00Telling 10/08/2023, difference of: -13,0000 for item: 195004-1310/08/202323360643
195004Beschermfolie 125x0,05 mm - 100 m10/08/2023 00:00Telling 10/08/2023, difference of: 13,0000 for item: 1950041310/08/202323360677
 
I tried the macro and it worked properly. This is what I got:
Book1
ABCDEFG
1artcodeItemDescriptiondatumoms25aantalCreatedbkstnr
2133141Kunststof Rasterblok 32x2 mm blauw - 100 stuks 30045145Telling 10/08/2023, difference of: 300,0000 for item: 194993004514523359157
3195009Beschermfolie 1000x0,05 mm blauw - 100 m -145148Telling 10/08/2023, difference of: -208,0000 for item: 19500-2084514823360632
4195003Beschermfolie 100x0,05 mm blauw - 100 m 145148Telling 10/08/2023, difference of: -283,0000 for item: 19500-2834514823360657
5195004Beschermfolie 125x0,05 mm - 100 m 045148Telling 10/08/2023, difference of: -13,0000 for item: 195004-134514823360643
Sheet1

Which line of code is highlighted when you click "Debug"?
 
Upvote 0

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
I tried the macro and it worked properly. This is what I got:
Book1
ABCDEFG
1artcodeItemDescriptiondatumoms25aantalCreatedbkstnr
2133141Kunststof Rasterblok 32x2 mm blauw - 100 stuks 30045145Telling 10/08/2023, difference of: 300,0000 for item: 194993004514523359157
3195009Beschermfolie 1000x0,05 mm blauw - 100 m -145148Telling 10/08/2023, difference of: -208,0000 for item: 19500-2084514823360632
4195003Beschermfolie 100x0,05 mm blauw - 100 m 145148Telling 10/08/2023, difference of: -283,0000 for item: 19500-2834514823360657
5195004Beschermfolie 125x0,05 mm - 100 m 045148Telling 10/08/2023, difference of: -13,0000 for item: 195004-134514823360643
Sheet1

Which line of code is highlighted when you click "Debug"?
Good evening, I tried again and now it works. The only thing what I don't understand is that I loose all the filters in every column of the table and I really need those. Can this be avoided?
 
Upvote 0
Delete this line of code:
VBA Code:
Range("A1").AutoFilter
 
Upvote 0

Forum statistics

Threads
1,215,337
Messages
6,124,340
Members
449,155
Latest member
ravioli44

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