+ Reply to Thread
Results 1 to 3 of 3

Formatting Excel Cell (custom format)

  1. #1
    Registered User
    Join Date
    05-13-2013
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    7

    Formatting Excel Cell (custom format)

    Hi All,

    I am trying to accomplish the following when formatting an Excel cell:

    Number less than 10 -> 2 decimal places
    Number greater than 10 -> no decimal places
    Zero -> two dashes (i.e --)

    I have the following format that I put into the custom cell format, but it doesn't seem to work for the zero:

    [<10]$0.00;$#,###

    Many thanks!

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Formatting Excel Cell (custom format)

    hi MaxM&M, welcome to the forum. maybe:
    [>=10]$#,###;[>0]$0.00;--

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    05-13-2013
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Formatting Excel Cell (custom format)

    Works like a charm. Many thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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