+ Reply to Thread
Results 1 to 3 of 3

Conditional Formatting Help

  1. #1
    Registered User
    Join Date
    08-31-2016
    Location
    St. Charles, Mo
    MS-Off Ver
    10
    Posts
    2

    Conditional Formatting Help

    Hello! I'm new to the community and semi decent at excel.

    I have taken an excel template for Employee Attendance and modified it to suit the needs of my company. I'm in the final stages and I cannot seem to get the conditional formatting right. The top calendar is correct, but the bottom calendar should drop all the "red font cells" after 1 year (365 days) from the current day (today()).

    The current formatting is :
    =(MONTH(H43)=MONTH($C43))*(COUNTIFS(lstSdates,"<="&TODAY()-365))*(COUNTIFS(lstEmpNames,valSelEmployee2,lstSdates,"<="&H43,lstEDates,">="&H43,lstPoint4,">0")>0)

    I've tried adding lstSdates,"<="&today()-365 in various places
    I've tried adding lstSdates,"<="&EDate(Today(),-12) in various places as well.

    For some reason I cannot get this format right. I only want it applied to the red font conditional formatting on the bottom calendar.

    I've attempted to attach the file. Can anyone offer any insight? Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,919

    Re: Conditional Formatting Help

    I added this as a new rule last in the sequence.
    =AND(NOT(ISBLANK(H43)), H43 < TODAY()-365)
    With format text to black.

    I tried a test version with fill cells green and it shaded the appropriate cells.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    08-31-2016
    Location
    St. Charles, Mo
    MS-Off Ver
    10
    Posts
    2

    Re: Conditional Formatting Help

    Thank you so much!

    I used this formula and it is working for me !

    =(MONTH(H43)=MONTH($C43))*(COUNTIFS(lstEmpNames,valSelEmployee2,lstSdates,"<="&H43,lstEDates,">="&H43,lstPoint4,">0")>0)*(H43>=TODAY()-365)

+ 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: 9
    Last Post: 03-07-2016, 10:39 AM
  2. Conditional Formatting Removing Previous Conditional Formatting?
    By CravingGod in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2016, 01:02 PM
  3. Replies: 6
    Last Post: 01-08-2016, 06:44 PM
  4. Formatting Cells with Date or Text Values in a Conditional Formatting Formula
    By Phil Hageman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-15-2014, 09:36 AM
  5. Opening xlsm files with conditional formatting opens with removed conditional formatting
    By Martijn.Steenbakker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2014, 05:38 AM
  6. Replies: 1
    Last Post: 09-20-2013, 06:23 PM
  7. Replies: 3
    Last Post: 05-15-2012, 04:13 PM

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