Formula in every 5th cell to reference ever 1st cell on another sheet.

vllgv

Board Regular
Joined
Oct 27, 2010
Messages
206
Given:

Formula in cell A1: =Data!A1
Formula in cell A6: =Data!A2

I need cell A11 to reference A3 on the data sheet and so on.

Is this possible?

Luke
 
Given:

Formula in cell A1: =Data!A1
Formula in cell A6: =Data!A2

I need cell A11 to reference A3 on the data sheet and so on.

Is this possible?
What should be in cells A2,A3,...,A7,A8,... etc.?
 
Upvote 0
Given:

Formula in cell A1: =Data!A1
Formula in cell A6: =Data!A2

I need cell A11 to reference A3 on the data sheet and so on.

Is this possible?

Luke

Hello!
like that?
this code inserts formula.
Code:
Sub Step5()i = 1
r = 1
Do
Cells(r, 1).Formula = "=Data!A" & i
r = r + 5
i = i + 1
Loop Until Sheets("Data").Cells(i, 1) = ""
End Sub
 
Upvote 0
Maybe this:

Code:
In A1

=IF(MOD(ROWS($A$1:$A1)-1,5),"",INDIRECT("Data!A"&CEILING(ROWS($A$1:$A1),5)/5))

And copy to A6, A11, ...

Markmzz
 
Upvote 0

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