Move cells under a specific text to right

veeru612

New Member
Joined
Nov 29, 2012
Messages
14
Hello Excel Pundits,
I need a small favor.
I have a file like this

string1
1 4 7
2 5 8
3 6 9
string2


I need to write a macro that searches this specific string1 and shift the numbers underneath the cell until string2 to right.

thank you so much for the help.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Never mind, figured out the solution. I just had to use range function to address the cells.
 
Upvote 0

Forum statistics

Threads
1,217,158
Messages
6,134,950
Members
449,901
Latest member
d2023

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