Python is Finally in Excel! 🐍


3 things we’re covering today:

  • Microsoft’s huge Python update
  • A new way to connect Power BI to Excel
  • What I learned from When the Body Says No.

🐍 Python is Coming to Excel!!!

video preview

Microsoft just dropped a bombshell: Python code, yes, real Python, can soon be your partner-in-crime within Excel spreadsheets.

Just summon the new PY() function, and voilà! You've got Python's superpowers at your fingertips. Here’s my video all about it.

This feature is currently free to test in Microsoft 365 Insiders - you’ll find Python in the Formulas tab in the Excel Ribbon.

You get a few Python libraries already ready for you to use: pandas, matplotlib, seaborn, statsmodels and NumPy. You can import other libraries as needed.

And keep in mind:

  1. You don’t need any local installation of Python. Microsoft has partnered with Anaconda so Python runs securely on the Microsoft Cloud.
  2. You can use Python code on data that’s larger than Excel rows. You just need to connect to the data via Power Query and then load to Python and work with it. If you decide to spill the results to the grid, then it needs to fit on the sheet and nothing should be blocking it, otherwise you’ll get #SPILL error.
  3. Microsoft hasn’t officially stated whether this feature will be free or not in the future. They’ve just stated that it is free to use in Insiders (Beta) version of Excel - so we don’t really know what they’re planning there.

Now, how can you use Python in Excel in practical terms?

A few ideas:

  • Design charts that were difficult if not impossible to create in Excel.
  • Find and replace text based on a pattern - here the Regular Expression library is amazing!
  • Unpivot and perform complex queries on data.

Exciting times ahead!

🤠 The Active Cell - An Excel Training Camp in Vegas!

This year's Excel & Financial Modeling Training Camp called “The Active Cell” is happening in Las Vegas, December 7th - 9th.

If you happen to be in the area or fancy a trip to Vegas, you’ll want to attend this event. It’ll be 3 days filled with insights, inspiration, and networking opportunities with Excel enthusiasts from around the globe 🌎

Unfortunately I can't be there, but 25 Excel expert colleagues like Jon Acampora, Oz Du Soleil and Diarmuid (the LeBron James of Excel) will be speaking at the event.

Secure your place and book your tickets here, using the code LEILA10 for 10% off.

🤓 Other Geeky News

📈 PowerBI - New ways to create tables in Excel connected to Power BI
Microsoft are introducing an exciting new feature that makes it easier to add PowerBI data straight to your Excel workbook! We’ve been waiting for this a long time.

Here's how to get started:

  • Insert a Connected Table without leaving Excel by following these steps: Data Ribbon → From Power Platform → From Power BI (Microsoft)
  • This launches the Power BI Datasets side pane in Excel. From there, click Insert Table to create a connected Power BI table directly in Excel.

You can then choose from a range of options to select your fields and set up filters.

📊 Excel - A New Look for the Formula Bar

Microsoft have introduced monospaced font for the Formula Bar, to improve readability, error detection, and cross-platform consistency, which is great.

Here’s how it looks in practice:

🧭 Edge - Microsoft Edge for Business Now Available

Microsoft has released a work-focused version of its Edge browser. This lets users switch between dedicated work and personal browser windows (with separate caches and storage locations), to improve security and privacy. It's available on various devices and automatically applies to those using an Entra ID.

No more crossover between work and private life!

💚 My Favorite Things

📖 Book - When the Body Says No by Gabor Mate.

I love my job and love what I do. I talked about the relief of leaving corporate and starting my own business in this article.

But I still fall into the trap of feeling that I need to do more. That whatever I’m doing isn’t enough.

When the Body Says No made me realize how important it is to pay attention to my emotional state. It helped me understand myself better and improve my overall well being. Thank you to Veronika on LinkedIn for the recommendation. There are lots of great recommendations in the comments section of this post, which I’m working through.

🚀 Power Stories

Amazing work on completing our Fast Track to Power BI course Valentina! And thank you for the great review 💚

Got a success story about using your XelPlus skills? I’d love to hear it! Hit reply to share the details, and inspire other students 😇

See you next week,

Leila

Want more?

▶️ Subscribe on YouTube

🖇️ Follow me on LinkedIn

🥇 Join 400,000+ students in our courses

📣 Want to sponsor XelPlus Weekly? Get in touch here.

This newsletter contains affiliate links, which give us a small commission on any purchase made at no cost to you. This helps us run XelPlus Weekly and bring you updates like this. Thank you for your support!

Leila Gharani - XelPlus

XelPlus is a leading online education company, providing training courses for Excel, Power BI, Finance, and Google Sheets. XelPlus’ bestselling courses are popular among financial analysts, CFO’s, and business owners. Technology is changing fast. We help our members turn confusion into confidence with every skill learnt.

Read more from Leila Gharani - XelPlus

Do you hate reading instructions? Frustrated when teammates ask questions they could easily find the answer to? Well, then Copilot in OneDrive might be just what you need. Also in Between the Sheets today: Python Editor in Excel for user-friendly coding Excel compatibility (using the latest functions in shared workbooks) Practice creating interactive dashboards using pivot tables 🎬 Copilot in OneDrive Recently, I shared a video about the potential of Copilot in Excel. One cool feature was the...

It starts small. That mysterious icon you’ve always ignored? You finally click it. Boom! A whole new world opens up. Or maybe you jump into an Excel course you thought was “too techy.” Next thing you know, you’re spotting features that make your work faster and easier. That’s how it started for Maria. Maria took our Master Excel Power Query course. She didn’t overthink it. She watched the lessons, followed along, and started clicking, dragging and building. Right away. Before long, she built...

screenshot of YouTube comments

My video on Copilot in Excel sparked a lively discussion in the comments. The concerns that kept popping up were: "is it going to make me redundant?" and "is it still worth learning Excel?" My take: No and yes (especially if you want the first answer to be no). AI tools like Copilot lower the barrier to entry. For Excel newbies, it's easier to describe what they want to happen than knowing where to click. But Copilot doesn't just do stuff for you. It can also be a learning tool. Ask it to...