Fill Down Macro Based on Several formula cells

squeakums

Well-known Member
Joined
May 15, 2007
Messages
823
Office Version
  1. 365
I have formulas in cells a2 through i2; based on cell J2's data, I would like the cells in a2 through i2 to fill down to where the data stops. I tried using the formula below but
it doesn't seem to work properly. I think its just a little off. If you know let me know. Thanks!

VBA Code:
Range("a2:I2").Select
Selection.End(xlDown).Select
ActiveCell.Offset(0, 10).Select
Range(Selection, Selection.End(xlUp)).Select
Selection.FillDown
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Maybe...
VBA Code:
Range("A2:I" & Range("J" & Rows.Count).End(xlUp).Row).FillDown

If you mean filldown to where column J's data ends, if not then please clarify
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,236
Members
448,555
Latest member
RobertJones1986

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