Hi guys and girls,
I am trying to format a table with scattered information to the right format. The table looks like
this.
As you can see their are a, per user, different number of rows containing activities and time. Between the username and activities is an empty row. I would like to fill the Name & Tel in the empty cells in the activity & time rows. It should look like this.
How do I delete the empty rows and fill the empty Name & Tel cells with the Name and Tel from the cells above?
I am thinking of a VB script or SQL query that adds a rownumber and counts the row in which it encounters a Name. Because theirs is always 1 empty row you I would think something like:
- When encountered a value in column Name
- take rownumber +1
- remember the rownumbers untill you encounter a new value in column Name
- enter the Name and Tel in the corresponding columns untill you reach the rownumber with a new value in Name
- and then some sort of loop
I hope someone can help me out!
Thanks, Sander
I am trying to format a table with scattered information to the right format. The table looks like
this.
As you can see their are a, per user, different number of rows containing activities and time. Between the username and activities is an empty row. I would like to fill the Name & Tel in the empty cells in the activity & time rows. It should look like this.
How do I delete the empty rows and fill the empty Name & Tel cells with the Name and Tel from the cells above?
I am thinking of a VB script or SQL query that adds a rownumber and counts the row in which it encounters a Name. Because theirs is always 1 empty row you I would think something like:
- When encountered a value in column Name
- take rownumber +1
- remember the rownumbers untill you encounter a new value in column Name
- enter the Name and Tel in the corresponding columns untill you reach the rownumber with a new value in Name
- and then some sort of loop
I hope someone can help me out!
Thanks, Sander
Comment