Copy cells

Brodito

New Member
Joined
Aug 29, 2009
Messages
8
I am trying to copy cells in a non sequential order:
For Example, I have the following sheet:

In Sheet 1, I have
A B C D
1 A
2 B
3 C

In Sheet 2, I have
A
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9

I am trying to create in Sheet 1 a formula that allows me to have this result:

A B C D
1 A 1 2 3
2 B 4 5 6
3 C 7 8 9

I copy in Sheet 1 (B1), =Sheet 2!A1; then in (C1) =Sheet 2!A2; and in (D1) =Sheet 2!A3... Until now is fine

But when I copy in (B2), I would like to copy =Sheet 2!A4, not A2... How can I copy "NON SEQUENTIAL" cells; or, is it possible to instruct to copy A1 "PLUS" 3 positions below, incrementing 3 positions (not only one)?

Hope I make myself understood... Thanks in advance.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

id107

Well-known Member
Joined
Apr 16, 2008
Messages
578
Not sure how to do it using a formula, but this should work:
Code:
Sub test()
 
    Dim c As Range, i As Long
 
    i = 1
 
    For Each c In Range("A1:A" & Range("A" & Rows.Count).End(xlUp).Row)
        c.Offset(, 1).Value = "=Sheet2!A" & i
        c.Offset(, 2).Value = "=Sheet2!A" & i + 1
        c.Offset(, 3).Value = "=Sheet2!A" & i + 2
        i = i + 3
    Next c
 
End Sub
 

Brodito

New Member
Joined
Aug 29, 2009
Messages
8
Sorry but do not know how to use the programming you wrote below. Is that done in the developer mode?
 

indiantrix

Well-known Member
Joined
Oct 17, 2002
Messages
943
Put this into B1, copy it across to D1, then copy this row Down to Row 3.
HTH - Larry.
and now, for the formula! =INDIRECT("Sheet2!A"&COLUMN()-1+(ROW()*3)-3)
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,494
Messages
5,832,018
Members
430,104
Latest member
briannnnleong

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
Top