+ Reply to Thread
Results 1 to 3 of 3

Getting the text value of a number with a leading zero

  1. #1
    Registered User
    Join Date
    08-20-2010
    Location
    Rochester, NY
    MS-Off Ver
    Excel 2007
    Posts
    2

    Getting the text value of a number with a leading zero

    Hi there,
    I have a column of "auto-incremented" serials with a custom number format '00' which gives me the values 01, 02, ...,10,11, etc. What I want to do is to use the whole value (with the leading zero) in concatenation with other values. Using the cell address as a reference in the concatenation, I get the leading zero of the values 01-09 removed > 1-9 (as they are treated as numbers).

    So, how can I get the "text value" of the serial so that I can use it with the leading zero(s)?

    Thanks in advance for your help

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,578

    Re: Getting the text value of a number with a leading zero

    for example
    =TEXT(A1,"00")&B1
    Does that work for you?
    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

  3. #3
    Registered User
    Join Date
    08-20-2010
    Location
    Rochester, NY
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Getting the text value of a number with a leading zero

    Oh thank you very much, ChemistB. Exactly what I needed!

+ 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