DTMHibbert
New Member
- Joined
- Oct 4, 2017
- Messages
- 6
Hi all,
Im looking for a way using VBA code to transpose data contained in one cell separated by ";" to multiple rows. Below is an example of what im trying to achieve
Event ID Day Start End Room
1 Monday 09:00 11:00 Room 1; Room 2; Room 3; Room 4
1 Monday 09:00 11:00 Room 1; Room 2; Room 3; Room 4
1 Monday 09:00 11:00 Room 1; Room 2; Room 3; Room 4
1 Monday 09:00 11:00 Room 1; Room 2; Room 3; Room 4
2 Tuesday 15:00 16:00 Room 1; Room 2
2 Tuesday 15:00 16:00 Room 1; Room 2
3 Wednesday 12:00 14:00 Room 1; Room 2; Room 3
3 Wednesday 12:00 14:00 Room 1; Room 2; Room 3
3 Wednesday 12:00 14:00 Room 1; Room 2; Room 3
Event ID Day Start End Room
1 Monday 09:00 11:00 Room 1
1 Monday 09:00 11:00 Room 2
1 Monday 09:00 11:00 Room 3
1 Monday 09:00 11:00 Room 4
2 Tuesday 15:00 16:00 Room 1
2 Tuesday 15:00 16:00 Room 2
3 Wednesday 12:00 14:00 Room 1
3 Wednesday 12:00 14:00 Room 2
3 Wednesday 12:00 14:00 Room 3
As you can see the data in the room column in all combined into one cell however it does produce duplicate rows for each room used. (Event 1 has 4 rows because it has rooms being used). Some events would only have 1 row while some larger events could have roughly 30/40
I did produce a vba script based of something i found online but i have since lost this and cannot find the source again.
Thanks guys.
Im looking for a way using VBA code to transpose data contained in one cell separated by ";" to multiple rows. Below is an example of what im trying to achieve
Event ID Day Start End Room
1 Monday 09:00 11:00 Room 1; Room 2; Room 3; Room 4
1 Monday 09:00 11:00 Room 1; Room 2; Room 3; Room 4
1 Monday 09:00 11:00 Room 1; Room 2; Room 3; Room 4
1 Monday 09:00 11:00 Room 1; Room 2; Room 3; Room 4
2 Tuesday 15:00 16:00 Room 1; Room 2
2 Tuesday 15:00 16:00 Room 1; Room 2
3 Wednesday 12:00 14:00 Room 1; Room 2; Room 3
3 Wednesday 12:00 14:00 Room 1; Room 2; Room 3
3 Wednesday 12:00 14:00 Room 1; Room 2; Room 3
Event ID Day Start End Room
1 Monday 09:00 11:00 Room 1
1 Monday 09:00 11:00 Room 2
1 Monday 09:00 11:00 Room 3
1 Monday 09:00 11:00 Room 4
2 Tuesday 15:00 16:00 Room 1
2 Tuesday 15:00 16:00 Room 2
3 Wednesday 12:00 14:00 Room 1
3 Wednesday 12:00 14:00 Room 2
3 Wednesday 12:00 14:00 Room 3
As you can see the data in the room column in all combined into one cell however it does produce duplicate rows for each room used. (Event 1 has 4 rows because it has rooms being used). Some events would only have 1 row while some larger events could have roughly 30/40
I did produce a vba script based of something i found online but i have since lost this and cannot find the source again.
Thanks guys.