Hi:
I have numerous cells that have to be 18 characters in length. Each cell has characters that currently could be 8 in one cell and 12 in another. Is there a forumla that I can add 0's in front so that in total the cell is 18 characters long?
Hi:
I have numerous cells that have to be 18 characters in length. Each cell has characters that currently could be 8 in one cell and 12 in another. Is there a forumla that I can add 0's in front so that in total the cell is 18 characters long?
Try:
=TEXT(A1,REPT(0,18))
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
That worked and thanks for the quick response
If the cell is a number, NBVC's answer will work. If it's a string, try
=REPT("0", 18-LEN(A1))&A1
ChemistB
My 2?
substitute commas with semi-colons if your region settings requires
Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)
Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks