Python offers many modules. I would recommend the openpyxl
module. You could read about it here. If I understood you correctly you want to combine multiple excel spreadsheets. The way I woudl do it is add a row to a new spreadsheet for each row in all the excel spreadsheets. I wrote a simple program to do this:
import openpyxl
import os
from os.path import join
spreadsheet = openpyxl.Workbook()
final_sheet = spreadsheet.get_sheet_by_name('sheet1')
x = 0
for(dir, dirs, files) in os.walk('C:\Users\Cheyn Shmuel\Documents'):
for file in files:
filename = join(dir, file)
try:
workbook = openpyxl.load_workbook(filename)
except:
continue # in case there are files that aren't excel in that directory
for s in workbook.get_sheet_names():
sheet = workbook.get_sheet_by_name(s)
for row in sheet.rows:
for cell in row:
try:
final_sheet[cell.coordinate[0] + str(int(cell.coordinate[1:]) + x)] = cell.value
except:
final_sheet[cell.coordinate[:1] + str(int(cell.coordinate[2:]) + x)] = cell.value
x += sheet.get_highest_row()
spreadsheet.save('your file.xlsx')
This program will go through all the excel files in your directory and put them into a new spreadsheet, and then put the next one after that, and so on.