12
3
I have a few dozen excel files which are all of the same format (i.e. 4 worksheets per Excel file). I need to combine all the files into 1 master file which must have just 2 of the 4 worksheets. The corresponding worksheets from each Excel file are named exactly the same as are the column headers.
While each file is structured the same, the information within sheet 1 and 2 (for example) is different. So it can’t be combined into one file with everything in one sheet!
I've never used VBA before and I'm wondering where I might start this task!
always amazed what you can do with a few lines of python! – TimoSolo – 2018-02-05T15:27:45.150
1to write out the file, use something like this:
writer = pd.ExcelWriter('merged.xlsx', engine='xlsxwriter') \n all_data.to_excel(writer, sheet_name='Sheet1') \n writer.save()
– TimoSolo – 2018-02-05T17:34:30.600