I have a bunch of csv files per consignment, the files may go up 20 daily .
Actually using excel from csv delimited , rows has headers ,5 rows to leave to reach the headers rows manually
Then to delete duplicate headers and headers that are not applicable for further use.
Rearrange the headers as sample pattern attached in red tab , the yellow headers as per attached sheet are not required firstsheet tab cscconvert
The final result is in red tab with invoice ref which is the first column as its name .
The csv files is found in C:\\ CASS_CSV, there may be be 20 daily ,the amount rows can be to 5000 rows in a csv file but the csv format and headers remains always the same , just data that changes.
Each csv files need to be converted to a specific header pattern which applies for all as per attached, duplicate headers and non relevant headers with their data to be deleted highlighted in yellow.
Looking a code without opening the csv files that will fetch the csv file in c:\\cass_csv , delete non requested headers and rearrange the headers in the pattern as per sample provided.
The xlsx file for each csv file will saved in a folder c:\\ converted_cass.
The yellow headers are a guide which header need to be deleted as but for daily purposes it is plain as I need to this manually.
The header EAN column C need to be formatted actually showing this as below
3.22247E+12
The header as below column H & I to add total with its formatting
Qt‚ fact.
Montant HT
All columns to autofit .
I hope, made my explanations as clear as possible for ease of understanding.
attached one excel file for a better visual explanations
Actually using excel from csv delimited , rows has headers ,5 rows to leave to reach the headers rows manually
Then to delete duplicate headers and headers that are not applicable for further use.
Rearrange the headers as sample pattern attached in red tab , the yellow headers as per attached sheet are not required firstsheet tab cscconvert
The final result is in red tab with invoice ref which is the first column as its name .
The csv files is found in C:\\ CASS_CSV, there may be be 20 daily ,the amount rows can be to 5000 rows in a csv file but the csv format and headers remains always the same , just data that changes.
Each csv files need to be converted to a specific header pattern which applies for all as per attached, duplicate headers and non relevant headers with their data to be deleted highlighted in yellow.
Looking a code without opening the csv files that will fetch the csv file in c:\\cass_csv , delete non requested headers and rearrange the headers in the pattern as per sample provided.
The xlsx file for each csv file will saved in a folder c:\\ converted_cass.
The yellow headers are a guide which header need to be deleted as but for daily purposes it is plain as I need to this manually.
The header EAN column C need to be formatted actually showing this as below
3.22247E+12
The header as below column H & I to add total with its formatting
Qt‚ fact.
Montant HT
All columns to autofit .
I hope, made my explanations as clear as possible for ease of understanding.
attached one excel file for a better visual explanations