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:eek:ffice:eek:ffice" /><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.
 

Some videos you may like

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Watch MrExcel Video

Forum statistics

Threads
1,109,334
Messages
5,528,093
Members
409,802
Latest member
joeino

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top