+ Reply to Thread
Results 1 to 3 of 3

Thread: formula to enter numbers after a string of zeros

  1. #1
    Registered User
    Join Date
    11-09-2011
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    2

    formula to enter numbers after a string of zeros

    I am in the process of trying to write a formula that enters in a store number into a string of 0's. There should always be 8 digits at the end of the hostname.

    Ex. store number = 111
    hostname should look like wsw2-00000111

    Ex. store number = 2222
    hostname should look like wsw2-00002222

    Ex. store number = 33333
    hostname should look like wsw2-00033333

    My attempt failed- =IF(LEN(A3)=3,"wsw2-00000XXX",=IF(LEN(A3)=4,"wsw2-0000XXXX",IF(LEN(A3)=5,"wsw2-000XXXXX"

    Any help would GREATLY appreciated!

  2. #2
    Extremely Helpful member
    Join Date
    12-23-2006
    Location
    Belgium
    MS-Off Ver
    XL2003
    Posts
    6,127

    Re: formula to enter numbers after a string of zeros

    Perhaps ="wsw2-"&TEXT(A1,"00000000")
    Quoting entire posts clutters the forum and makes threads hard to read !

    If you are pleased with a member's answer then use the Star icon to rate it

    Click here to see forum rules

  3. #3
    Registered User
    Join Date
    11-09-2011
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: formula to enter numbers after a string of zeros

    Thanks! You're a lifesaver!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0