r/learnpython • • Oct 09 '26

Spreadsheet automation idea

I'm developing a spreadsheet automation project capable of merging multiple spreadsheets into one and automatically performing calculations, among other things. One of the functionalities would be, for example, allowing someone to gather all the spreadsheets from those months into a single spreadsheet throughout an entire year, obtaining an overall result for the year. This could work based on week, day, month, or some other parameter. I have some doubts, but the project seems promising. I'm using the openpyxl library and, to create the website or application (I'm still undecided), I will use HTML, CSS, and Flask.

1 Upvotes

6 comments sorted by

View all comments

1

u/Professional-Run3614 Oct 13 '26

I’d build a separate mapping layer between file ingestion and the final calculations. For example, if one spreadsheet has Revenue, another has Sales Amount, and a third has Total Sales, the layer should map them to a common field based on column names, data types and sample values.

Assign a confidence score to each mapping: above 95%, auto-map; 70–95%, ask for confirmation; below 70%, leave it unmapped. These thresholds can be tuned based on testing.

Store confirmed mappings as reusable templates for future uploads from the same source. That way, you’re not just merging spreadsheets; you’re building a reusable data normalization layer that can scale to different reporting formats.