Hi,
I need an formula that will be something like 'If cell is < 7 digits add 0's in front of number'
Right now in cell - after formula should be:
123456 - 0123456
1234567 - 1234567
123456 - 0123456
12345678 - 12345678
Can someone please help me?
Hi,
I need an formula that will be something like 'If cell is < 7 digits add 0's in front of number'
Right now in cell - after formula should be:
123456 - 0123456
1234567 - 1234567
123456 - 0123456
12345678 - 12345678
Can someone please help me?
use
=TEXT(A1,"0000000")
Life's a spreadsheet, Excel!
Say thanks, Click *
Hi and welcome to the forum
If you dont want to add any other formulas or columns, you could use a custom format to force the leading zero
highlight the range/right-click/format/number/custom enter 7 zeros
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
=TEXT(A1,"0000000") worked great!
Thanks!
Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
Thanks.
Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks