Speed question: which is faster: loop to add formula, or fill-down?

Gingertrees

Well-known Member
Joined
Sep 21, 2009
Messages
697
I currently have a macro set up that loops through used rows to add a different formula to column A, B, C, D, and E. So it applies the formula to A3, then another formula to B3, etc. to E3. Then it loops and does the same to A4, B4, etc. to the end of range.

Is this the fastest way, or would it be better to figure out the "FillDown" method for each column?

Simply an academic question. Formulas include:
  • Concatenate 2 cells
  • worksheet function of Vlookup
  • worksheet function of CountIf
  • Select Case.Value with 3 cases (was a nested IF-THEN statement before I wrote it into VBA; I'd return it to that if the concensus is that fill-down is faster)

PS: I already turned off screenupdating and Display Alerts for this routine.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
I would think that fill down is faster.
 
Upvote 0
FillDown should be much faster, especially if you turn off calculation while adding the formulas and turn it back on at the end.
 
Upvote 0
(groan) I was afraid of that. OK, rewriting everything shall commence. :( Thanks for the responses, guys.
 
Upvote 0

Forum statistics

Threads
1,223,605
Messages
6,173,321
Members
452,510
Latest member
RCan29

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