douwe12345
douwe12345

Reputation: 65

Excel - Add trailing zero's

In excel I have all sort of values in a column,

1      100
12     120
123    123
03     030
133    133

and I want to add zero's at the end till it reaches 3 digits.

Cheers

Upvotes: 3

Views: 11125

Answers (1)

Scott Craner
Scott Craner

Reputation: 152660

Try this:

=A1&REPT("0",3-LEN(A1))

The Rept() repeats a character a certain number of times. The 3-LEN(A1) figures out how many times to repeat.

enter image description here

Upvotes: 5

Related Questions