+ Reply to Thread
Results 1 to 2 of 2

ZeroPadding Mixed Number, Text, Number Content in Cell

  1. #1
    Registered User
    Join Date
    06-29-2007
    Posts
    2

    ZeroPadding Mixed Number, Text, Number Content in Cell

    I have cells containing text such as 100P1, 10P1, 1P1, 100PB10, etc. I would like to pad the leading set of numbers to 3 places and the trailing set of numbers to 3 places by adding leading zeros where needed to each set of numeric characters. Note that the length of the text portion of the string can vary in length.

    Can anyone help me by providing a function to accomplish this, or is that beyond the scope of the forum?

    Thank you for any help that can be provided!

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Sbubendorf,

    Will the format always be nAn ? Where n is a number of 1 to 3 digits and A is one or alpha characters?

    Sincerely,
    Leith Ross

+ 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