Results 1 to 4 of 4
  1. #1
    5 Star Lounger
    Join Date
    Oct 2001
    Location
    San Bernardino, California, USA
    Posts
    734
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Custom cell format (2007)

    Two questions:

    1) When I have text in the cell (as in N9), how can I have a portion of that text in a different color? I would like N9 to have <font color=red>(short)</font color=red> in red.

    2) I am having trouble with a custom cell format. I have a cell with text & number and when that number is negative, I want it to appear as (##). I do get that although I also receive a minus sign at the beginning of the text. The image below shows the results but here is the custom formatting:

    N9 Custom format: "Excess (short) player spots @ tables: "###(###)
    N9 Formula: =N8-N7
    Attached Images Attached Images

  2. #2
    5 Star Lounger
    Join Date
    Aug 2004
    Location
    Connecticut, USA
    Posts
    816
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Custom cell format (2007)

    <P ID="edit" class=small>(Edited by mbarron on 02-Feb-09 15:26. Forgot to use the [t] tag)</P>The correct format would be (supply your own text of course):
    "Pos Value" #.00;<!t>[red]<!/t>"Neg Value " (#.00);"No Value " 0

    Unless E2007 differs from E2003, your entire cell will be red. I could not format only a portion of the cell using the custom formatting. No matter where I put the <!t>[red]<!/t>, Excel moved it to the front of the "Neg".

  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Custom cell format (2007)

    Mike is correct: you cannot color part of a cell by using a custom number format. If you want the word (short) in red, you'd have to place it in a separate cell (but that makes it difficult to get contiguous text.)

  4. #4
    5 Star Lounger
    Join Date
    Oct 2001
    Location
    San Bernardino, California, USA
    Posts
    734
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Custom cell format (2007)

    Thanks for the help Mike... it works fine now.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •