• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Need a formula to add zeros before the number

KNMSRK

New Member
Hi,

I have data in number format but not in same length like
23
234
23456

I need a formula to add zeros before the number to make the length of number to 9 digits.

Please advice
 

Attachments

  • Adding zeros before number.xls
    25 KB · Views: 3
I have tried writing the formula... and it is giving required output.. Please find the attached file and advice that we can write the formula in any other way
 

Attachments

  • Adding zeros before number.xls
    25.5 KB · Views: 4
Hi Ali

I have tried this and it is giving required output
=RIGHT("0000000"&A1,9)
data is like below
23
234
2345
23456

formula is adding zero's before the number to make the length of the number to 9

ThnQ
 
You could use custom formatting as well.. Go to custom formatting and enter 9 zeros in General field
64764
 
Back
Top