+ Reply to Thread
Results 1 to 5 of 5

Leading Zero Formula

  1. #1
    Registered User
    Join Date
    07-10-2016
    Location
    NJ
    MS-Off Ver
    Excel 2003
    Posts
    40

    Leading Zero Formula

    Using a long list, I'm trying to merge two cells (each with a digit) into one cell. My problem is the leading zero. The "cells > custom" 00 does not help.

    I put together this formula: =CONCATENATE("0"&V4)&" "&("0"&W4)

    Its works perfect to preserve the zero for single digits with a leading zero but for my "two-digit" data its also adding a zero.

    For example;
    05 | 06 becomes 05 06 that's good, however
    11 | 15 becomes 011 015


    Thank you in advance for your help.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,514

    Re: Leading Zero Formula

    Try

    =TEXT(V4,"00")& " " &TEXT(W4,"00")

  3. #3
    Registered User
    Join Date
    07-10-2016
    Location
    NJ
    MS-Off Ver
    Excel 2003
    Posts
    40

    Re: Leading Zero Formula

    Your solution worked John, thank you!

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,514

    Re: Leading Zero Formula

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  5. #5
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,425

    Re: Leading Zero Formula

    Since your numbers are either one or two digit numbers, this shorter formula will also work...

    =TEXT(100*V4+W4,"00 00")

+ 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. [SOLVED] Concatenate, Mid formula with leading zero's
    By Sultix in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-03-2016, 02:02 PM
  2. [SOLVED] Formula to get leading zeros
    By rizmomin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-20-2015, 11:08 AM
  3. [SOLVED] Losing Leading Zero In Formula
    By gaspower in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-15-2015, 07:36 PM
  4. Don't Drop Leading Zero in If Formula
    By djfatboyfats in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-09-2015, 07:56 AM
  5. Maintenance formula contains leading zero
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-25-2014, 10:51 PM
  6. How to get leading 0's to work in formula?
    By brusk in forum Excel General
    Replies: 3
    Last Post: 03-04-2010, 02:39 PM
  7. Leading Zero Formula
    By kaiken in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 08-28-2007, 12:37 PM

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