+ Reply to Thread
Results 1 to 6 of 6

Adding leading Zero to single digit HELP

  1. #1
    Registered User
    Join Date
    07-22-2008
    Location
    WV
    Posts
    70

    Adding leading Zero to single digit HELP

    I am trying to make a column of numbers have a leading zero on all single digit numbers. (01 instead of 1)

    I use formula =IF(A1<10,"0")&A1

    Which works, but leaves FALSE in front of all numbers 10 and higher. I’m sure there is a way to avoid getting FALSE, but I tried it the novice way.

    I copied the column , paste only values in new column and Find and Replace all occurrences of FALSE with nothing. The find and replace said it replaced 1700 values, but it did no such thing.

    I also tried finding and replacing the single digits from original column i.e find 1 replace with 01 matching entire cell contents. Again it said it replaced X number of values, but it didn’t actually replace, they all still say 1. I have tried changing my format of column to general, text, number, etc. Still no replace even though it says it did. Find and Replace works on other columns, just not adding zero to number even if column is formatted as text or general instead of number.

    The native format was .xls, but have also saved it as .xlsx with no luck. Using Excel 2010.

    Either helping me complete formula so that no FALSE is returned or using Find and Replace would help. Thanks.

  2. #2
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Adding leading Zero to single digit HELP

    This formula won't work. Just set the format (custom) of the cell(s) to 00.
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: Adding leading Zero to single digit HELP

    do you want to keep the value as a number or are you adding the 0 as text

    if a number
    choose the range
    right click
    format
    custom format
    enter
    00

    now you should get
    01
    02
    03

    etc
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Adding leading Zero to single digit HELP

    Please Login or Register  to view this content.
    Or try this
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  5. #5
    Registered User
    Join Date
    01-08-2014
    Location
    Missouri
    MS-Off Ver
    365
    Posts
    87

    Re: Adding leading Zero to single digit HELP

    I propose

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    07-22-2008
    Location
    WV
    Posts
    70

    Re: Adding leading Zero to single digit HELP

    Quote Originally Posted by popipipo View Post
    Please Login or Register  to view this content.
    Or try this
    I think this is the best solution to my problem. Thanks!

+ 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. Color a single digit in a mult-digit number cell
    By Phyllis in forum Excel General
    Replies: 8
    Last Post: 09-30-2022, 04:22 PM
  2. [SOLVED] How to subtract single cells with double digits into a single digit of a single cell.
    By greenfox74 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-11-2021, 02:05 AM
  3. [SOLVED] Changing 5-digit Zip to 3-digit zip without losing leading zeros
    By Jennifer C in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-05-2014, 09:26 AM
  4. [SOLVED] LOTTERY FILTER#4, Find if 1 Digit Sum of 2 Digit or 3 Digit, Single Cell w/ dash
    By david gonzalez in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-08-2014, 12:57 AM
  5. Adding text values and date values to get a single-digit answer
    By e4excel in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 11-24-2008, 12:53 AM
  6. [SOLVED] Adding Alphabets having a value to form a single digit.
    By all4excel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-26-2008, 12:07 AM
  7. Adding 5 numbers to a single 3 digit
    By wd8ekd in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 07-26-2008, 01:49 PM

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.6.0 RC 1