Forum Discussion

tbrowning's avatar
tbrowning
New Member
3 years ago

combine single column text files

Hi all,

 

I have a folder with plain text files that I want to transpose into a table.

 

Let's say I have three text files, as follows:

 

File 1

 

Field1=Value1
Field2=Value2
Field3=Value3

 

 

 

File 2

 

Field1=Value4
Field2=Value5
Field3=Value6

 

 

 

 

File 3

 

Field1=Value7
Field2=Value8
Field3=Value9

 

 

I can get the data to look like this:

Column1Column2
Field1Value1
Field2Value2
Field3Value3
Field1Value4
Field2Value5
Field3Value6
Field1Value7
Field2Value8
Field3

Value9

 

But I can't figure out how to make it look like this:

Field1Field2Field3
Value1Value2Value3
Value4Value5Value6
Value7Value8Value9

 

Does anyone have any advice?

 

Thanks,

 

Tom

2 Replies

  • You can do this with a pivot operation, but you need a bit of extra information.

     

    If you can get the data in a format like this:

     

    Then you can finish with a single GUI operation:

  • Ahhh of course, I kept trying pivot but without the file name, and thus it was aggregating things. Thanks!