Hello World,
I`m 17 years old and got the pleasure to play with macros in my company.
I`m a newbie..:D
Soo, my Problem:
I have a .csv with about 2000 records witch describes persons.
Between the name and the data of these persons is one column for the title and 0-9 empty Cells.
Some persons have no title, so the Cells of the second column are sometimes empty.
A Person can have 0-200 of these "data-cells".
[Robert][Executor][Empty Cell][Empty Cell][Empty Cell][Empty Cell][Data1][Data2][Data3][Data4][Data5][Data6][Data7]
[Henry][Chief][Data1][Data2][Data3][Data4]...
[Angie][Empty Cell][Empty Cell][Empty Cell][Empty Cell][Data1]
[Roland][Empty Cell][Empty Cell][Empty Cell][Empty Cell][Empty Cell][Empty Cell]...
[Sue][Worker][Empty Cell][Empty Cell][Data1][Data2][Data3][Data4]...
I want to take out the empty cells, except the column "Title".
In the end, it should look like this:
[Robert][Executor][Data1][Data2][Data3][Data4][Data5][Data6][Data7]
[Henry][Chief][Data1][Data2][Data3][Data4]...
[Angie][Empty Cell][Data1]
[Roland][Empty Cell]
[Sue][Worker][Data1][Data2][Data3][Data4]...
In my opinion, i should build a for loop that removes the data from the next cell and put it into the actual cell, but only if the actual cell was empty..
The problem would be the column "Title", witch cells have to remain empty, if they were empty.
I could solve the problem with extracting the column "Title" to another excel, delete the data from column B, export csv, import csv comma delimited, search_replace the ",," with "," ten times and insert the column "Title" but this solution isn`t elegant, not efficient and not comfortable for my co-workers.
Anybody knows a solution?
PS. Sorry for my bad English, hope you could understand..
Bookmarks