Inserting rows based on cell value and copying modified content

Rocio

New Member
Joined
Oct 27, 2010
Messages
1
I must admit I don’t know how to write macros in Excel so I wonder if someone can help.
I have the dataset that looks something like that:
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> </o:p>
Column A Column B Column C ...... Column X<o:p></o:p>
Investment 1 Investor 1, Investor 2, etc Investor 1 Investor n
Columns C to X are a result of splitting a chunk of text in Column B into separate columns. So columns D to X may or may not have text values (depending whether there has been more than one investor).
I need the data set to be transformed into the following:
Investment 1 Investor 1
New rows:
Investment 1 Investor 2
Investment 1 Investor 3
I guess essentially I need to insert as many rows after the existing row as there are non-empty cells in columns D to X. I would like the information from the existing row to be copied into those cells and ideally, shifted to the left by one cell (i.e. in each subsequent inserted row the value in the Column C would mean another investor (first inserted row - data from Column D of the original row (investor 2), second inserted row - data from column E of the original row i.e. investor 3, etc.)
I would need to do this procedure on multiple worksheets (90+) and the number of existing rows is in the hundreds in each sheet so I cant really do it manually.
The problem is I would not know how to go at it as I can’t write my own macros and I did not find anything easily modifiable to suit my purpose online either. Any help would be appreciated.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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