Comments on: How to conditionally format dates and time in Excel with formulas and inbuilt rules

See how to apply Excel conditional formatting to dates. Learn how to use formulas to highlight weekends and holidays, format cells when a value is changed to a date, shade upcoming dates and delays, conditionally format dates based on the current date, and more. Continue reading

Comments page 3. Total comments: 739

  1. Hi,
    I am trying to set up a sheet with conditional formatting. Ex. B4 has a target date with B3 being -7 days and B5 being +7 days. I want B6 to turn green if it is between those two dates. I know how to do this for one cell, but I need to do it for C-P as well. Is there a way to do this?

  2. Hi,
    I hope you can assist. I am trying to create a rule that will highlight and strike through the cells value if another cells date displays a date of the 22nd day or before.
    For example
    if C1 is filled with 9/23/2023 the target cell will be unchanged
    if C1 is filled with 9/21/2023 the target cell will turn red with text strike through.

    The date in C1 will constantly be changing ranging from 1930's to current.

  3. Hi! Hoping you can help. I am trying to create a formula rule to highlight a cell range based on one cell but for multiple options.

    E.g. Cell C4 has a date of 21/3/2021, and D4 has a date of 19/02/1998; I am trying to create a rule to highlight date ranges in different colours. 5 years.

    Then I want to use that to highlight C4,5,6,7 etc., based on that range.

    I have tried using an if and statement and a datedif statement, but it doesn't seem to want to work. Is this at all possible?

    Thanks!

      1. Thanks! I have tried to make the next selection of between 1 & 2 years, and 2 and 5 years, The formula works (no error) but it is not highlighting...

        =AND((DATEDIF($G$4,$B$1,"Y")>1),(DATEDIF($G$4,$B$1,"Y")<2))

        Have I used the right formula?

        Thanks again

        1. SORTED!

          =AND((DATEDIF($G$4,$B$1,"M")>24),(DATEDIF($G$4,$B$1,"M")<60))

          I changed it to months :)

          Thanks!

    1. Sorry, date ranges would be Under 1 year, 1-2 years, 2-5 years and over 5 years.

  4. Hello,

    I have a set of dates for various personnel training attended, that expire within 1 year, 2 years, 3 years and so on. I would like to use conditional formatting to turn the cells yellow when they are 90 days out from expiry and red when the dates have expired. I can't seem to find the right combinations of rules to make this work, as most are based on the current date in excel rather than the given date in the cell. Please help!

    Thank you.

    1. Hi! Replace the TODAY() function in the conditional formatting date formulas you see above in the article with a cell reference. Instead of =TODAY()-$A2>30 write =$A1-$A2>30

  5. Hi,
    I’m trying to get the following formulas to work on the same table but they won’t work together, it’s like they cancel each other out
    =AND($D2-TODAY()>=0,$D2-TODAY()=0,TODAY()-$D2<=7)
    I also want to be able to get it to work for multiple end dates but it won’t allow the formula to work on more than one row.
    Please help

    1. Hi! The second condition repeats the first. The third condition contradicts the second. The formula will always return FALSE.

      1. Ok so how do I get it to work to show both when it’s exceeded deadline and when it’s close to deadline?
        And is it possible to have it work for multiple deadline dates

  6. Now can I formulate a date that actually says the month. "January 2" instead of 1/2 or 2 Jan or the others?

  7. Hi, I'm trying to set up an employee directory that has the weekdays and times they're available. I currently have two cells that have the formula =NOW() (with one having the custom format to display "Fri" and the other to display hh:mm:ss am/pm). I would like to change the cells change colour to red if the day is Friday and they are not working (ie if they only work Mon-Thu etc). How would I go about conditionally formatting this?

  8. Hello -

    I'm trying to set up an inspection record template with separate Receipt Date and Expiration Date cells, where the Expiration Date cell will be automatically highlighted if the value entered there is <12 months from the Receipt Date. The Receipt Date will not always be the same date that the record is getting filled out, which is where I'm running into trouble. Please help?

    1. Hi I have the following:
      Sheet 1
      Column A: list of employee names
      Column B: employee title
      Column C: hire date
      Column D: # of years with company

      I am trying to sort this list on a new sheet so that all employees and their info from each column on sheet 1 is populated according to their anniversary date for 2023, but also separated by month. So if the employee anniversary date is in January, the employee and their info would be pulled from sheet 1 and listed under January 2023...and do this for each month. Is there a way to do this?

  9. What formula can I use if I want a row to fill with color after the date is typed into a cell? Example: 3/15/2023 is typed into E3, how can I have A3:E3 turn green?

  10. Hello,

    I am trying to make a formula where I want the cell to be highlighted when it says "In Progress" and the date is past 14 days.
    Column C is the date posted, and Column E is the status column (Ready, In Progress, ect.)

    This is the formula I thought would work, but am getting an error message:
    =AND(TODAY()-C3>=14, E3 = “In Progress”)

    The error I'm getting says "you may not use reference operators (such as unions, intersections, and ranges), array constants, or the LAMBDA function for conditional formatting criteria."

    1. Hi!
      I assume you used the wrong quotes for the text string.
      Use the formula:

      =AND(TODAY()-C3>=14, E3 = "In Progress")

  11. I have a spreadsheet that I need help with.
    I need to highlight the cell if a date entered is within the current quarter.

    Qtr1 Oct-Dec
    Qtr2 Jan-Mar
    Qtr3 Apr-Jun
    Qtr4 Jul-Sep

    If not, then highlighted red. If so, then highlighted green.

  12. I'd like to format cells to highlight based on a date range not related to today's current date (e.g., highlight all cells with dates from June 2022-December 2022 with one color, highlight January 2023-June 2023 with a different color, etc.). The tricky part is the dates I want referenced are on sheet 2 and the cells I want formatted are on sheet 1. Is this something that is possible?

  13. I have a spread sheet with notes being taken daily with dates input using CTRL ;
    these dates are mixed in with notes Example. 06/03/2023 important information here

    I was wondering if there is a way at all to highlight or change the text color of the date only automatically without changing the text of the entire cell or color of cell?

  14. Hi

    may I have some help please.

    Job Number Job Description Booking Date Target Date Completed Date Additional Notes
    1 test 14/02/2023 25/01/2024 14/02/2023 Done

    How do I make the entire row green once a 'completed date' has been inputted?
    there is a conditional format for target date which works perfectly and I don't want to disturb that.

    Kind regards,
    Abdul

  15. So I have a worksheet that shows production data on a calendar. The dates are pulled from a website so they will auto rotate which cell shows which dates. I use this sheet to see when I can schedule new orders to ship. This also depends on what shipping routes are available. I have created a new tab with all my routes and and their schedules.

    I have added a drop down on my main page to select the route. Now I want to highlight cells in the schedule based on which route is selected.

    My excel terminology is limited so I will attempt to describe the formula I am looking for;
    Rule 1) If this route is selected then highlight all Tuesday/Fridays
    Rule 2) if this route is selected highlight all Monday/Wednesdays
    -so on and so forth for other routes and their respective days.

    I cannot find the formula excel needs to make this happen. Am I overthinking this and there is a simple solution/equation? or is this something excel cannot do?

      1. Thanks, yes I was able to get the correct days highlighted using this equation:

        =OR(WEEKDAY($B2,2)=3, WEEKDAY($B2)=2)

        The tricky part for me is having this contingent on a cell showing different route options. For example:

        If i select "ALL01" then Tuesdays and Thursdays will highlight
        If i select "CHI01" then Tuesdays and Fridays need to highlight

        The selections is being made in a drop down i created.
        The "ALL01" & "CHI01" are routes we use.

          1. Hazaaa!!!
            That worked - thank you so very much!!

  16. When we entering date 1/1/30 in excel its returning 1/01/1930 or 1/1/40 its returning 1/01/1940.I am expecting 01/01/2030 or 01/01/2040 in this case.Is it possible to fix this using conditional formating.I need to fix this in excel only.Can you please let me know best possible way.

      1. Thank you Alex. My cell has value 31-DEC-30 ,Converted cell to date format DD-MON-YYYY .Its converting to 31-DEC-1930. Getting year wrong in Excel 2016.I have column formula =IF(ISBLANK(X89),"",DATEVALUE(X89)).

        Issue:

        30 through 99 is interpreted as the years 1930 through 1999. For example, if you type the date 5/28/98, Excel assumes the date is May 28, 1998.

    1. AlexChanged system date settings.Still it’s not working.

  17. Hello. I have three columns of dates (all on the same row). I need column C to highlight green if the date is before both dates in columns A and B, highlight yellow if it’s before only one date (A or B) and past the other date (A or B), and highlight red if it’s past both dates A and B.

  18. Hi,

    How do I highlight the cells that are within the 9 hour shift per 1 hr interval. I already have the count which decreases when an employee ended the shift.

    Example: there are 5 employees logged in by 3pm. And within 3pm, it consist of the shift from 6am to 2pm. I would like to check if it is possible to highlight those 5 employees.

    1. Hello --

      Not sure if I'm following the right thread. But I'm in Google Sheet and I have the same exact problem.
      I wanna highlight cells that match another set of cells.

      For example : cell E4:O4 contains time - and below them are E8:M399 with time as well. And I want to highlight the time in cell E8:M399 to match E4:O4..

      I'm using =match(E8,indirect("SCHEDULE & COVERAGE!E4:O4"),0) applied to range E8:M399

      It actually works to all cells except if the time from E8 starts with 12am or 0:00
      It works if the time 12am or 0:00 is in the middle for example J8..

  19. I need a condition like previous month of 9th to current date is this possible in excel and every time previous month will be changed like this is october then the previous moth is september if the month is december then need to extract data from november 9th to current date

  20. Hi - I may be in the wrong place for this question, so apologise if I am.
    I am pasting a number of dates from a genealogy programme into an Excel worksheet. Some of the dates are day/month/year, some are month/year and some are just year. How do I format the column so they appear as they should do?
    If I format for day month year, then the "year only" dates are miss-interpreted, eg 1924 becomes 07/04/1905
    If I format for number, 01/07/1916 becomes 6027.
    Is there a conditional format solution to this?
    Thanks
    Jeremy

    1. Hello!
      1924 is a number, not a date. To get the date, you can use these recommendations: How to convert number to date in Excel. To convert a year number to a date, use the DATE function. For example,

      =DATE(A1,1,1)

      If you have a lot of different values that need to be converted to date, try Text to Date tool. It is available as a part of our Ultimate Suite for Excel that you can install in a trial mode and check how it works for free.

      1. Alexander thanks - I understand what you are saying but I can't find a simple way of formatting the column to display a consistent date when the input data is in 3 different formats (as described). I'll have a play and eg see if I can display all dates as simply a year eg 1950. I believe I may be able to do this by format/number/custom/ then type in yyyy?
        Jeremy

  21. Hi Alexander,
    In my column G I want all contract dates, expiring in less than 6 months highlighted in conditional formatting. I already found some codes but I'm receiving a "There's a problem with this formula." error. Maybe is it because I'm working on a macbook?

    Can you please help me? Thanks

  22. Hi!
    How can I format the cells containing hour info to indicate it started or ended according to the current time.
    Example;

    NOW() : 10:30
    START END
    event 1 11.11.2022 08:40 09:30 start and end should be coloured
    event 2 11.11.2022 08:40 11:30 start should be coloured
    event 3 11.11.2022 10:40 12:30
    event 4 11.11.2022 14:40 16:30

    1. Hi!
      You can find the examples and detailed instructions in article above.
      The NOW() function returns the date and time. To use time only, apply the formula

      NOW()-INT(NOW())

      Use conditional formatting rule:

      (A1-INT(A1))<(NOW()-INT(NOW()))

      I hope this will help.

  23. I have used conditional formatting on a spreadsheet. In it I have it set to figure the number of days since a unit has been cleaned and color code it to let me know how close it is to needing to be re-cleaned. My problem is that in the units that are rented, I did not populate the date of cleaning so it has no date to judge by and has put in a date of 6/28/1900. I am sure this is set up in the system but I want to find out how to set the cell up so when the date is left off it does not calculate anything and leaves the date blank. The formula I have used is: =(D+180) D is the ce3ll where I input where each unit was last cleaned. I want the cell to populate only if there is something in the D column.

  24. How can i entire row fill with color by conditional format when put in there random date in excel?
    Plz give some clue & more easier if you send some snapshot..?

  25. Hi all,
    How do I change the colour of a value based on how the number of that value in the column?

    Eg if date 01/01/22 appears in a column 5 times it will turn orange. But when that date appears 8 times it will turn red.

    Thanks

  26. Hello,
    I have created a spreadsheet and applied conditional formatting to my date column to highlight all future dates using the example above '=$B2>Today()'. For some reason it isn't picking up all of them.

    In one instance, when I sort by date it will highlight all future dates with the exception of the last row. That row will highlight if I add a future date to the row directly under it but the new future date will not be highlighted.

    If I resort by job number (different column) some of the previously highlighted dates are now not highlighted.

    I've confirmed the date column is all formatted correctly. I'm using Office 365 if you think that might be causing the problem.

    Thank you in advance for any help you can provide.

    1. Hello!
      The row number in the conditional formatting formula must match the number of the first row of the conditional formatting range. For example, for the range B1:B100 or B:B, you need to use the formula

      =$B1 > Today()

      Your formula "=$B2 > Today()" will work for a range, for example, B2:B100.
      I hope I answered your question. If something is still unclear, please feel free to ask.

  27. Hi,

    So I have a task list, and I want to use conditional formatting for two things. Number one, I want to highlight a cell that has been left blank in a range past a due date to complete the task. I have that due date represented in a cell in the same sheet, in case I need to make reference to that date in the conditional formatting formula. Additionally, I want to also highlight cells that reflect a date past that same due date, within the same range.
    I am having the hardest time, because all of the formulas I find use a moving date, usually in relation to today, or weekends, or holidays. I believe what I need should be much simpler than those. Help!

    1. Ok ok... I solved the the second part of my question with a pre-made, greater than formula. Still... the first formula I still don't know how to do it.

      As a reminder, I need the cells in a column to light up if the date on a cell that I will be updating every month has passed, and the cells in that column are blank, indicating the task has either not been completed, or the employee has not recorded their task. Please help.

  28. Hi All

    I really need your help.

    I have an inventory in and out log. It logs date an asset was issued and date it was returned. I have everything in a drop down menu and i need the following. these assets are loaned out on a daily basis and returned on a daily basis. (Or supposed to be) there are other assets issued on a semi permanent basis
    My drop down items on another sheet are (data validation):
    Issued (Conditional Formatting Turns the Cell Yellow if issued is selected)
    Returned (Conditional Formatting turns the cell Green if returned is selected)
    Semi-Permanent (Conditional Formatting turns the cell orange if semi-permanent is selected)
    Lost (turns red when selected)
    Stolen (turns purple when selected)

    If the cell with the date issued is today, the cell containing the selected status "Issued" turns yellow. Issued is a drop down item on another sheet.
    If the cell with the date issued is older than today and the status of the asset still says issued I want the cell to change from yellow fill saying Issued, to Red fill and say "OVERDUE" in bold white. OVERDUE is not a drop down item on another sheet.
    Essentially every night at midnight i want the status of the assent issued.

    Perhaps i should add OVERDUE to the drop down items but im really not sure

    1. Hello!
      The value in a cell with a drop-down list cannot be changed automatically. To change the value in a cell to “OVERDUE” according to the conditions, use the IF AND combination. You can change the color of this cell with conditional formatting.

  29. Hi,

    I have a table which contains two columns with dates. I want to highlight in one of the columns the dates that are greater with 3 or more days than the dates în the other column. How can i do this?

    Thank you.

  30. Hello,
    I am trying to create an expense reimbursement sheet for my office.
    I have a date column (to indicate when the expense was incurred), that people will manually fill.
    I would want a "Period" section that automatically fills out depending on those dates.
    i.e. An employee incurred expenses 03/01/2022 and 04/05/22. How can the period section automatically change to "03/01/2022-04/05/2022."?
    Thank you so much!

      1. Thank you!
        So I have done that, the issue is that the second "A2" will be changing depending on the number of items, that they will enter, so it sometimes will be A3 or A4, or A5, etc. I have also tried doing a Min Max and concatenate, but I feel I'm missing a part on that second part.

  31. Hello,

    Used the formula listed in this article:

    =AND(TODAY()-$D2>=0,TODAY()-$D2<=7) - highlight all rows where the End Date (column D) is within the last 7 days. You can use this formula to track the latest overdue payments and other delays. (I changed it to 120 days to see upcoming due dates within the next 4 months)

    But it only highlights the cell, not the row? How do I change it to highlight the row?

    Thank you!

  32. Hello,

    I hope this is easy and straightforward...I have a date column and I'd like to create another date column, but I'd like it to show the date that is 4 months ahead of the first date column. This would be part 1 of my question.

    Part 2 would then be, how can I get the row to change colour, once the date in this new column is going to occur in the next four months?

    Explanation: What I am trying to do is have rows be highlighted when a specific item is coming due within the next four months so that it will be visually flagged.

    Thank you for your time!

      1. Thank you! :-)

  33. hi,

    Im not sure why the following conditional formating formula doesnt work. Cell tresults in the table are references and formulas. No errors are reported when saving but nothing gets highlighted. I was expecting the 5th row (04/05/22 08:47 23/05/22 15:57) to get highlighted

    =AND($G5>NOW(),$H5<NOW())

    Colum G Column H
    Start Date Date Calc
    04/05/22 08:47 04/05/22 08:47
    04/05/22 08:47 04/05/22 08:47
    04/05/22 08:47 04/05/22 08:47
    04/05/22 08:47 04/05/22 08:47
    04/05/22 08:47 23/05/22 15:57
    23/05/22 15:57 02/08/22 23:48
    02/08/22 23:48 13/10/22 07:38
    13/10/22 07:38 23/12/22 15:28
    23/12/22 15:28 04/03/23 23:19
    04/03/23 23:19 15/05/23 07:09
    15/05/23 07:09 10/12/40 16:46

    1. ahhhh pls ignore the comment/question. just had the wrong way arround.

  34. Hi There! I've built two sheets in the same workbook: first, a list of teammates, their start date of travel, and the end date of travel. Second, I built a sheet with a calendar similar to yours above with "tasks," but instead it has team members in the first column. I would like the calendar to highlight the dates each team member is traveling referenced from the first sheet. Do you know how I'd do this? Thank you!

  35. Hi - I was hoping someone could help.

    I am trying to highlight rows based on months. So... if there was a date between 6/1/22 and 6/30/22, I need it to be a certain color, etc. Different colors for each month. I've read through conditional formatting and do not see how I add a date range.

    Thanks for your help!

  36. Hello! If I needed to highlight any cell on my worksheet that contained any date, how would I do that?

  37. I'm working on trying to conditionally format 1 column using a 3 color scale based off the dates within those cells. These are all shipping deadlines in, lets call it column C, which is linked to other columns based off of inbound ETA's. The minimum value would be 3 days or less to the date within said cell, midpoint would be 7 to 4 days within said cell and the maximum would be anything greater than 8 days. I've read this post a few times and can't exactly find a situation that I can model a formula off of but more than likely I'm so confused I just don't see or get it. The today function wouldn't work for this because the current date isn't a factor - the cells in question I've just added a formula to tack on 15 days from another date in a separate column which is doing a lookup in a different sheet. Point is the dates are constantly changing so not sure how to set up the formula / what technique to use to format.

    1. Hello!
      Create three conditional formatting rules for your conditions separately for each color. All examples are in this article. Instead of the TODAY function, use a reference to your cell with the date. I hope it helps.

  38. So I have a large excel sheet full of training dates expiry's
    I am trying to have it so 3 months before the training expiry the cell goes orange and on the day and after goes and stays red and green if the training is otherwise ?
    could you help please i really really need this would make my life so much handier for work

    1. Hi!
      I hope you have studied the recommendations in the tutorial above. Pay attention to the following paragraph – How to highlight dates within a date range. There is an answer to your question. Create a separate conditional formatting rule for each condition.

  39. Hi, I am trying to highlight dates that are a week from due and then others that are past due. When creating those rules it asks to highlight the cells. Some of the cells are not currently in use but could be added to later, is there a way to only highlight the ones that are in use and the blank cells are white until there is a date entered?

    1. Hello!
      Add a condition to the conditional formatting formula that the cell must not be empty. For instance,

      =AND(B1-A1<7,B1<>"")

  40. Help with filling of todays Date. If I fill something in column B todays date must fill automatic in column A.
    Please assist

  41. So I have a list of a bunch of different Dates and i need them to turn green after 7 days have passed from that date. Ex: the original date is 1/12/22 so the box should turn green on 1/19/22 what would be the formula for this ?

  42. I have a training spreadsheet that I need to have recognize training expiring next month, this month, and expired either in previous month or months. I know can do dates occurring for this month and next month but need more then one month back. I can't remember the formula to highlight something over 30 days past.

    1. Hi!
      Have you carefully read this blog post? It contains answers to your question.

      =AND(TODAY()-$D2>=0,TODAY()-$D2 > 30)

  43. hi,
    i'm new to excel, i'm trying to figure something out. i have a list of people who need to do recurrency training every 3 years. i have the date they did las training and used a formula to automatically fill in +3 years. what i want to find out how to do is, i want the cells to be green if their training is current, yellow 6 months before training is due and red if the date has passed. can you help me with this please?

    1. Hello!
      To write down a conditional formatting formula, check out this tutorial: How to add and subtract dates, days, weeks, months and years in Excel.
      Create rules with these formulas:

      =DATE(YEAR(A2), MONTH(A2) + 6, DAY(A2)) > TODAY() yellow
      =DATE(YEAR(A2) + 3, MONTH(A2), DAY(A2)) > TODAY() red
      =DATE(YEAR(A2), MONTH(A2) + 6, DAY(A2)) < TODAY() green

      I hope I answered your question. If something is still unclear, please feel free to ask.

  44. I have a row with a cell dedicated for each day of the month. I'd like to average the sums in the cells based on the current date. The average should include the amounts of all cells from days in the past (including empty ones) and exclude the cells with dates in the future.
    As an example: Let's say that it's the 4th day of the month and two cells contain 10 and two cells are empty. We know the average is 5 but using =IFERROR(AVERAGE(B5:AF5),0) forces me to input a "0" in cells dated in the past.

      1. Today is the 5th day of the month. Day 3 of the month (cell D5) contains 126.53.
        Following your lead I tried using =AVERAGEIF(B5:AF5, "<="&TODAY(), B5:AF5)
        That formula returns 126.53 because there is nothing else to average unless I input "0"s into cells B5, C5, E5, and F5.
        How can I tell Excel to output the average 126.53 based on the day of the month (without using zeros on the days gone past)?

          1. =AVERAGEIFS(B5:AF5,B4:AF4,""">=12/31/2021",B4:AF4,"<="&TODAY()) shows some promise but results 126.53 for an average of 5 days when it should result 25.31. (If I use zeros in the other 4 cells the correct average results.)

            1. Hi!
              To take into account empty cells in the AVERAGEIFS formula when calculating the average, try the formula

              =SUMIFS(B5:AF5,B4:AF4,"> ="&DATEVALUE("12/31/2021"),B4:AF4,"< ="&TODAY())/COUNTIFS(B4:AF4,"> ="&DATEVALUE("12/31/2021"),B4:AF4,"< ="&TODAY())

              I hope it’ll be helpful.

            2. Correction to above:
              =AVERAGEIFS(B5:AF5,B4:AF4,""">=12/31/2021",B4:AF4,"<="&TODAY())

  45. i have a spreadsheet with a list of employee's and their different types of training. i have used conditional formatting to highlight the cell in yellow when the expiration date is 30 days away and red on the expiration date. how do i get the cell to stay red then change to no background color until a new expiration date is entered ?

    1. Hello!
      Create another conditional formatting rule that will take effect as long as the date cell is blank.

      1. I am using a very large spreadsheet with names, dates, merged cells. I made a column selection that holds mostly date values but also names. How can I conditional format the columns that it only changes the date cells to a certain color?

        I am using =(beginning cell)<=TODAY()-365 but blank cells and name cells are also being modified. I want it to affect only date cells.

        1. Hello!
          Try adding a CELL function to the condition, which will determine the format of the cell.

          =AND(LEFT(CELL("format",D1),1)="D",D1 < = TODAY()-365)

          I hope it’ll be helpful.

  46. Thank you for this amazing support and guidance
    I am trying to use a yearly date range. For example, I have employees who have completed First Aid Courses and I need a reminder as when the qualification will expire onto a training matrix
    Would this be possible. (I have over 200 employees so impossible in Calendar.
    Thank you in advance

    1. Hello!
      If the validity period expires, for example, after a year, then the conditional formatting formula can be applied to the cells in which the date of completion of the courses is written:

      =D2+365>TODAY()

  47. I have a question. I have a certification grid using values linked to another spreadsheet. I have those linked correctly, but what I now want to do is create a conditional format for the date value in the cell +650 days (because it is a certification of every 2 years). This will tell us when they are 90 days away from needing to recertify, where the cell value is the date they last certified.

    Ex. Bill certified 1/20/2020, I want to change the color of the cell so that 650 days after that date, sometime in October, the cell will turn yellow indicating they are coming due for recertification. Then another condition for red cell, when they are 30 days away (700 days after).

    Is this possible with the current rule sets in Excel?

    1. Hello!
      I hope you have studied the recommendations in the tutorial above.
      Use conditional formatting formula -

      =D1+650

  48. Hi, I have a gantt chart that I have a date (say 7/10/2021) in col E and the number of day (say 5) in col F. I need to have the number of days highlighted in different colours depending on the category (say painter, green highlight) in col C - with the start date on the date entered in col E. I can't seem to figure out the formula for the conditional formatting rule to achieve this. Are you able to assist?

    1. Hello!
      You can learn more about conditional formatting based on another cell value in Excel in this guide. I recommend watching this video.
      I hope I answered your question. If something is still unclear, please feel free to ask.

  49. Hi

    Thank you so much your all your conditional formatting articles helped me a lot. I didn’t find an answer to only this question:
    I have a teacher working in two branches can we combine two conditional formatting rules (duplicate n between) or any other formula to prevent me giving the same time slot or in between times to same teacher in a different branch

    Ex br 1 Mr.X. 13-17

    br 2. Mr.X. 13-17 or in between times likes 15-16 ( a colour to indicate the mistake) since during that time he’s already working.

    Thank you

  50. Hi Alex,

    I hope you can help me with the following issue:
    In my school, I have created a form in which teachers can use to fill out when a student has detention. Teachers have the ability to click on the first column to select a date, put the student’s name on the next column, and so on.
    In the past, I’ve made it so that if a certain number of students are put on the list for a given day, the row turns red. Our detention room only has 12 seats, so I didn’t want teachers assigning more than 12 students each day. So, when a teacher selects the same date on a 13th row, the whole row would turn red, which they would automatically know that the detention room is full and same that entry for the next day.
    The problem I’m having is that I forgot how to create this again. Someone messed with my settings and I can’t remember how to duplicate this again.
    How can I get this done??
    Thank you!!

    Victor

    1. Hello!
      This formula for the rule of conditional formatting highlights the color of all values, the number of which in the column is greater than 12.

      =COUNTIF($A$2:$A$1000,A2)>12

      I hope my advice will help you solve your task.

Post a comment



Thanks for your comment! Please note that all comments are pre-moderated, and off-topic ones may be deleted.
For faster help, please keep your question clear and concise. While we can't guarantee a reply to every question, we'll do our best to respond :)