Help needed: Copy cells down x amount of times based on search results

Mattrick2oo3

New Member
Joined
Dec 12, 2016
Messages
5
I'm currently working on a spreadsheet that will import data from an existing spreadsheet into a new template file. I have the code written to import and format all the cells but need help with copying cell contents. I need to write a macro that will read the contents of Column "G" for "4 X" and copy the information in Column "A" and Column "D" down to the next 4 rows. I need it to loop through the entire spreadsheet until it can no longer find the specified value in Column "G".

See below.

Char Num
Bub Num
Req
1
1
4X
200
200
200
200

<tbody>
</tbody>










Need "1" in both Column copied down to the next 4 rows.

Thanks,

-Matt
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Forum statistics

Threads
1,214,897
Messages
6,122,151
Members
449,068
Latest member
shiz11713

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