copy adjacent cells and paste to non-adjacent selection

frankpat

New Member
Joined
Apr 23, 2002
Messages
7
I have values in cells A1, A2, A3, etc.

I would like to copy those values and paste to non-adjacent cells such as B2, B15, B23

How can this be done?
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Is there a pattern to the mapping? (e.g. A1, A2, A3 always moves down one, destination starts at B2, then moves down 13, then down 8, then down 13, then down 8, etc.)

Alternatively, can you list the full mapping?
 
Upvote 0
Hello, frankpat
Welcome to the Board !!!

try something like this
Code:
Sub test()
Dim cell As Range
Dim i As Integer

    For Each cell In Range("B2, B15, B23")
    i = i + 1
    cell.Value = Range("A1:A3")(i).Value
    Next cell
End Sub

can't you use formulas ?

kind regards,
Erik
EDIT: good point Oaktree, I didn't see a pattern
 
Upvote 0
No, there is no pattern.
I just want to copy a range of, say, 5 cell values, then paste those values into 5 non-adjacent cells in another spreadsheet. Note that the target location will be a single column.

Thanks for any tip(s) you can offer.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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