+ Reply to Thread
Results 1 to 6 of 6

Number Formatting

  1. #1
    Registered User
    Join Date
    03-29-2010
    Location
    NC
    MS-Off Ver
    Excel 2013
    Posts
    17

    Number Formatting

    I'm trying to make a custom number format that displays both decimals only when needed but also uses the thousands separator comma. For example...

    1,000
    1,000.14
    45.22
    35
    35,000
    35,000.56

    Is this possible?

    Thanks!

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Number Formatting

    Try a format of

    #,##0

    Then a conditional format rule of (A1 in the formula should refer to the cell that you're trying to format, or the active cell if applied to a range).

    =MOD(A1,1)

    With a format of

    #,##0.0#

  3. #3
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Number Formatting

    @jason.b75 small oversight..
    I think that CF condition does not result in True or False so change it to

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    to work as CF condition

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Number Formatting

    @Roel, CF doesn't need true or false to function.

    Any non zero numeric value will be evaluated as true (positive or negative).

    Everything else, zero values, text, untrapped errors and anything I may have forgotten all evaluate as false.

  5. #5
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Number Formatting

    ah, cool, you are right... did not know that..
    always something new to learn.. was pretty sure about this one

  6. #6
    Registered User
    Join Date
    03-29-2010
    Location
    NC
    MS-Off Ver
    Excel 2013
    Posts
    17
    Thanks! Very much appreciated, this forum is wonderful

+ 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. number-comma-number formatting problem. Thousands, and string
    By JimmyWilliams in forum Excel General
    Replies: 1
    Last Post: 11-28-2017, 06:35 PM
  2. [SOLVED] Apply formatting if a number repeats in one of the three cells following this number
    By ×_× in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-02-2015, 10:57 AM
  3. [SOLVED] Add leading zeroes to number, number formatting
    By YOO629 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2015, 04:26 AM
  4. Number Formatting and Conditional Formatting
    By morayman in forum Excel General
    Replies: 1
    Last Post: 01-23-2014, 04:03 AM
  5. Conditional Formatting quirk with Number formatting
    By ChemistB in forum Excel General
    Replies: 9
    Last Post: 07-20-2011, 08:44 AM
  6. Replies: 3
    Last Post: 02-12-2009, 01:08 PM
  7. formatting cell number based on previous cell number
    By Pasquini in forum Excel General
    Replies: 3
    Last Post: 06-20-2006, 01:40 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