Uploaded December 2016 | Updated November 2026, 1 hour ago
(Download the workbook here:
datascopic.net/leading-zeros)
Here's another video with warning about some things that native Excel handles easier than Get & Transform (Power Query) does, but if we have to do this in Get & Transform, here's how.
Challenge: handling leading zeros.
Excel is known for clipping off leading zeroes. If you need a the month of March to be: 03
Excel will turn it into: 3
Or, account numbers that are always 6 digits,
Excel will turn 002251
into 2251
This video shows how to force native Excel to recognize leading zeros. Also, the M-Code use of
Text.PadStart
to force Get & Transform to honor leading zeros.
You also see the insertion of steps in a Get and Transform Query, problems with text versus number formatting. Oh! And a few pictures from a recent trip to New York City.
Please, enjoy. This is a 7.5-minute adventure.
My book: Guerrilla Data Analysis 2nd Edition
amazon.com/Guerrilla-Analysis-Using-Microsoft-Excel/dp/1615470336
My blog: datascopic.net/blog-2-2
(Download the workbook here:
datascopic.net/leading-zeros)
Here's another video with warning about some things that native Excel handles easier than Get & Transform (Power Query) does, but if we have to do this in Get & Transform, here's how.
Challenge: handling leading zeros.
Excel is known for clipping off leading zeroes. If you need a the month of March to be: 03
Excel will turn it into: 3
Or, account numbers that are always 6 digits,
Excel will turn 002251
into 2251
This video shows how to force native Excel to recognize leading zeros. Also, the M-Code use of
Text.PadStart
to force Get & Transform to honor leading zeros.
You also see the insertion of steps in a Get and Transform Query, problems with text versus number formatting. Oh! And a few pictures from a recent trip to New York City.
Please, enjoy. This is a 7.5-minute adventure.
My book: Guerrilla Data Analysis 2nd Edition
amazon.com/Guerrilla-Analysis-Using-Microsoft-Excel/dp/1615470336
My blog: datascopic.net/blog-2-2




![Excel NETWORKDAYS part 3: calculating custom weekends with Power Query
In the previous 2 videos weve looked at calculating NETWORKDAYS and days off that arent just Saturday and Sunday. Thanks for Bill Szysz, Wayne Edmondson, XLarium and others for leading a lively discussion and offering really cool formula-based solutions. (The conversation is on this video: https://youtu.be/njC1AvEU3fg)
In this video I show you something I learned from Wayne and Bill. You can create your custom weekends by putting together a string of 1s and 0s that represent each weekday.
1 = day off
0 = workday
The string starts with Monday.
If you work (or go to school) only on Tuesdays and Wednesdays, your string would look like this:
1010111
Thus:
=NETWORKDAYS.INTL(Start_Date, End_Date, 1010111, [Holidays])
Youll also see Power Query, replace values and merge columns in order to simplify calculating net work days in Excel.
#NETWORKDAYS
#CalculateWorkdays
#ExcelOnFire
For a list of my Excel courses at Lynda/LinkedIn:
https://www.linkedin.com/learning/instructors/oz-du-soleil
There are courses on Power Query, Good spreadsheet habits, and a weekly Excel challenge that comes out every Friday.
Website: http://ozdusoleil.com
My book: Guerrilla Data Analysis 2nd Edition
http://www.amazon.com/Guerrilla-Analysis-Using-Microsoft-Excel/dp/1615470336
My old blog: http://datascopic.net/blog-2-2 Excel NETWORKDAYS part 3: calculating custom weekends with Power Query](https://i.ytimg.com/vi/Oew3fwB9zi4/mqdefault.jpg)





