Hello,
Pretty new to coding in Excel so hoping for some help in here
We got a many .csv log files as under but with +10k rows and 88 different tagnames, I have manually deleted 85 of them to make the example in this post smaller.
So what I hope to automate is that it looks like the table under where Date, Time, Millitm is combined and Tagname with the values goes into their own column.
I have attached our solution to the problem but if anyone got a better way I am all ears
Any help is appreciated
Pretty new to coding in Excel so hoping for some help in here

We got a many .csv log files as under but with +10k rows and 88 different tagnames, I have manually deleted 85 of them to make the example in this post smaller.
So what I hope to automate is that it looks like the table under where Date, Time, Millitm is combined and Tagname with the values goes into their own column.
I have attached our solution to the problem but if anyone got a better way I am all ears

Code:
;Date,Time,Millitm,Tagname,Value,Status,Marker,Internal
04/03/2020,13:12:59,527,/RSLINXENTERPRISE::[EDG]BATTSTARTAVOLTAGE.Y , 0.00000000,U,B, -1,
04/03/2020,13:12:59,527,/RSLINXENTERPRISE::[EDG]BATTISNTAVOLTAGE.Y , 0.00000000,U,B, -1,
04/03/2020,13:12:59,527,/RSLINXENTERPRISE::[EDG]FREQUENCYTOEDMCS.Y , 0.00000000,U,B, -1,
04/03/2020,13:12:59,527,/RSLINXENTERPRISE::[EDG]BATTSTARTACURRENT.Y , 0.00000000,U,B, -1,
04/03/2020,13:13:08,416,/RSLINXENTERPRISE::[EDG]BATTSTARTAVOLTAGE.Y , 27.38437653, ,E, 0,
04/03/2020,13:13:08,416,/RSLINXENTERPRISE::[EDG]BATTISNTAVOLTAGE.Y , 26.08875084, ,E, 1,
04/03/2020,13:13:08,416,/RSLINXENTERPRISE::[EDG]FREQUENCYTOEDMCS.Y
04/06/2020,17:17:12,496,/RSLINXENTERPRISE::[EDG]BATTSTARTAVOLTAGE.Y , 0.00000000,U,B, 88,
04/06/2020,17:17:12,496,/RSLINXENTERPRISE::[EDG]BATTISNTAVOLTAGE.Y , 0.00000000,U,B, 89,
04/06/2020,17:17:12,496,/RSLINXENTERPRISE::[EDG]FREQUENCYTOEDMCS.Y , 0.00000000,U,B, 90,
04/06/2020,17:18:12,460,/RSLINXENTERPRISE::[EDG]BATTSTARTAVOLTAGE.Y , 19.51312637, , , 176,
04/06/2020,17:18:12,460,/RSLINXENTERPRISE::[EDG]BATTISNTAVOLTAGE.Y , 28.13625145, , , 177,
04/06/2020,17:18:12,460,/RSLINXENTERPRISE::[EDG]FREQUENCYTOEDMCS.Y , 0.00000000, , , 178,
Date | Time | Millitm | BATTSTARTAVOLTAGE.Y | BATTISNTAVOLTAGE.Y | FREQUENCYTOEDMCS.Y |
04.03.2020 | 13:12:59 | 527 | 0 | 0 | 0 |
04.03.2020 | 13:13:08 | 416 | 27,38437653 | 26,08875084 | 0 |
04.06.2020 | 17:17:12 | 496 | 0 | 0 | 0 |
04.06.2020 | 17:18:12 | 460 | 19,51312637 | 28,13625145 | 0 |
04.06.2020 | 17:19:12 | 534 | 26,1243763 | 28,07437706 | 0,12001999 |
Any help is appreciated

Attachments
Last edited: