+ Reply to Thread
Results 1 to 15 of 15

Conditional formatting on multiple cells and values

  1. #1
    Registered User
    Join Date
    04-27-2023
    Location
    Hitchin, UK
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Conditional formatting on multiple cells and values

    Hi All,

    I have a task tracker which I would like to add conditional formatting to highlight due dates which have passed. In column G I have a due date, in column D I have a status which can be the value of "Not Started", "In Progress", "Completed" or "Blocked".

    I would like a formula to highlight the due date field in column G if, the due date has passed and the status in column D is NOT "Completed".

    Any help would be greatly appreciated

    Thanks

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Conditional formatting on multiple cells and values

    =AND( G2<>"", G2<today() , D2<>'completed")

    for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
    Conditional Formatting

    Highlight applicable range >>
    G2:G100 - Change, reduce or extend the rows to meet your data range of rows

    Home Tab >> Styles >> Conditional Formatting
    New Rule >> Use a formula to determine which cells to format
    Edit the Rule Description: Format values where this formula is true:
    =AND( G2<>"", G2<today() , D2<>"completed")

    Format [Number, Font, Border, Fill]
    choose the format you would like to apply when the condition is true
    OK >> OK

    A sample sheet would help here

    The forum does allow for spreadsheets to be uploaded direct to the forum -

    Please see the Yellow Banner at the top of the page explaining how to attach a sample spreadsheet

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.

    Here are the instructions, found at the top of the page again
    Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    Last edited by etaf; 04-27-2023 at 05:29 AM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Conditional formatting on multiple cells and values

    Welcome to the forum.

    Your CF rule for cell G1:

    =AND(D1<>"",D1<>"Completed")

    If you need help implementing this, then please provide a sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    04-27-2023
    Location
    Hitchin, UK
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Re: Conditional formatting on multiple cells and values

    Hi Etaf, many thanks for your response. The statement is not quite correct as in Cell D, I can select the Status values of "Not Started", "In Progress", "Completed" or "Blocked". I would like to cell to highlight if the value entered in the Cell is "Not Started", "In Progress", or "Blocked". The date cell should not highlight if the date has passed and the status is "complete", only if its is one of the other statuses. Let me know if you need a sample workbook. Thanks

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Conditional formatting on multiple cells and values

    Let me know if you need a sample workbook.
    yes please

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Conditional formatting on multiple cells and values

    Did you see post #3?

    As I said, if you need help with the implementation, provide a sample workbook.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Conditional formatting on multiple cells and values

    Quote Originally Posted by etaf View Post
    Highlight applicable range >>
    G2:G100 - Change, reduce or extend the rows to meet your data range of rows

    Home Tab >> Styles >> Conditional Formatting
    New Rule >> Use a formula to determine which cells to format
    Edit the Rule Description: Format values where this formula is true:
    =AND( G2<>"", G2<today() , D2<>"completed")
    If it needs applying to a range, then you need to fix the lookup cell:

    =AND( G2<>"", G2<today() , $D2<>"completed")

  8. #8
    Registered User
    Join Date
    04-27-2023
    Location
    Hitchin, UK
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Re: Conditional formatting on multiple cells and values

    Hi All, many thanks for the quick responses. I have uploaded a sample workbook, as the formatting is not quite right yet. Really appreciate your support

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Conditional formatting on multiple cells and values

    No, there's no workbook attached anywhere. Please try again.

  10. #10
    Registered User
    Join Date
    04-27-2023
    Location
    Hitchin, UK
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Re: Conditional formatting on multiple cells and values

    Oops, Missed a step. Hopefully you can see the sample sheet now.

    Sample Sheet CF.xlsx

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Conditional formatting on multiple cells and values

    Rule for G3:

    =AND(TODAY()>G3,G3<>"",$D3<>"Completed")

    Applies to: $D3:$D5000
    Attached Files Attached Files
    Last edited by AliGW; 04-27-2023 at 06:02 AM. Reason: Workbook added.

  12. #12
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Conditional formatting on multiple cells and values

    i have used
    =AND( $G3<>"", $G3<TODAY(), $D3<>"completed")

    The $ are in case you want to choose a range , as mentioned above

    I have added a couple of dates

    for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
    Conditional Formatting

    Highlight applicable range >>
    G3:G100 - Change, reduce or extend the rows to meet your data range of rows

    Home Tab >> Styles >> Conditional Formatting
    New Rule >> Use a formula to determine which cells to format
    Edit the Rule Description: Format values where this formula is true:
    =AND( $G3<>"", $G3<TODAY(), $D3<>"completed")

    Format [Number, Font, Border, Fill]
    choose the format you would like to apply when the condition is true
    OK >> OK
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    04-27-2023
    Location
    Hitchin, UK
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Re: Conditional formatting on multiple cells and values

    Thanks all, Issue now resolved. I'll close the thread. Thanks to all that contributed.

  14. #14
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Conditional formatting on multiple cells and values

    you are welcome

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Conditional formatting on multiple cells and values

    Glad to have helped.

+ 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. Replies: 2
    Last Post: 05-20-2022, 02:01 AM
  2. [SOLVED] Conditional Formatting based on Values from multiple cells
    By AWS1986 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-25-2021, 11:22 AM
  3. [SOLVED] Conditional Formatting on a row based on values in multiple cells
    By EWolfe in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-25-2019, 01:02 PM
  4. Conditional formatting with values from multiple cells
    By LilJur in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 01-20-2017, 06:12 PM
  5. [SOLVED] Conditional Formatting based on Multiple Values of other Cells
    By Sovrin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-03-2016, 08:10 PM
  6. [SOLVED] Conditional formatting for cells containing multiple values.
    By chaitreya in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-24-2015, 03:40 PM
  7. Conditional formatting, based ot multiple values in 2 cells.
    By kaosbg in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-04-2014, 02:47 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