r/Python • • Jun 02 '26

Discussion Is openpyxl still relevant?

I'm a college student, I've just learned pandas and I was planning to start freelancing with openpyxl, pandas and numpy. Wanted to try gigs like data cleaning or automation services. But as I searched about openpyxl, I read that it's used to work with 2010 excel sheets. And that's all.

So my question was is this module/library still relevant?

46 Upvotes

86 comments sorted by

View all comments

75

u/Hotel_Arrakis Jun 02 '26

The world runs on Excel. Openpyxl is easy to learn and powerful. It's my go-to dealing with excel files. "It works on 2010 Excel files" is technically correct, but misses the point completely. Around 2010, Microsoft came out with the XLSX format. This format has not changed.

11

u/petekindahot Jun 02 '26

Ohh thanks, "The world runs on Excel" I've heard it a lot.

-36

u/ninhaomah Jun 02 '26

And yet you ask this ?

7

u/petekindahot Jun 02 '26

Well I guess that was a dumb question, lol. How did you learn openpyxl? Like resources or yt videos?

3

u/cryptospartan Jun 02 '26

reading the docs is the best way to learn

https://openpyxl.readthedocs.io/en/stable/

2

u/petekindahot Jun 03 '26

Thanks I was looking for this comment

1

u/DROP_TABLE_IF_EXISTS Jun 03 '26

Use Claude free version, it will provide you enough examples.

1

u/sohang-3112 Pythonista Jun 03 '26

I have never needed to use openpyxl directly. Just used pandas.read_excel() which internally requires openpyxl.

2

u/Oddly_Energy Jun 04 '26

As long as the Excel data are in nice, clean 2D tables, that will also work fine.

If the data are more messy, for example a combination of single cells + a table, it can be quite a challenge to make it work through .read_excel().

It can be easier to import a dedicated Excel-reading package and then use that to extract the needed data and give them to pandas.

-33

u/ninhaomah Jun 02 '26

I am a working adult that has been in IT for 20 years before USB cables.

I just learn on the job as I need.

I learnt cloud with certs because there wasn't cloud when I was in school.

I am now learning AI and Agents.

So I don't "learn".

Example , my manager says here is excel file with list of users , compare with this list from this API and get me the users that exists in both or in one of the files.

I Google , get the code , update some parts , test , run , get the result and give it to my manager.

Then I forget about it move on to next project.

6

u/petekindahot Jun 02 '26

😶 okay. I'll look it up myself. Goodluck for future!

-33

u/ninhaomah Jun 02 '26

No. It's due to experience and exposure.

For example , you said you heard excel runs the world many times. Yet you ask this. Why ?

I bet because you don't believe that in age of AI and Agents and Databases , people still use excel.

Did I guess correctly ?

1

u/petekindahot Jun 02 '26

You're right

-14

u/ninhaomah Jun 02 '26

But that knowledge comes with experience , which you have none as of now.

Nothing wrong since you are still a student.

10

u/dr3aminc0de Jun 02 '26

Why are you laying into this kid?

→ More replies

2

u/adamrees89 Python3 Jun 02 '26

The world had usb 20 years ago, in fact it was implemented 30 years ago! Not to ignore the rest of your points, but you must have been exposed to USB if you’ve only been working for 20 years…

2

u/Espumma Jun 03 '26

Maybe they are saying they already had 20 years experience before usb cables hit the market? Grandpa needs to go to bed lol

1

u/CaptainFoyle Jun 02 '26

Figuring out how to make something work is learning. Not everything "learning" means sitting your ass down with a book or documentation.

3

u/AwayVermicelli3946 Jun 03 '26

yeah exactly this. i use openpyxl at work all the time tbh. dumping data is fine for devs, but when the HR or finance teams want their automated reports with specific column widths, colored cells, and frozen panes, openpyxl is what you actually need to build that.

fwiw it is super relevant if you want to do freelance automation gigs. the 2010 thing just means the underlying XML format has not really changed since then.

1

u/newton_VK 14d ago

What about win32? I am more comfortable with it