+ Reply to Thread
Results 1 to 4 of 4

Adding 0 as prefix for number when number is quoted

  1. #1
    Registered User
    Join Date
    01-10-2011
    Location
    Bangalore, INDIA
    MS-Off Ver
    Excel 2003
    Posts
    39

    Adding 0 as prefix for number when number is quoted

    hi,

    I am facing a problem while putting 0 as prefix when the number is quoted in excel.

    I am folowing the steps as follows.

    a. Copied Zips to the excel column
    b. applied formulae ="'"&A1&"'" to put the values quoted
    c. When apply the above formulae the pefix '0' is removed and rest of the number only displayed

    i. 01001 is the zip
    ii. after applying the above formulae, it becomes like this 1001

    How to not miss the leading zero even after applying the formulae and putting them in quote.

    Thanks,
    VIJ

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,462

    Re: Adding 0 as prefix for number when number is quoted

    Maybe:

    =""""&TEXT(A1,"00000")&""""

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    01-10-2011
    Location
    Bangalore, INDIA
    MS-Off Ver
    Excel 2003
    Posts
    39

    Re: Adding 0 as prefix for number when number is quoted

    Thanks a ton. This solved my problem.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,462

    Re: Adding 0 as prefix for number when number is quoted

    You're welcome.

    If your problem is resolved, please mark the thread as SOLVED.

    To mark your thread solved do the following:
    - Go to the first post
    - Click edit
    - Click Advance
    - Just below the word "Title:" you will see a dropdown with the word No prefix.
    - Change to Solve
    - Click Save

+ 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