Results 1 to 4 of 4

How to show "0" before a number that has a custom format?

Threaded View

  1. #3
    Registered User
    Join Date
    01-30-2013
    Location
    Hobart, TAS
    MS-Off Ver
    Office 2003, XL2007
    Posts
    46

    Re: How to show "0" before a number that has a custom format?

    G'day Harrison

    This might help
    Format column A as Text
    A1 enter an 11 digit code (no leading zero)
    B1 =IF(LEN(A1)=12,TEXT(A1,"0# ##### #####"),TEXT(A1,"# ##### #####"))
    Now try a 12 digit code (any 1 digit leading number including zero)

    Hope this is of some use.
    Last edited by M E Good @ XL4M; 03-07-2015 at 04:50 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Convert from "general" (YYYYMMDD) to specific "custom" format (YYYY.MM.DD)
    By Ella_p in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-10-2013, 02:23 AM
  2. Replies: 2
    Last Post: 11-01-2012, 04:35 PM
  3. Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",False)" not working
    By redders in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2011, 03:52 PM
  4. Custom format to show 0% as "-"
    By kmlloyd in forum Excel General
    Replies: 3
    Last Post: 09-16-2010, 05:06 PM
  5. Custom date format shows "051117.Thu" for today. Way to have "051117.Th", instead?
    By StargateFan in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-17-2005, 06:25 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