Leading Zeros To Complete 3 Digit Number

jgthtrotih

Well-known Member
Joined
Aug 28, 2009
Messages
568
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Hey All

i need a little help with leading zeros in excel i want a complete 3 digit number as shown blow (first chart) i used the " ' " mark to get the zeros in..i want the second chart to look the same with the zeros...

Chart 1: Examples and what I'm trying to get Achieve.
Chart 2: My actual data set.
Excel Workbook
EF
28RANDBETWEEN("000",999)
29
30
31356356
32454454
3348048
34367367
35785785
3646046
37856856
38986986
3946046
4085085
418008
Sheet


Excel Workbook
EFGHIJKLM
784019348-401-934
8
945058716450-587-16
Sheet14


Have Any Questions Let Me Know!

Using Excel 2003!

Thanks!
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
Try

=TEXT(RANDBETWEEN(0,999),"000")


Just remember that these are no longer numbers, they are "Numbers Stored As Text"
 

Markis

New Member
Joined
Jul 29, 2010
Messages
7
Simply highlight all the cells you would like this to apply to. Right click and go to "Format Cells". It should open the Number tab, and then go down to custom. In the field for "Type:" simply place "000" without the brackets.
 
Last edited:

jgthtrotih

Well-known Member
Joined
Aug 28, 2009
Messages
568
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Jonmo1,

Thanks! that worked perfectly..Nice Blue Suit When You Start Rocking That?

Markis,

Thanks! Another Great Solution.

Thanks!
 

prabby25101981

Active Member
Joined
Jul 28, 2010
Messages
348

ADVERTISEMENT

This might also work -

=RIGHT(CONCATENATE("000",RANDBETWEEN(0,999)),3)
 

jgthtrotih

Well-known Member
Joined
Aug 28, 2009
Messages
568
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
prabby25101981,

Another Perfect Solution!

Thanks!
 

jgthtrotih

Well-known Member
Joined
Aug 28, 2009
Messages
568
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile

ADVERTISEMENT

Continuation of Question..As Requested By Smitty:

I need help making a list.

Details:

When the Randbetween Function comes up with the 3 sets of numbers than i merge the sets together to get the "Number set" in cell K7

I want it to make a list of "Number Sets" created..if a duplicate "Number Set" is present i don't want it included in the list.

Please Ask Questions If Need Be!

Thanks!
 

jgthtrotih

Well-known Member
Joined
Aug 28, 2009
Messages
568
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Bump!

Please Read Post #7!

Any Help Is Greatly Appreciated!

Thanks!
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,168,108
Messages
5,857,435
Members
431,879
Latest member
KiwDaWabbit

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top