Copying/pasting a row of cells to a cell x distance away.

JackDownAHill

New Member
Joined
Jul 17, 2015
Messages
1
Hello there,

Not sure if this is possible or not.

I'm looking to be able to copy and paste a series of cells based on an input code a dynamic distance away from the formula cell.

In the image, there is an input value. This defines where along the scale the string is placed.
There is a predefined value. This defines which string to use.
and then the scale at the top.
Itgk3it.png


At the moment, I'm using a vlookup for =B5&A5 in a database of all the possible code combinations. However this doesn't play kindly when I try and ad new strings of values (Adding A11 to the existing A8 to A10 strings for instance). I'm in need of a more elegant solution that allows me to change it around without having to generate a new array (that documant is already 20mb and almost crashes every time I open it).

Any help would be appreciated.

Thanks, Jack
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hello,

one solution, (there will be better).


In D2 enter

=IF($A$5=B$1,INDEX($B$8:$D$18,$B$5,3),IF($A$5=C$1,INDEX($B$8:$D$18,$B$5,2),IF($A$5=D$1,INDEX($B$8:$D$18,$B$5,1),"")))

and copy over as far as required.

Change D18 to a row number that you will not exceed.

Don't know how much bigger this will make your file.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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