Code to accumulate quantity if the same name

Excelpromax123

Board Regular
Joined
Sep 2, 2021
Messages
167
Office Version
  1. 2010
Platform
  1. Windows
Hello everyone. I need 1 piece of code to accumulate the number if the same name. Currently my data is about 20,000 lines, using sumif function is very heavy. Thanks to everyone for help. Sincerely thank

1661424813460.png
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
How about
Excel Formula:
=sumifs(C:I,B:H,K5)


Currently my data is about 20,000 lines, I am currently using the sumif function as above, which is very heavy. I need an array of code to run as fast as possible. Please help with the VBA code. Note the result = TABLE 1 + TABLE 2 - TABLE 3
 
Upvote 0
Sumifs for the data you have shown will not be "heavy" and if you wanted a macro why did you not say that?
 
Upvote 0
Currently my data is about 20,000 lines, I am currently using the sumif function as above, which is very heavy. I need an array of code to run as fast as possible. Please help with the VBA code. Note the result = TABLE 1 + TABLE 2 - TABLE 3


I made it clear in the question title. Hope you can help

1661427417456.png
 
Upvote 0
Code does not mean a macro, a lot of people refer to a formula as code.

Hopefully someone else will provide a macro.
 
Upvote 0

Forum statistics

Threads
1,215,235
Messages
6,123,784
Members
449,124
Latest member
shreyash11

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