christian79
New Member
- Joined
- Oct 24, 2022
- Messages
- 9
- Office Version
- 365
- 2016
- Platform
- Windows
Hello,
I have a sheet I need to transform from data being stored horizontally, like the following:
Into the following:
The data is structured such that the DoB/name entities always occur in as above horizontally (so that offsets can be used).
I've written a VBA script identifying and coloring/counting all the DoBs, but I need one row for each DoB/name entity, in relation to the company ID. Being a one-time operation and thus making performance uninportant, I just loop over all rows and identify things based on offsets.
How can I break each row up into several rows and paste the parts sequentially after eachother?
Thankful for any help!
I have a sheet I need to transform from data being stored horizontally, like the following:
Company ID 1 | DoB 1 | Name 1 | DoB 2 | Name 2 | DoB 3 | Name 3 |
Company ID 2 | DoB 1 | Name 1 | DoB 2 | Name 2 | ||
... | ... | ... | ... | ... | ... | ... |
Into the following:
Company ID 1 | DoB 1 | Name 1 |
Company ID 1 | DoB 2 | Name 2 |
Company ID 1 | DoB 3 | Name 3 |
Company ID 2 | DoB 1 | Name 1 |
Company ID 2 | DoB 2 | Name 2 |
The data is structured such that the DoB/name entities always occur in as above horizontally (so that offsets can be used).
I've written a VBA script identifying and coloring/counting all the DoBs, but I need one row for each DoB/name entity, in relation to the company ID. Being a one-time operation and thus making performance uninportant, I just loop over all rows and identify things based on offsets.
How can I break each row up into several rows and paste the parts sequentially after eachother?
Thankful for any help!