Excel - The Easiest Way to Add Leading Zeroes to Employee IDs | Custom Formatting - Episode 397

273 views · Published 12 October 2009 · 3:12 · Indexed 20 September 2026

Channel: MrExcel.com · 2009 · Education

Watch on YouTube

Microsoft Excel Tutorial: The Easiest Way to Add Leading Zeroes to Employee IDs | Custom Formatting.

Welcome back to the MrExcel netcast! In this video, we'll be discussing a common issue that many Excel users face - creating employee IDs with leading zeroes. Last week, we had a call-in question from Christian, who was struggling with this problem. We discussed using the zip-code format, but quickly realized that it wouldn't work for IDs with different lengths. Little did I know, there was a much simpler solution that I completely overlooked.

While I was on my trip, I received numerous emails from viewers pointing out my mistake and showing me a much easier way to handle this issue. I want to give a special shoutout to Chad, Derek, Jeffrey, and many others who took the time to share their knowledge with me. Thanks to their help, I can now share this valuable tip with all of you.

So, what's the solution? It's actually quite simple. We can use the zip-code format, but instead of using the default 5-digit code, we can customize it to fit our needs. By going into the Format Cells dialog and choosing the Custom category, we can specify the number of leading zeroes we want. This works for IDs with up to 15 digits, making it a versatile solution for any length of employee ID.

But that's not all - the Custom category can be used in many other situations as well. For example, if you want to display a decimal as a fraction, you can use the Fraction option and then customize it to your desired format. This is especially useful for those of us in Akron, Ohio, where we still talk about 32nds in the tire industry. By using the Custom category, we can easily round decimals to the nearest 32nd of an inch. So, thank you to everyone who reached out and shared this valuable tip with me. I hope this helps you in your Excel endeavors. Don't forget to tune in tomorrow for another Excel 2007 trick!

Buy Bill Jelen's latest Excel book: https://www.mrexcel.com/products/latest/

You can help my channel by clicking Like or commenting below: https://www.mrexcel.com/like-mrexcel-on-youtube/


Table of Contents:
(00:00) Introduction
(00:19) Question from Christian about employee IDs
(00:36) Realization of mistake and receiving feedback
(00:50) Explanation of better method for handling leading zeroes
(01:06) Using zip-code field for leading zeroes
(01:24) Customizing the format for different number of leading zeroes
(01:56) Modifying built-in formats for fractions
(02:37) Conclusion and thanks to callers
(02:51) Clicking Like really helps the algorithm

#excel #microsoft #microsoftexcel #exceltutorial #exceltips #exceltricks #excelmvp #freeclass #freecourse #freeclasses #excelclasses #microsoftmvp #walkthrough #evergreen #spreadsheetskills #analytics #analysis #dataanalysis #dataanalytics #mrexcel #spreadsheets #spreadsheet #excelhelp #accounting #tutorial


This video answers these common search terms:
Adding leading zeroes to employee IDs in Excel
Changing number format in Excel with leading zeroes
Custom formatting in Excel for leading zeroes
Displaying fractions in Excel with custom formatting
Excel trick for handling employee IDs with leading zeroes
Excel tutorial on formatting cells in Excel
Excel tutorial on modifying built-in formats
Formatting cells in Excel using Format Cells dialog
How to add leading zeroes in Excel
Rounding numbers to nearest fraction in Excel
Using zip code format in Excel for leading zeroes
YouTube video on creating employee IDs with leading zeroes


Join the MrExcel Message Board discussion about this video at https://www.mrexcel.com/board/threads/1152684/


A much better way of showing leading zeroes. After episode 392, several listeners called in with a better better way to show leading zeroes for any number of characters. Episode 397 shows you how.

This blog is the video podcast companion to the book, Learn Excel from MrExcel. Download a new two minute video every workday to learn one of the 277 tips from the book!

More from this channel