+ Reply to Thread
Results 1 to 6 of 6

"conditional formatting" with more than one condition

  1. #1
    Registered User
    Join Date
    07-27-2018
    Location
    Seattle,Wa
    MS-Off Ver
    2016
    Posts
    11

    "conditional formatting" with more than one condition

    Basically I have a maintenance schedule and I am attempting to highlight,change the appearance, etc of cells in B9:E29 in the picture below if Today() falls within the week number (F8:BE8) and there is also an "x" in that column. Basically in my attached picture, I would like B28:E29 highlighted because today falls within the 47th week (AZ8) and maintenance is due indicated by AZ28, AZ29. Hopefully this made sense to someone. I have tried everything I could think of using conditional formatting and I was about to try and start attempting it from a VBA approach but figured I would see if anyone had a simple solution. Attachment 598875
    Attached Files Attached Files
    Last edited by sandlinj; 11-20-2018 at 08:48 PM. Reason: Added workbook

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: "conditional formatting" with more than one condition

    Please upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context and we can then be certain that what we provide does in fact do what you want.

    In essence the structure of the Cond. format formula will be

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    07-27-2018
    Location
    Seattle,Wa
    MS-Off Ver
    2016
    Posts
    11

    Re: "conditional formatting" with more than one condition

    That was what I was trying but havent had luck. I will upload the workbook. Thank you for a response.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: "conditional formatting" with more than one condition

    Hi,

    Would you confirm the dates in Row 7
    I note F7 has a date of 24/10/2018 but then G7 is 7/1/2019
    I'm presuming G7 is a typo and it should be 31/10/2018 and then forward in increments of 7 days
    I'll also assume that the dates are the week commencing date not the weeke ending date

    You have also attempted two different conditional formats with a brown and green format.
    However you've only mentioned wanting to identify one condition. I'll work on the assumption that it is only one.

    The CF in B9 and applied to $B9:$E76 is

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-27-2018
    Location
    Seattle,Wa
    MS-Off Ver
    2016
    Posts
    11

    Re: "conditional formatting" with more than one condition

    Whoops sorry about all of the confusion. The date in G7 was actually correct and I had been changing F7 to test. I meant to have the dates row hidden and just use row 8. The multiple attempted conditional formats were what I had been attempting, before I asked for help. Probably should have deleted those (embarrassing). Thank you so much for all of the help. You got me extremely close to what I was looking for. This is what I ended up using to make it work the way I wanted and didnt explain well enough: =OFFSET($F9,0,MATCH(WEEKNUM(TODAY()),$F$8:$BE$8)-1)="X"


    Again, thank you very much for your time.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: "conditional formatting" with more than one condition

    Hi,

    Yes that will work just as well.
    Is 7/1/2019 (the first Monday of 2019) Week 1 and have you changed G8 therefore

    The caveat when using the week number is that it should always with your actual w/c date for week 1.

+ 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] Conditional Formatting - Apply Cell Style if a column cell is "string1" or "string2"
    By Tunnel_Snakes in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-29-2018, 01:27 PM
  2. Conditional formatting by testing for "True" or "False"
    By Excel_vba in forum Excel General
    Replies: 2
    Last Post: 02-21-2014, 11:26 PM
  3. Using "AND," "OR," and "TODAY()" in conditional formatting
    By KArnoldColumbia in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-18-2013, 01:17 PM
  4. [SOLVED] Conditional formatting - formula if cell does NOT contain "," or "@"
    By Armitage2k in forum Excel General
    Replies: 12
    Last Post: 12-02-2012, 06:23 AM
  5. Conditional Formatting - Replace date with "YES" or "NO"
    By christinie in forum Excel General
    Replies: 3
    Last Post: 11-01-2012, 04:10 PM
  6. Replies: 2
    Last Post: 08-17-2012, 05:10 AM
  7. [SOLVED] excel should "paste special" a "conditional formatting"
    By lozturk21 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-23-2005, 10:05 AM

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