jazzhayward
New Member
- Joined
- Sep 16, 2022
- Messages
- 7
- Office Version
- 365
- Platform
- Windows
Hi All,
I have a little bit of VBA knowledge but am struggling with this one.
I have a data extraction from an accounting system. The first half of the data is represented horizontally as expected, but the second half of the data is somehow expressed vertically (a can of worms I don't need to go into right now).
I need a way to transpose this vertical data to the corresponding row, delete the rows no longer required, then continue for the next record and so on. This data will having varying rows so ideally need to make sure it can handle that.
Here is a screenshot of the spreadsheet to show you what I mean but I can attach a truncated copy of the file if needed.
First I need just one version of the data in P2:P22 to copies and transposed to R1 to provide headings.
Then need Q2:22 to be transposed to R2. I then need rows 3:22 to be deleted.
Then need to repeat the same for the next invoice number (which is in column A) but it will be on the next row down (Q3:23 transposed to R3, then delete 4:23 to be deleted and so on).
As mentioned this file will have varying rows so need to make sure it captures everything. I thought it might be a mix of an IF formula and transpose but it's a bit beyond what I can get my head around.
I will be adding some formatting to the code but I can add this myself
Thank you in advance!
I have a little bit of VBA knowledge but am struggling with this one.
I have a data extraction from an accounting system. The first half of the data is represented horizontally as expected, but the second half of the data is somehow expressed vertically (a can of worms I don't need to go into right now).
I need a way to transpose this vertical data to the corresponding row, delete the rows no longer required, then continue for the next record and so on. This data will having varying rows so ideally need to make sure it can handle that.
Here is a screenshot of the spreadsheet to show you what I mean but I can attach a truncated copy of the file if needed.
First I need just one version of the data in P2:P22 to copies and transposed to R1 to provide headings.
Then need Q2:22 to be transposed to R2. I then need rows 3:22 to be deleted.
Then need to repeat the same for the next invoice number (which is in column A) but it will be on the next row down (Q3:23 transposed to R3, then delete 4:23 to be deleted and so on).
As mentioned this file will have varying rows so need to make sure it captures everything. I thought it might be a mix of an IF formula and transpose but it's a bit beyond what I can get my head around.
I will be adding some formatting to the code but I can add this myself
Thank you in advance!