+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting in a table

  1. #1
    Registered User
    Join Date
    06-20-2013
    Location
    US
    MS-Off Ver
    Office 365
    Posts
    53

    Conditional Formatting in a table

    Please see attached. I'm struggling to get conditional formatting to work within a table; to have 1 column's value highlighted when another column's value (for the same row) has a specific value.

    A sample document is attached. Note this is just a sample. I've simplified it by putting all data on 1 worksheet, but my actual file has multiple worksheets and multiple tables.

    Requirements:
    - My first worksheet has Today's Date in a cell so the date automatically updates. There's other info on my version of this file on the 1st worksheet, but only Today's Date is relevant for this question.
    - All data is manually entered into the tables. I'm using table formatting for several reasons such as when the user adds a new row the formatting is automatic, range references to the Table are automatic, formatting carries down, and I want all formulas to automatically carry down as well as the Conditional Formatting rules...so if the user adds row 15, the conditional formatting rules in Cell F14 would automatically carry down to Cell F15 (hoping this is possible - if not then this is a mute point and I probably need to tackle this another way).
    - In the example attached, I want 4 conditional formatting possibilities applied to the value in Column F ("Due Date"), with the formatting based on the value that's in Column I (of the same row). Rules are as follows:
    - Dark green if "Due > 2 weeks" (something like =I4="Due > 2 weeks")
    - Light green if "Due within 2 weeks"
    - Yellow if "Due within 1 week"
    - Red if "Past Due"
    - I do NOT want the entire row of the table highlighted in the color referenced above, I only want the Due Date value highlighted.

    I have to have column I (Due Date Status) because there are other formulas that utilize this value to count records on another worksheet. So I'd like and would prefer that the logic be based on Column I to drive what color is shown in Column F.

    Worksheet 2 (labeled at the top of the page)
    - I can get Cell F4 to work individually. If you change this date to cause column I to update to one of the 4 possible "Due Date Status" values, the color correctly changes.

    But see Worksheet 3 (also labeled at the top of the page)
    - When I copy Cell L4 down and have No Due Date or the Due Date is 2/15/2019, the colors don't update.

    I think I'm close, but I just can't figure out how to get this to work correctly.

    Many thanks to anyone that can explain to me how to accomplish this.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Conditional Formatting in a table

    You want the formulas in your conditional formatting rules to be non-absolute, meaning without the $. Then you set the "Applies to" cell references, which automatically become absolute, and the rules will work. In your case, the rule for dark green should be:
    Please Login or Register  to view this content.
    and the Applies to should be:
    Please Login or Register  to view this content.
    I think that should solve your issues if you set the rest of the rules up based on that idea.
    Last edited by Melvosh; 03-20-2019 at 03:10 PM. Reason: typo

  3. #3
    Registered User
    Join Date
    06-20-2013
    Location
    US
    MS-Off Ver
    Office 365
    Posts
    53

    Re: Conditional Formatting in a table

    Thank you so much! That worked perfectly!!!!!!

  4. #4
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Conditional Formatting in a table

    You're welcome, happy formatting!

+ 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. [SOLVED] Table - Conditional Formatting Help Please
    By BeHereALot in forum Excel General
    Replies: 2
    Last Post: 04-19-2017, 02:47 AM
  2. Replies: 1
    Last Post: 12-08-2016, 03:14 PM
  3. pivot table and conditional conditional formatting
    By Veronsito in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-07-2016, 12:15 PM
  4. Replies: 9
    Last Post: 03-07-2016, 10:39 AM
  5. Conditional Formatting with VB across a table
    By chrisr1606 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-05-2012, 07:39 AM
  6. Conditional Formatting Within a Table?
    By SPNesteby in forum Excel General
    Replies: 5
    Last Post: 01-14-2011, 01:23 PM
  7. Creating a new Table based on Conditional Formatting in another table
    By JPKenny in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-06-2010, 11:48 PM

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