+ Reply to Thread
Results 1 to 4 of 4

Formatting Numbers with zeros and hypens

Hybrid View

  1. #1
    Registered User
    Join Date
    01-30-2014
    Location
    canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Formatting Numbers with zeros and hypens

    Hey Guys,

    I am trying to figure out this formatting issue in excel. I tried multiple formula (Replace,(Left,Mid,right),Text("000").

    I am trying to format this number value from "252 1 02 27"(this is exactly how it is appeared on the excel sheet)
    into "252-01-02-27"


    Thank you

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Formatting Numbers with zeros and hypens

    =substitute(a1, " ", "-")
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    01-30-2014
    Location
    canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Formatting Numbers with zeros and hypens

    Quote Originally Posted by shg View Post
    =substitute(a1, " ", "-")

    Hey shg,

    It worked the substitute. Is there a way to format the single digit to be displayed as 01 instead 1

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Formatting Numbers with zeros and hypens

    No obvious way -- it depends on the variety of number forms that would have to be accommodated.

+ 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. I need answer to only show positive numbers, not minus numbers or zeros
    By stevedork in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-24-2013, 01:18 PM
  2. Zeros only but not other numbers
    By kuzna26 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-12-2013, 06:11 PM
  3. About zeros at the begining of the numbers
    By RazBoss in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-02-2009, 05:55 AM
  4. zeros at the front of numbers
    By fretwizard in forum Excel General
    Replies: 2
    Last Post: 11-06-2008, 08:19 AM
  5. Add Zeros to Numbers
    By Rebecca in forum Excel General
    Replies: 1
    Last Post: 02-07-2006, 07:25 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