+ Reply to Thread
Results 1 to 10 of 10

Format Custom number's color

  1. #1
    Forum Contributor
    Join Date
    05-05-2004
    MS-Off Ver
    Office 365
    Posts
    651

    Format Custom number's color

    I see how i can change the color using the words "Green", "Red" and so on. What i REALLY need to do is make the color, #C00000.

    Anyway to do this????

    example.jpg

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Format Custom number's color

    In custom format you can use the Red, Green, Black, etc, but you can also use Color 1, Color 2, Color 3 … Color 56.

    Would one of those colors help?
    HTH
    Regards, Jeff

  3. #3
    Forum Contributor
    Join Date
    05-05-2004
    MS-Off Ver
    Office 365
    Posts
    651

    Re: Format Custom number's color

    What number would be the red that i circled?

    Attachment 664878

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Format Custom number's color

    Not sure, but this might help you key in on the color you want.

    https://chandoo.org/wp/custom-number-formats-colors/

    Look under Color Number

  5. #5
    Forum Contributor
    Join Date
    05-05-2004
    MS-Off Ver
    Office 365
    Posts
    651

    Re: Format Custom number's color

    BAH, great info thank you but it does not help me... i type in "Dark Red" and it rejects it.

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Format Custom number's color

    Yes, I see what you mean. The article says you can type the color name in, but it also says thru 2013. I just tried in 2016 and it will not take a typed in color, and since you are using 365, maybe not there either.

    This will work though. [Color 30]$#,##0.00

    Outside of this, the custom format, if you want to apply a specific color you would have to use VBA.

  7. #7
    Forum Contributor
    Join Date
    05-05-2004
    MS-Off Ver
    Office 365
    Posts
    651

    Re: Format Custom number's color

    VBA it is i guess.... but sadly dont know how.

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Format Custom number's color

    Without knowing what, when, and how you need this applied, it's hard to suggest a method. Before jumping into VBA, we need to see your layout and a before and after. Will one of the 56 colors not work for you? VBA opens up a whole new world.

    One example, if this is a workbook you will be sharing with others, the only way the VBA will work is if they enable macros when opening the workbook. If they don't, the VBA is not of much use.

    What about using conditional formatting? You can pick all sorts of colors and based on your conditions. Let's say, value is greater than 0, Dark Red. Value is less than 0, Dark Green. Can you use conditional formatting?

    I'm not trying to talk you out of VBA, just exploring whether there are other options. If Dark Red is not one of the 56 colors, is there something close.

  9. #9
    Forum Contributor
    Join Date
    05-05-2004
    MS-Off Ver
    Office 365
    Posts
    651

    Re: Format Custom number's color

    I already did the conditional formatting option. But as you can see below I am required to have two columns to accomplish this task. I was just looking for a cleaner solution.

    Attachment 664892

  10. #10
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Format Custom number's color

    I don't know what a "cleaner solution" could be! For me, conditional formatting is clean and would happen on change of the spreadsheet. Understanding the picture you posted is column A:D with column C the column looking for negative/positive

    Conditional Formatting
    • Highlight applicable range >> =$A$2:$D$14
    • Home Tab >> Styles >> Conditional Formatting
    • New Rule >> Use a formula to determine which cells to format
    • Edit the Rule Description: Format values where this formula is true: =$C2<0
    • Format… [Number, Font, Border, Fill]
    • OK >> OK

    Now do this again for a positive number. It's hard to work with a picture, so if you have further troubles, please post a workbook with a clear before and after. Instructions at top in "yellow" banner.

+ 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. Replies: 5
    Last Post: 01-25-2020, 05:18 PM
  2. Different color within: Format=>Cells=>Number=>Custom
    By AndyL446 in forum Excel General
    Replies: 5
    Last Post: 12-10-2018, 01:40 AM
  3. Replies: 6
    Last Post: 12-08-2018, 09:26 PM
  4. Any way to include font color in a custom number format ?
    By KomicJ in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-29-2015, 04:03 PM
  5. Need formula or code to convert number(s) from custom format to number format
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-12-2015, 07:44 PM
  6. Custom fill color scheme & conditional format
    By tian0020 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-12-2007, 02:31 AM
  7. how do I add phone number format as a permanent custom format?
    By frustratedagain in forum Excel General
    Replies: 3
    Last Post: 02-03-2006, 11:52 PM

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