+ Reply to Thread
Results 1 to 6 of 6

excel custom number format coding

  1. #1
    Registered User
    Join Date
    05-07-2012
    Location
    Michigan
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    44

    Post excel custom number format coding

    So I am trying to create a custom number format in Excel 2007
    I would like all numbers greater than 0 to display red text, all numbers less than 0 to display yellow text and 0 to display green

    I tried a couple different coding but i keeping getting an error code saying Excel cannot accept the number format

    Any help would be awesome...

    Thanks in advance
    jon_p

  2. #2
    Valued Forum Contributor
    Join Date
    05-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    354

    Re: excel custom number format coding

    Try:
    [Red]General;[Yellow]General;[Green]General

    first part is used for positive numbers, second for negatives, third for zero.

    this should get the colors working for you. Next if needed, replace "General" with your desired number format.

    Hope that helped.

  3. #3
    Registered User
    Join Date
    05-07-2012
    Location
    Michigan
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    44

    Re: excel custom number format coding

    this worked, i have to laugh becuase that was easy... ... of course i was attempting to make it harder then the solution..

    thank you

  4. #4
    Registered User
    Join Date
    05-07-2012
    Location
    Michigan
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    44

    Re: excel custom number format coding

    Ok I am back, using the code given by vandan tanna [Red]General;[Yellow]General;[Green]General

    how do i set the Decimal place to 0 example 405.4 would display 405 or 405.6 wold display 406

  5. #5
    Valued Forum Contributor
    Join Date
    05-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    354

    Re: excel custom number format coding

    tRY:

    [Red]0;[Yellow]0;[Green]0

  6. #6
    Registered User
    Join Date
    05-07-2012
    Location
    Michigan
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    44

    Re: excel custom number format coding

    thank you again...

+ 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