+ Reply to Thread
Results 1 to 3 of 3

Number Cells Deleting 0s

Hybrid View

  1. #1
    Registered User
    Join Date
    06-27-2014
    Location
    USA
    MS-Off Ver
    2013
    Posts
    4

    Number Cells Deleting 0s

    I need to store some numbers, all of which are prefixed by four or five zeros. When I format the cells as number, the zeros are erased. So, 0000012345 becomes 12345. The zeros are preserved when I store them as text, but I cannot do the functions that I need to do with the cells formatted as text.

    Does anyone know how I can preserve the zeros in number format?

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Number Cells Deleting 0s

    Helper column perhaps?

    =RIGHT("000000000"&A1,10)

    (That's nine zeroes in the formula)
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Number Cells Deleting 0s

    It is as simple as that...
    select all cells which you want to suffix by zeros..
    Right click and select format cells...
    click custom formats...
    then in the "type" tab...
    write as many zero you wish to suffix....


    Say thanks, Click *

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Deleting cells based on number of characters in a word
    By donaldc88 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-07-2012, 09:48 PM
  2. Deleting specified number of cells using If
    By jy2009 in forum Excel General
    Replies: 4
    Last Post: 03-29-2009, 05:45 PM
  3. Deleting Rows with Too Many of the Same Number
    By Losse in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-07-2006, 03:06 PM
  4. Macro For Deleting Cells Containing A Number
    By brazen234 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-15-2006, 05:35 PM
  5. [SOLVED] Deleting All Cells with Number formulas Ex. =2+3 not = A1+B2 - 0
    By Samshun in forum Excel General
    Replies: 4
    Last Post: 01-23-2005, 06:06 AM

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