+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting Formula based on length of expired date

  1. #1
    Registered User
    Join Date
    04-20-2021
    Location
    Perth, WA
    MS-Off Ver
    ms365
    Posts
    11

    Question Conditional Formatting Formula based on length of expired date

    Hi,

    I'm creating a training register for my workplace and need help creating conditional formatting based on length passed certain date.

    In columns C through to M I have the date that the training was completed. I need to create formulas for the below

    Date entered is within the last 4 months (GREEN)
    Date entered is 5+ months older (ORANGE)
    Date entered is 6+ months older (RED)

    Would love any assistance. Have tried some other suggestions on here for various other formulas but none have matched my criteria exactly (or worked with my guessed changes!)
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Conditional Formatting Formula based on length of expired date

    Maybe try these formulas in Conditional formatting:

    Red color
    =AND(C4<>"",DATEDIF(C4,TODAY(),"M")>=6)

    Orange color
    =AND(C4<>"",DATEDIF(C4,TODAY(),"M")>=5)

    Green color:
    =DATEDIF(C4,TODAY(),"M")<4

    See attached
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-20-2021
    Location
    Perth, WA
    MS-Off Ver
    ms365
    Posts
    11

    Re: Conditional Formatting Formula based on length of expired date

    Thanks so much - that seems to have *almost* worked. But it looks like the orange overrides the red (or the red overrides he orange, based on where I layer them within my rules). Do you know how to avoid this? I've attached the updated spreadsheet so you can see what i've done
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Conditional Formatting Formula based on length of expired date

    Put the RED on one the top, like I had on the one I attached.

  5. #5
    Registered User
    Join Date
    04-20-2021
    Location
    Perth, WA
    MS-Off Ver
    ms365
    Posts
    11

    Re: Conditional Formatting Formula based on length of expired date

    Got it, thanks again

+ 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. VBA to send emails based on Expired Due Dates (with Conditional Formatting)
    By trOOly in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-20-2018, 02:19 PM
  2. Conditional formatting based on date formula
    By Grasshopper Green in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-04-2018, 10:53 AM
  3. Conditional Formatting by expired date
    By sdjames1979 in forum Excel General
    Replies: 2
    Last Post: 05-07-2015, 05:02 AM
  4. conditional formatting to highlight when expired
    By lialkos in forum Excel General
    Replies: 2
    Last Post: 01-10-2014, 09:24 AM
  5. Replies: 5
    Last Post: 12-31-2011, 04:33 AM
  6. Conditional Formatting in VBA for expired dates
    By xcelnerd in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-01-2010, 09:09 AM
  7. conditional formatting - show expired date
    By cat_b in forum Excel General
    Replies: 1
    Last Post: 07-22-2009, 05:10 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