Convert row with columns of data into column with multiple rows
Posted: 06 Jul 2016 07:27
Okay, here are my realtime examples.
The first section of 'code' is what my export file currently looks like: ( for examples purposes, I'm only using 6 columns; there are 61)
Note: the space under the header is intentional; that's the style of my export. A space between the header and first data row.
This is what I need to transform the above file into:
I hope this helps!
Mod edit: The details in the post above have been changed so some following comments no longer apply
The first section of 'code' is what my export file currently looks like: ( for examples purposes, I'm only using 6 columns; there are 61)
Note: the space under the header is intentional; that's the style of my export. A space between the header and first data row.
Code: Select all
"Name","Alias","TEXT_JP","Direct Flag","IP Owner","Modality"
"PFP-B1033400","TAK-331 - Bioanalytical Support (GLP)","Bioanalytical Support (GLP) (TAK-331)","DIRECT","JPTP001","Large Molecule"
"PFP-A1043200","C16028 Japan P2 study MLN9708 RRMM (Ixazomib)","C16028 Japan P2 study MLN9708 RRMM","DIRECT","USTP003","Small Molecule"
"PFP-A1011300","Norovirus vaccine - DoD (Government grant)","Norovirus vaccine - DoD (Government grant)","DIRECT","USTP013","Vaccine"
"PFP-A1012800","NOR-327","NOR-327 ","DIRECT","USTP013","Vaccine"
This is what I need to transform the above file into:
Code: Select all
"PFP-B1033400","Alias","TAK-331 - Bioanalytical Support (GLP)"
"PFP-B1033400","TEXT_JP","Bioanalytical Support (GLP) (TAK-331)"
"PFP-B1033400","Direct Flag","DIRECT"
"PFP-B1033400","IP Owner","JPTP001"
"PFP-B1033400","Modality","Large Molecule"
"PFP-A1043200","Alias","C16028 Japan P2 study MLN9708 RRMM (Ixazomib)"
"PFP-A1043200","TEXT_JP","C16028 Japan P2 study MLN9708 RRMM"
"PFP-A1043200","Direct Flag","DIRECT"
"PFP-A1043200","IP Owner","USTP003"
"PFP-A1043200","Modality","Small Molecule"
"PFP-A1011300","Alias","Norovirus vaccine - DoD (Government grant)"
"PFP-A1011300","TEXT_JP","Norovirus vaccine - DoD (Government grant)"
"PFP-A1011300","Direct Flag","DIRECT"
"PFP-A1011300","IP Owner","USTP013"
"PFP-A1011300","Modality","Vaccine"
"PFP-A1012800","Alias","NOR-327"
"PFP-A1012800","TEXT_JP","NOR-327 "
"PFP-A1012800","Direct Flag","DIRECT"
"PFP-A1012800","IP Owner","USTP013"
"PFP-A1012800","Modality","Vaccine"
I hope this helps!
Mod edit: The details in the post above have been changed so some following comments no longer apply