alanbriggs
New Member
- Joined
- Oct 20, 2021
- Messages
- 2
- Office Version
- 365
- Platform
- Windows
Sorry, the title doesn't help explain anything!
So I am trying to create a .CSV file to import into another system. The data in that CSV needs to come from an un-structured excel spreadsheet.
The source is a sheet with multiple sections containing names in column A, and values in the neighbouring columns. The amount of data is different for each section.
I need to summarise the data so I get a new sheet ready to use as my CSV. It needs to contain a new line with the name, a delimiter (, and the value in the first relevant column that's populated. When I say relevant column, it's the same each time, I want to ignore the data in columns before it. Then the next line is the name again, and the value in the next column. Then when it gets to the last populated column for that row (that persons name), it needs to loop to the next row and do the same.
As each section is different, some with lots of columns of data, I was thinking just physically select the cells I need to work with, and run a macro on the selection, then run it as many times as I want.
Source data, the RED data is what I need...
Destination output would be...
Brian Reynolds;ZBR_EMPLOYEE_BB_RW
Brian Reynolds;ZBR_INVENTORY_MANAGER_BB_RW
Brian Reynolds;ZBR_MANAGER_PROCUREMENT_BB_RO
Bruce Rogers;ZBR_EMPLOYEE_BB_RW
Bruce Rogers;ZBR_INVENTORY_MANAGER_BB_RW
Bruce Rogers;ZBR_MANAGER_PROCUREMENT_BB_RO
Joe Bloggs;ZBR_EMPLOYEE_BB_RW
Joe Bloggs;ZBR_INVENTORY_MANAGER_BB_RW
Joe Bloggs;ZBR_MANAGER_PROCUREMENT_BB_RO
Ryan Farquar;ZBR_EMPLOYEE_BB_RW
Ryan Farquar;ZBR_INVENTORY_MANAGER_BB_RW
Ryan Farquar;ZBR_MANAGER_PROCUREMENT_BB_RO
Sorry, this is blatantly asking for help with no starting point, but I'm in a rush and I'm brushing up on skills I left behind many years ago here. Really appreciate any help I can get.
Thanks in advance, Alan
So I am trying to create a .CSV file to import into another system. The data in that CSV needs to come from an un-structured excel spreadsheet.
The source is a sheet with multiple sections containing names in column A, and values in the neighbouring columns. The amount of data is different for each section.
I need to summarise the data so I get a new sheet ready to use as my CSV. It needs to contain a new line with the name, a delimiter (, and the value in the first relevant column that's populated. When I say relevant column, it's the same each time, I want to ignore the data in columns before it. Then the next line is the name again, and the value in the next column. Then when it gets to the last populated column for that row (that persons name), it needs to loop to the next row and do the same.
As each section is different, some with lots of columns of data, I was thinking just physically select the cells I need to work with, and run a macro on the selection, then run it as many times as I want.
Source data, the RED data is what I need...
Destination output would be...
Brian Reynolds;ZBR_EMPLOYEE_BB_RW
Brian Reynolds;ZBR_INVENTORY_MANAGER_BB_RW
Brian Reynolds;ZBR_MANAGER_PROCUREMENT_BB_RO
Bruce Rogers;ZBR_EMPLOYEE_BB_RW
Bruce Rogers;ZBR_INVENTORY_MANAGER_BB_RW
Bruce Rogers;ZBR_MANAGER_PROCUREMENT_BB_RO
Joe Bloggs;ZBR_EMPLOYEE_BB_RW
Joe Bloggs;ZBR_INVENTORY_MANAGER_BB_RW
Joe Bloggs;ZBR_MANAGER_PROCUREMENT_BB_RO
Ryan Farquar;ZBR_EMPLOYEE_BB_RW
Ryan Farquar;ZBR_INVENTORY_MANAGER_BB_RW
Ryan Farquar;ZBR_MANAGER_PROCUREMENT_BB_RO
Sorry, this is blatantly asking for help with no starting point, but I'm in a rush and I'm brushing up on skills I left behind many years ago here. Really appreciate any help I can get.
Thanks in advance, Alan