Python in Excel: 1-minute Hacks You Can Use Today @LeilaGharani
Python in Excel: 1-minute Hacks You Can Use Today  @LeilaGharani
Uploaded June 2025 | Updated December 2026, 3 hours ago
3 Python in Excel hacks: fix messy dates, unpivot columns to rows and spot patterns fast.
πŸ“₯ Download the practice files: xelplus.com/python-in-excel-tricks/?utm_source=yt-video&utm_medium=vid-description&utm_campaign=download-python-hacks&utm_content=python-in-excel-tricks#download

πŸŽ“ Python in Excel for the Real World: xelplus.com/course/python-in-excel/?utm_source=yt-video&utm_medium=vid-description&utm_campaign=python-in-excel&utm_content=python-in-excel-tricks (500,000+ enrolled in our courses)

I show you three tasks that used to take me hours, each done in under a minute with Python in Excel. Fix dates that formatting and the YEAR function can't handle, unpivot columns into rows with pandas melt, and build a seaborn swarm plot to spot patterns.

You don't need to be a programmer. If you can write an IF function in Excel, you can do this.

βœ… Good to know:
Python in Excel needs a Microsoft 365 subscription and an internet connection. Python runs in the Microsoft Cloud.
Update: Python in Excel is now available for Microsoft 365 Business and Enterprise on Windows, Mac and the web. Family and Personal users have it in preview.
Dates like 03/04 can be read the wrong way round. For day-month dates, add dayfirst=True inside pd.to_datetime().

⏱️ Chapters:
00:00 3 Python in Excel hacks
00:25 Messy dates that formatting and YEAR can't fix
01:29 Fix messy dates with pd.to_datetime
02:39 Unpivot columns to rows with pd.melt
03:58 Rename the unpivoted columns
04:32 Make the unpivot dynamic (dropna and reset_index)
05:58 Spot patterns in your data
06:41 Build a swarm plot with seaborn
07:36 Compare groups with hue

🎬 Related videos:
🎬 Introducing Python in Excel: youtu.be/FbBXtqtRnWU
🎬 Python in Excel with external data: youtu.be/ije_fF8SWcw
🎬 Unpivot data with Power Query: youtu.be/JMrfbv2h7p8

➑️ Join this channel: youtube.com/channel/UCJtUOos_MwJa_Ewii-R3cJA/join

πŸ‘‰ Get one practical Excel tip each week in our newsletter: link.xelplus.com/yt-d-newsletter

🚩 Connect with us:
Instagram: instagram.com/lgharani
LinkedIn: linkedin.com/in/leilagharani

#excel #python #pythoninexcel
Python in Excel: 1-minute Hacks You Can Use TodayπŸ€” How to Create a Drop-Down List in ExcelHow Not to Get Promoted: 5 Habits That Hold You BackThe Excel Timeline chart youll actually keep using (free template included)This is ACTUALLY POSSIBLE with Power BI?! #shortsHighlight the Top 3 Bars in an Excel Chart AutomaticallyHow To Create these useful Power Bi Visuals that Excel LacksHow to NOT Get Promoted #shortsName Ranges Trick to Leave Funny Easter Eggs in Excel #shortsPaste Text ONLY - NEW Shortcut in Word #shortsWork hard and youll be noticedHow to Use TOCOL | TOROW Function in Excel #shorts
Leila Gharani |

Python in Excel: 1-minute Hacks You Can Use Today

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER