+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting Entire Row based off a cell value that contains IF function

  1. #1
    Registered User
    Join Date
    04-01-2017
    Location
    California
    MS-Off Ver
    2016
    Posts
    10

    Conditional Formatting Entire Row based off a cell value that contains IF function

    In cell B2, I have a IF function that will either yield "Open" "Closed" "Over 45 Days" or stay blank based on two dates in cell A2 and M2.

    I want to add conditional formatting so that whenever we enter in a new row of data, it'll automatically yield one of those options and the entire table row will be formatted either

    yellow for open
    green for closed
    red for over 45 days

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Conditional Formatting Entire Row based off a cell value that contains IF function

    Original thread (for reference) here:
    https://www.excelforum.com/excel-for...ml#post4767668

    Since you want three colors, you will need to create three Conditional Formatting Rules.

    Based on the table from your last post (A1:M5 with headers in row 1):

    Rule 1: Highlight your entire table (A2:M5) > Conditional Formatting > New Rule > Use a formula
    =$B2="Open"
    Format: Fill yellow > OK > OK

    Rule 2: Highlight your entire table (A2:M5) > Conditional Formatting > New Rule > Use a formula
    =$B2="Closed"
    Format: Fill green > OK > OK

    Rule 3: Highlight your entire table (A2:M5) > Conditional Formatting > New Rule > Use a formula
    =$B2="Over 45 Days"
    Format: Fill red > OK > OK

    See attachment to see the above steps in action.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-01-2017
    Location
    California
    MS-Off Ver
    2016
    Posts
    10

    Re: Conditional Formatting Entire Row based off a cell value that contains IF function

    Thanks, I'm not sure why it wasn't working for me. Maybe because I tried to select the entire sheet instead of just the table...

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Conditional Formatting Entire Row based off a cell value that contains IF function

    You're welcome. Yes, that would do it.

    Conditional Formatting works based off of the top left cell in the selection.

    Here's a simple example:
    If you have data from C10 to E12 and you wanted to highlight every cell in that range with the letter "a" in it (only "a"), you would highlight C10:E12 and use the CF formula =C10="a".

+ 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. conditional formatting based on an entire row
    By vaeevictiss in forum Excel General
    Replies: 4
    Last Post: 10-31-2013, 05:34 PM
  2. Replies: 6
    Last Post: 07-02-2013, 10:29 AM
  3. [SOLVED] Conditional Formatting Entire Rows based on Change in Cell Value in Column A
    By Etain in forum Excel Formulas & Functions
    Replies: 26
    Last Post: 09-26-2012, 07:31 AM
  4. [SOLVED] Using conditional formatting to highlight an entire row based on one cell
    By eizanendoso in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-31-2012, 09:59 AM
  5. Replies: 6
    Last Post: 09-30-2011, 11:28 AM
  6. Replies: 5
    Last Post: 04-22-2011, 02:50 PM
  7. Replies: 2
    Last Post: 04-14-2011, 12:34 PM
  8. Conditional formatting of an entire row based on a cell text entry
    By Gilles Desjardins in forum Excel General
    Replies: 2
    Last Post: 12-22-2005, 07:55 AM

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