Speed up calculation using Macros

Yevette

Active Member
Joined
Mar 8, 2003
Messages
336
Okay, I'm reaching out to the Excel VBA SME's!!!

I was wondering if someone could help me with VBA that I can put in Excel to put formulas in 70,000 (contiguous) cells. I have a lot of trouble getting my spreadsheet to calculate my SUMPRODUCT formula (--Sumproduct(--(A:A=A2),--(C:C="Documentation)). I need to put the result in Col. H and have the formula copied into each cell until the (A Column) data ends. When I try to do this manually (copy / paste the formula from H2, down), the processor creeps when calculating and I'm just sitting here. I heard that if the formula was done in VBA (behind the scenes) that it the process would be done almost instantly.

Clear as mud? Thanks so much for any help you can provide.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
I do not know if VBA would speed it up, but if you have only 70,000 rows, why use the full colums in your sumproduct formuls. Adjust the ranges to match your data and you will eliminate unnecessay checking of a large number of cells. That alone should speed it up.
 
Upvote 0
I put whole columns in my post only as a means to cut down on putting actual row numbers - it was just an example. In my formula I am only using the range that has actual data.
 
Upvote 0
With that number of rows, a pivot table would be much more interesting IMO.
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

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