+ Reply to Thread
Results 1 to 13 of 13

IF for colors and highlights

Hybrid View

  1. #1
    Registered User
    Join Date
    06-15-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    45

    IF for colors and highlights

    How could I write a statement that would highlight a cell if the number inside was red with brackets around it?

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

    Re: IF for colors and highlights

    Can you give a little more description behind this number? Where does it come from, via a formula, manually entered etc?

    What is your goal?
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    06-15-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    45

    Re: IF for colors and highlights

    Numbers are manually entered. I have all the negative numbers displayed in the format where it shows something like (100) for -100 and and makes the color of the number and brackets red. I want to be able to have every cell with a negative number be highlighted.

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

    Re: IF for colors and highlights

    Apply a custom format

    Ctrl + 1 >> Format cells >> Custom >> 0_);[Red](0)

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF for colors and highlights

    ...Or you can use Conditional Formating for this.

    Formula in Conditional format rules, will be

    =$a1<0
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  6. #6
    Registered User
    Join Date
    06-15-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    45

    Re: IF for colors and highlights

    I'm not understanding. I tried copying the custom format and pasting it but it did not affect any of my cells. As far as the conditional formatting is concerned, where can I input that into my spreadsheet so that it will highlight every negative cell

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF for colors and highlights

    In Conditional Formatting rules..
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    06-15-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    45

    Re: IF for colors and highlights

    where is the formula inputted there?

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF for colors and highlights

    Just change the range from $A1:$A100, to $A1:"what you want"....

  10. #10
    Registered User
    Join Date
    03-20-2008
    Posts
    9

    Re: IF for colors and highlights

    Try This,

    Go to manage rules.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    06-15-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    45

    Re: IF for colors and highlights

    Ok now I see. Is there anyway to format it so that anytime there is a negative number in a row, it fills the entire row with a yellow highlight?

  12. #12
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF for colors and highlights

    .... In Conditional Formatting rules..

  13. #13
    Registered User
    Join Date
    06-15-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    45

    Re: IF for colors and highlights

    Is it possible in excel in general for anytime there is a negative number in a row, to highlight the entire row?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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