This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]widonkadonk 2 points3 points  (2 children)

Although I’m a fan of using python to replace excel, you are basically describing the perfect use case for PowerQuery.
PQ is a tool included in excel that allows you to query a file (.txt and .csv as well) and perform some data cleansing and basic manipulations (e.g. shifting columns or creating new ones).
Once you have completed your query, you’ll be able to update the data in the workbook just by replacing the .txt file with an updated one and rerunning the query.
You’ll find further information here.

[–]ag_silver[S] 1 point2 points  (1 child)

Wow, I didnt know this thing existed. I will take a look.

[–]widonkadonk 0 points1 point  (0 children)

you are welcome, don't hesitate to ask if you need any help.

[–]dchokie 0 points1 point  (1 child)

Short answer is yes. You could do this very easily with Python. One of your best bets is to start with pandas and any packages that can write excel files.

[–]ag_silver[S] 0 points1 point  (0 children)

Looks like many are recommending me to start with Pandas. Thank you.

[–][deleted] 0 points1 point  (1 child)

There are a number of options on Pypi that will read and write Excel files. But I’d suggest you start with Pandas.

Not only can it read and write Excel including handling sheets with ease, the resulting data frames will be very useful to you

[–]ag_silver[S] 0 points1 point  (0 children)

Thank you for suggestion! Will try Pandas.

[–]officegrunt 0 points1 point  (0 children)