SUMIFS VBA Code on multiple worksheets

Hellodoublev

New Member
Joined
Feb 25, 2020
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
Hi All,

I would like to know on how to write VBA code for SUMIFS on multiple worksheets. Right now I am using SUMIFS but my data is more than 60000 Rows and using the function SUMIFS is very slow. I need a VBA code to extract the data from worksheet 1 and into the rest of the worksheets by departments.

Example of Raw data is like this :

Document DateMonthAccount NumberDepartmentsAmount
03/01/202013000001010 (82,473.60)
03/01/202013000001020 (6,182.00)
03/01/202015000001020 (240.00)
06/01/202015000001010 (122,162.00)
06/01/202016100203020 (23,378.00)
12/01/202016150403050 (240.00)
12/01/202016850043060 (61,514.00)

My results would be like this :

1582623718570.png

1582623778267.png


Can anyone please help me with a VBA code to produce such results (By departments) ?

Thank You.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Hello,

I think you would find an enormous advantage if you used "Get and Transform" instead.

Fred
 
Upvote 0

Forum statistics

Threads
1,214,825
Messages
6,121,788
Members
449,049
Latest member
greyangel23

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