Help with copying cells from a different worksheet.

Live2Dive

New Member
Joined
Mar 9, 2018
Messages
1
I'm looking for help with pulling cells from another worksheet. I have a few hundred rows in worksheet2, and want to change how they appear in the worksheet1. See attached.

There are 5 cells that I want to continue to copy, but when I do, it changes the cells from 1 to 5, and not from 1 to 2 like I want. In the cells copied down in the image, they should be: B2, A2, C2, D2, and F2 ... and not B5, A5, C5, D5, and F5.

Is there a way to make this copy/paste to not skip those three lines? If it were just a few lines, I'd fix them manually, but like I said, I have a few hundred lines I'm going to be copying.

Thanks for any help someone can give.

28958414_10215919132440466_1431295390375739392_n.jpg
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
This is maybe a bit much but you can do it like this.

Start in Column K and run a Count starting at 1 and go until you have the number of records you want to return.

Then in Column M I am copying that range and pasting it below the previous set, do this 4 times in this case.

Then in Column O, I have sorted the numbers I just created which leaves me with a one next to the first 4 rows (O2:O5). In your screenshot you have a space between each one thus we need the extra 1.

Then looking at Columns H and I we create our shell, you will copy and paste this down as far as needed.

Then in Columns E and F we are combining the text and the number to make the Z_=Sheet2!B turn into Z_=Sheet2!B1

We then copy and paste Columns E and F and put the Data into Columns B and C and make sure to Paste as Values

You should then be able to simply highlight Columns B and C and use Find / Replace to change Z_ to "" (blank).

Hopefully that makes sense :)

Still a bit of work but alot easier than manually doing it.

ABCDEFGHIJKLMNOPQ
1
2=Sheet2!B1=IF(H2<>"",CONCATENATE(H2,O2),"")=IF(I2<>"",CONCATENATE(I2,O2),"")Z_=Sheet2!B111
3=Sheet2!A1Z_=Sheet2!C1=IF(H3<>"",CONCATENATE(H3,O3),"")=IF(I3<>"",CONCATENATE(I3,O3),"")Z_=Sheet2!AZ_=Sheet2!C221
4=Sheet2!D1Z_=Sheet2!F1=IF(H4<>"",CONCATENATE(H4,O4),"")=IF(I4<>"",CONCATENATE(I4,O4),"")Z_=Sheet2!DZ_=Sheet2!C331
511
622
732
812
922
1033
1113
1223
1333
14

<tbody>
</tbody>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,793
Messages
6,121,619
Members
449,039
Latest member
Mbone Mathonsi

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