+ Reply to Thread
Results 1 to 4 of 4

Maintain leading zeroes without re-typing anything

  1. #1
    Registered User
    Join Date
    02-21-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    29

    Maintain leading zeroes without re-typing anything

    I have a column of numbers, mostly single digit, that I need to turn onto all 3 digit numbers with leading zeroes (i.e. D1 contains "4" and I need E1 to contain "004", D2 has 20 so E2 should have 020). I know I can just format the cells as text and type in "004" and it will stay but I don't want to have to re-type everything. I highlighted all of my D column (with the single digit numbers) and went to format cells -> custom -> and typed in 000 to make everything 3 digits with zeroes but that leaves the cell format as "Special" and I need it to be "text" format. I feel like i'm totally missing something obvious here.

    Thanks in advance

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,101

    Re: Maintain leading zeroes without re-typing anything

    In E1
    =TEXT(D1,"000")

  3. #3
    Registered User
    Join Date
    02-21-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Maintain leading zeroes without re-typing anything

    Quote Originally Posted by Fluff13 View Post
    In E1
    =TEXT(D1,"000")
    Worked perfectly, I added an extra step in pasting values into a separate column and formatting that as text but thanks for pointing me in the right direction

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,101

    Re: Maintain leading zeroes without re-typing anything

    Glad to help & thanks for the feedback

+ 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. Add zeroes within dates (NOT leading zeroes)
    By anthony19 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-13-2012, 04:08 PM
  2. Format-leading zeroes and formula
    By prasjohn in forum Excel General
    Replies: 1
    Last Post: 02-13-2010, 10:43 AM
  3. Leading Zeroes & XML
    By jlhart76 in forum Excel General
    Replies: 4
    Last Post: 06-03-2009, 08:23 PM
  4. Leading Zeroes In Decimals
    By johnph77 in forum Excel General
    Replies: 3
    Last Post: 05-15-2009, 10:04 AM
  5. Keeping Leading Zeroes
    By EmmaG1959 in forum Excel General
    Replies: 2
    Last Post: 04-09-2008, 05:39 AM
  6. [SOLVED] How to preserve leading zeroes
    By pbrase in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-08-2005, 02:10 PM
  7. [SOLVED] Leading Zeroes
    By Ken in forum Excel General
    Replies: 1
    Last Post: 10-07-2005, 11:05 AM
  8. [SOLVED] No decimals and leading zeroes
    By gcotterl in forum Excel General
    Replies: 2
    Last Post: 04-18-2005, 02: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