The closest post I've found that does similar to what I'm needing: Import last row of csv to excel answered by @DanteAmor
@DanteAmor I'm looking to do something similar but I have about 650 CSV files that I need to do the following for...
For each CSV file, I need to import the file name as Column A and then import the last row of 5 columns.
They are all in the same directory.
For further e.g. -
I have files named
AA1234.CSV
AA1235.CSV
AA1236.CSV
AA1237.CSV
AA1238.CSV
etc
and then each of the files appear as such -
bc456 1/6/2022 10:07 AM 192.168.1.5 Y
la333 1/7/2022 9:07 AM 192.168.1.5 Y
mc257 1/8/2022 7:07 AM 192.168.1.5 N
la333 1/9/2022 8:07 AM 192.168.1.5 Y
bc456 1/10/2022 9:07 AM 192.168.1.5 Y
I would like for my new file to add the name of the excel file to the first column and then pull the last row from each of the files.
AA1234 bc456 1/10/2022 9:07 AM 192.168.1.5 Y
Thanks for all of your help in advance!
@DanteAmor I'm looking to do something similar but I have about 650 CSV files that I need to do the following for...
For each CSV file, I need to import the file name as Column A and then import the last row of 5 columns.
They are all in the same directory.
For further e.g. -
I have files named
AA1234.CSV
AA1235.CSV
AA1236.CSV
AA1237.CSV
AA1238.CSV
etc
and then each of the files appear as such -
bc456 1/6/2022 10:07 AM 192.168.1.5 Y
la333 1/7/2022 9:07 AM 192.168.1.5 Y
mc257 1/8/2022 7:07 AM 192.168.1.5 N
la333 1/9/2022 8:07 AM 192.168.1.5 Y
bc456 1/10/2022 9:07 AM 192.168.1.5 Y
I would like for my new file to add the name of the excel file to the first column and then pull the last row from each of the files.
AA1234 bc456 1/10/2022 9:07 AM 192.168.1.5 Y
Thanks for all of your help in advance!