Hi there
I have a file that we output each day where I need to split the detail of a column based on some variables.
In the sample, you can see the different types of outputs that are available. For each output, there can be up to 3 "Lines:" depending on user input. The only mandatory field is "Field One:". The 3 "Lines" can have a maximum of 18 characters only (but anything under that is ok), if that is of any use. The examples shown are the format the database outputs depending on how many lines of info the user inputs (what I mean is the only variables are the bits between the "Line" and the <br>.
What I want to be able to do is split the data in the cell to extract the info from Field One, Line 1, Line 2 and Line 3 if they exist. Ideally what I'd like to do is insert 4 columns to the right of the existing data, put in a "header row" of Field One, Line 1, Line 2, Line 3 and then have the data populate under those headings, if that is possible.
Unfortunately I cannot change the output from the database, so that is not an option.
Have I got any hope of achieving this?
Cheers
Griffo
Field One:NIPb r
Field One:KODAb rLine 1:12334567890b r
Field One:Tacob rLine 1:123 Test Streetb rLine 2:123 456 7890b r
Field One:TEDb rLine 1:Ph: 1234 567 890b rLine 2:18 Testing Streetb rLine 3:City Details Hereb r
EDIT - changed to b r as didn't realise it was going to insert breaks! b r exports as br with <> around the br
I have a file that we output each day where I need to split the detail of a column based on some variables.
In the sample, you can see the different types of outputs that are available. For each output, there can be up to 3 "Lines:" depending on user input. The only mandatory field is "Field One:". The 3 "Lines" can have a maximum of 18 characters only (but anything under that is ok), if that is of any use. The examples shown are the format the database outputs depending on how many lines of info the user inputs (what I mean is the only variables are the bits between the "Line" and the <br>.
What I want to be able to do is split the data in the cell to extract the info from Field One, Line 1, Line 2 and Line 3 if they exist. Ideally what I'd like to do is insert 4 columns to the right of the existing data, put in a "header row" of Field One, Line 1, Line 2, Line 3 and then have the data populate under those headings, if that is possible.
Unfortunately I cannot change the output from the database, so that is not an option.
Have I got any hope of achieving this?
Cheers
Griffo
Field One:NIPb r
Field One:KODAb rLine 1:12334567890b r
Field One:Tacob rLine 1:123 Test Streetb rLine 2:123 456 7890b r
Field One:TEDb rLine 1:Ph: 1234 567 890b rLine 2:18 Testing Streetb rLine 3:City Details Hereb r
EDIT - changed to b r as didn't realise it was going to insert breaks! b r exports as br with <> around the br
Last edited: