+ Reply to Thread
Results 1 to 7 of 7

Conditional formatting apply to entire row

  1. #1
    Registered User
    Join Date
    09-28-2011
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    11

    Conditional formatting apply to entire row

    How do I apply conditional formatting to an entire row based off of a certain cell in that row? Can more than one condition be checked for in more than one cell?

    Thanks

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Conditional formatting apply to entire row

    Your selection should cover the entire row while applying CF and protect the column reference of the formula with a $ so that the condition check range wont get rotating.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    09-28-2011
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Conditional formatting apply to entire row

    Hmm, I'm not quite understanding. I have a sheet and in every row, the H column either has a "1" or it doesn't. If it does, I want that whole row to have a specific formatting.

    When I highlight the row and choose Highlight Cells rules>Equal to it applies to just the cell in just that row I selected. I don't see how to make the entire row act as one item.

    Thanks.

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Conditional formatting apply to entire row

    Just select your range (Row) which needs to be highlighted and in CF formula

    =$H2=1

    The above formula refers to 2nd row so the active cell should be in 2nd row. Refer the attached screenshot for details.

    CF Usage.jpg

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Conditional formatting apply to entire row

    1. highlight the range you want to apply the conditional formatting to
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter your formula

    If you want to test for more than 1 condition, just add more rules
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Registered User
    Join Date
    04-06-2013
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    36

    Re: Conditional formatting apply to entire row

    Given the limited information you provided, the attached file here does what you described (I think). You can add or remove 1's in column H and the color of the entire row will change.

    I picked red and green; so, be prepared.

    I should mention that the conditional formatting only makes the green. The rest has the backgroud color set to red unconditionally.
    Attached Files Attached Files
    Last edited by Frasterist; 04-08-2013 at 12:18 AM.

  7. #7
    Registered User
    Join Date
    09-28-2011
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Conditional formatting apply to entire row

    Got it, thanks.

+ 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