I have a large spreadsheet full of data where a list of names are in single cells of data and I would like all of the names to have their own row so that I can sort the data. I was able to deliminate the names to columns, there is up to 5 columns of names per row now. Some have only 1 and some have 2 or 3 and some have 5.
I would like to use a macro that would check columns B-F in a row and if it contains additional names in those rows, to cut (or copy) them and insert new row underneath and place the names in column A in the new rows so that all names have their own rows of data. So if Row 2 had text in all five columns. The macro would insert 5 rows underneath row 2 and paste the data from column B to row 3 and from column C to row 4 ... and so on. Then the formula would go on to the next row of data and check to do the same. There would be a caveat where it would simply skip over and go to the next if there is no data in rows B-F or if there is only 3 columns of data, I would like it to do just the three columns that have names and then go to the next (not insert 5 rows for each line item when there is blank data (although I suppose I can go back and filter them out). This macro would have to loop until all rows are complete.
Any suggestions on how to write this? Thank you!
Bookmarks