The table only keeps getting wider


What do you do when your data goes wide?

Picture a sales table with one row per rep, but then Sales_Jan, Units_Jan, Sales_Feb, Units_Feb, and so on, all the way to December. It just keeps growing wider with every month you add.

Try to filter by month, or build a pivot table around it, and you're stuck. Month isn't a value in this table. It's baked into the column headers.

You need a way to turn the wide into long so that it's ready for analysis. And there's a Python function that does exactly that.

It turns all those columns into three clean ones: Month, Sales, Units. It's a one-time set-up.

As you add more month columns, they pull through to the long version automatically.

👉 Watch it happen in under two minutes

🤓 Geeky News

🐍 Copilot in Excel can do Python again

When "Agent Mode" replaced the previous Copilot experience in Excel, it also broke Python. Not Python in Excel - you could still write your code from scratch. But if you asked Copilot for help, you got useless, static output.

Finally, it's fixed, via Copilot skills. You'll need to enable it first.

In Copilot pane, go to Settings (...) > Manage skills > Formulas and toggle on python-in-excel.

To use it, type @python-in-excel in the prompt box.

It can generate Python code directly in your Excel cells, and it's dynamic. The results update with your data.

It might not write the cleanest or most efficient code, unless you're explicit in your prompts. You need to know what to ask for. Still, it's a step (back) in the right direction.

Available now in the Beta Channel for Excel Insiders with a Copilot license.

Other new Copilot in Excel skills include chart design and change history.

In other Copilot-related news, they've changed the logo again and moved it from the ribbon to the side of the ribbon (if you're not using the button floating over your sheet in the bottom corner.)

🏷️ Finally! Name your tables in Excel as you create them

A long-awaited feature arrived in Insiders Beta.

Now, when you're creating an official Excel table from your data (Ctrl + T), you'll be prompted to give it a proper name.

No more Table1, Table2, Table56... There's no excuse anymore.

Now, if you could also take away the default table style at the same time...

👏 The person the COOs can't prove wrong

Srinivasan works in HR in the hotel industry. No tech background. No data analysis training. But still expected to know his numbers when presenting to the executives.

After completing Python in Excel for the Real World, here's what he shared:

Srinivasan S.

HR Analyst

This course has given me the muscle to confidently stand up and talk in meetings that are filled with COOs, CEOs, and finance heads who can't prove me wrong when I give my presentation and opinion when it comes to handling data with accuracy.

Our industry and business are all about forecasting and reacting to future needs, as rooms are perishable to sell, and the right price has to be determined by knowing the future and also detecting any unusual expenses. Now I am the go-to person for all this, and I believe my organization might create a data analyst position for me, and I can be leading a department all on my own.

Same industry. Different seat at the table.

We're rooting for that promotion, Srinivasan. 🤞

See you next week,

Leila

When you're ready, here are some ways we can help:

🎓 Join 500,000+ members in our courses

📺 Get free tutorials on YouTube

👥 Train your whole team with our courses. Team pricing and progress tracking - reply for details.


This newsletter contains affiliate links, which give us a small commission at no cost to you. 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

Budget versus actual is one of those reports that follows you around if you're in Controlling, FP&A or creating any type of management report for your company. I built versions of it for years. The numbers were never the difficult part. Putting it together so it actually communicated something was the tricky bit. Management always wants to see things from different angles, so it had to work by month and by region. How could I fit it all on one page? Actuals, plan, previous year, variances,...

When I worked in finance, the reports I had to build almost always needed data from different tables. Sales figures sitting in one. Product details in another. And the report needed both. So I did what most people still do. I used VLOOKUP to pull everything into the sales table until it turned into one mega giant table. Ok, these days you'd reach for XLOOKUP, but it's still the same move. It worked, but it was slower and more work than it needed to be. I had no clue there was a cleaner way. I...

When was the last time you used TOCOL in Excel? If the answer is never, I'd say you're in good company. The function's been in Excel for a while now but almost no one reaches for it. It can be super helpful though for everyday problems. For example, you've got people working across several projects, each project in its own column. Some names show up twice, some three times. Someone needs one clean list of everyone involved. Most people copy, paste, copy, paste, then remove duplicates and...