# Leading Zeros To Complete 3 Digit Number

#### jgthtrotih

##### Well-known Member
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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Try

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

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

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:
Jonmo1,

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

Markis,

Thanks! Another Great Solution.

Thanks!

This might also work -

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

prabby25101981,

Another Perfect Solution!

Thanks!

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.

Thanks!

Bump!

Thanks!

Bump!

Thanks!

Bump!

Any Help Is Greatly Appreciated!

Thanks!

Replies
4
Views
632
Replies
2
Views
263
Replies
4
Views
363
Replies
0
Views
686
Replies
2
Views
482

1,217,328
Messages
6,135,917
Members
449,972
Latest member
Natejack

### 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.

### Which adblocker are you using?

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

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