+ Reply to Thread
Results 1 to 4 of 4

How to get leading 0's to work in formula?

  1. #1
    Registered User
    Join Date
    12-24-2009
    Location
    Tennesse, US
    MS-Off Ver
    Office 365
    Posts
    28

    How to get leading 0's to work in formula?

    I have a table with numbers in it no larger than 15. I'm doing a VLOOKUP on the table to pull a number that I use in a formula that does a CONCATENATE"SERVER #" plus the VLOOKUP vlaue. I then sort the colum in order by these server #'s. How can I get it to convert or read these numbers in as a forced 2 digit number so after the sort it doesn't list 1,10,11,12,13,14,15,2,3,4,5,6,7,8,9 as that's not really doing what I'm trying to pull off.

  2. #2
    Registered User
    Join Date
    06-30-2009
    Location
    Southern California, Earth
    MS-Off Ver
    Excel 2010
    Posts
    72

    Re: How to get leading 0's to work in formula?

    Try this:

    Please Login or Register  to view this content.
    Last edited by hoffey; 03-04-2010 at 01:30 PM.

  3. #3
    Registered User
    Join Date
    03-02-2010
    Location
    London, UK
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: How to get leading 0's to work in formula?

    Not sure I understood what you're trying to achieve but...

    Try to custom format the numbers as 0#. This would force the leading 0 followed by the number and it should work with sorting this the number column which would in turn sort the desired text column.

    Hope this helps

  4. #4
    Registered User
    Join Date
    12-24-2009
    Location
    Tennesse, US
    MS-Off Ver
    Office 365
    Posts
    28

    Re: How to get leading 0's to work in formula?

    Quote Originally Posted by hoffey View Post
    Try this:

    Please Login or Register  to view this content.
    Didn't know about that one. Also found this, will also use I4 for example.

    =CONCATENATE("server # ", TEXT(I4,"00"))


    Thanks for the help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1