I am a new starter for Python and currently doing some data analysis.
I distributed few surveys using the same format. I want to sum the data from same cell (e.g. A1) from different tables(Say I have 100 surveys) but do not know how to achieve that. I learned that excel sum function could sum the data from different sheets but it does not works when they are in different excel files.
I tried to use Python to sum that and export to a new excel with exact the same format. But I came across the problem of append data to specific cell to the existing file. I used openpyxl for that but they cant read xls file and I cant change my file to xlsx.
Do you have any ideas to solve this or how to quick aggregate data from different table and output them to specific cell?
from openpyxl import load_workbook;
book = load_workbook('C:\Template.xls')
sheet = load_workbook.active
sheet['A1'] = sum(Annual_data
book.save('C:\Template.xls')
It is like you have 100 tables with same format as below, and I want to sum all B2 from 100 tables and output it to another table with same format.