+ Reply to Thread
Results 1 to 8 of 8

Single Formula Conditional Formatting for 3 Criteria

  1. #1
    Registered User
    Join Date
    02-15-2021
    Location
    Columbia, SC
    MS-Off Ver
    M365 Business
    Posts
    25

    Post Single Formula Conditional Formatting for 3 Criteria

    Hello! I am trying to figure out a formula to accomplish a rather simple task. I have an idea of how to do this, but I would love some input!

    The use case will be a simple conditional formatting, but I would like it done in one formula, rather than manually putting in a different formula for each case.

    Here is the challenge:
    Screenshot 2021-02-15 131815.png

    Currently, I have 4 separate conditional formatting rules changing cell colors based on their dates. Here are those formulas:
    Where.png
    Red.png
    Orange.png
    Yellow.png

    Those dates are based on the "Quarterly" Option in the column on the left.

    Here is what I would like:
    I would like the colors to only changed if the left column is equal to the proper date. Allow me to explain.

    If "Monthly" is selected, then the conditional formatting will need to match those dates. Therefore, only dates this month will be green and later dates will change colors accordingly.
    If "Quarterly" is selected, then the conditional formatting will need to only reflect dates based on 90 days. Therefore, only dates within 90 days will be green.

    Basically, I am trying to conditional format with a conditional format. Can anyone provide the best way to do this? If I need to go into more detail I can.

    Hope I explained that well enough!
    Last edited by AliGW; 02-16-2021 at 04:47 AM.

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Complex Formula Help!!

    Hi
    Fast answers need clear examples. 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. Just before posting, 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.

  3. #3
    Registered User
    Join Date
    02-15-2021
    Location
    Columbia, SC
    MS-Off Ver
    M365 Business
    Posts
    25

    Re: Complex Formula Help!!

    Here you go!

    This is what I currently have.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-15-2021
    Location
    Columbia, SC
    MS-Off Ver
    M365 Business
    Posts
    25

    Re: Complex Formula Help!!

    Here is one that shows what I have, and what I'm trying to accomplish.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Complex Formula Help!!

    Quote Originally Posted by Robert5042 View Post

    If "Monthly" is selected, then the conditional formatting will need to match those dates. Therefore, only dates this month will be green and later dates will change colors accordingly.
    If "Quarterly" is selected, then the conditional formatting will need to only reflect dates based on 90 days. Therefore, only dates within 90 days will be green.
    When is it orange? what are the criteria for "Anually" and "Semi-Anually"?

  6. #6
    Registered User
    Join Date
    02-15-2021
    Location
    Columbia, SC
    MS-Off Ver
    M365 Business
    Posts
    25

    Re: Complex Formula Help!!

    It will likely differ based on what frequency is select.

    Monthly: Green (within 30 days) - Yellow (within 60 days) - Orange (within 75 days) - Red (greater than or equal to 75 days)
    Quarterly: Green (within 90 days) - Yellow (within 180 days) - Orange (within 270 days) - Red (greater than or equal to 270 days)
    Sem-Annually: Green (within 180 days) - Yellow (within 270 days) - Orange (within 365 days) - Red (greater than or equal to 365 days)
    Annually: Green (within 365 days) - Yellow (within 455 days) - Orange (within 545 days) - Red (greater than or equal to 545 days)

    Hope that helps!

  7. #7
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Complex Formula Help!!

    Hi,
    I didnt understand the orange , here is for the red/green (column Q)

    Semi-Anually:
    =AND((P1="Semi-Anually"),TODAY()-(365/2) < =Q1)

    Anually:
    =AND((P1="Anually"),TODAY()-365 < =Q1)

    Quarterly
    =AND((P1="Quarterly"),TODAY()-90 < =Q1)


    Monthly:
    =AND((P1="Monthly"),(MONTH(Q1)=MONTH(TODAY())))
    Attached Files Attached Files

  8. #8
    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,830

    Re: Single Formula Conditional Formatting for 3 Criteria

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As you are new, I have done it for you this time.)

    This cannot be done with just one rule, by the way
    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.

+ 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] Complex formula getting moer complex
    By Trebor777 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-02-2017, 01:39 PM
  2. [SOLVED] Use an existing cell formula for creating a new more complex formula
    By dubcap01 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-23-2014, 07:41 AM
  3. complex AVG formula
    By koosh1986 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-22-2014, 06:46 PM
  4. [SOLVED] Complex IF Formula
    By tomvh444 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-12-2014, 10:31 AM
  5. Replies: 4
    Last Post: 02-03-2014, 12:47 AM
  6. More complex look up formula
    By burnsie in forum Excel General
    Replies: 2
    Last Post: 03-11-2013, 06:26 AM
  7. Need help with complex formula!
    By bcoluc1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-20-2013, 02:07 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