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 8. Total comments: 1245

  1. Hello sir,
    I'm preparing sheet name issued material list and i want to apply condition formatting on this sheet
    ex. i issued one shoes or helmet on current date n the reissued time is 6month
    i want to apply condition on current date
    the color will be change when it expire . can u plz help me

  2. Hi Alex,
    Great post!
    I would like to alternate colors of date range based on fiscal year from June to July (following year).

    Many thanks in advance.

  3. 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

  4. 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.

  5. We have dates in column D. We would like to add a condition when it is 1 week past the date it changes colour, then again when 2 weeks past date to a different colour and again when its past 3 weeks. What formula would use per week?

    Thanks,

    Kasey

    1. Hi!
      Please re-check the article above since it covers your task. Pay attention to the following paragraph: Conditionally format dates based on the current date.

  6. 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. Hi!
      Have you tried the ways described in this blog post? Pay attention to the following paragraph of the article above - Conditionally format dates in Excel based on the current date. If they don’t work for you, then please describe your task in detail, I’ll try to suggest a solution.

    2. 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.

  7. i have put this formula in my excel conditional formation but it show me date of one day before Sunday. =WEEKDAY($B3,2)>6
    please can you help me out.

  8. 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.

  9. 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.

  10. 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.

  11. Hello there!

    I am trying to highlight cells using different colors, based on how far away they are, both upcoming and having passed.

    Scenario: I have a deadline for an agreement listed in my spreadsheet. The day is coming up and I would want it to turn yellow when it is 2 weeks away and red when it is one week away or less.

    Scenario 2: I have a date that has passed and I would want it to turn say orange when that date is 3 weeks ago, then red when it is over a month ago.

    I have found things that seem like they should work, using formulas like =TODAY()-C4>30 but I can't seem to make them work.

    Please help. Thank you.

    1. Hello!
      Have you tried the ways described in this blog post? Unfortunately, I can't create conditional formatting in your table. If you want to highlight other cells based on the cell with the date, then I recommend that you study this instruction.

  12. (duplicate and corrected)

    I stopped reading at September 2021. Appreciate the time you take to answer the inquiries. Thank you. I couldn't find how to answer my question in some of the replies and am not familiar with Excel or formula use except little by little over time. My question is:

    I have been using the COUNTIF to find specific text within a cell. I am *now trying to do the same with the date, specifically the last 30 days. So within a text, there will be a date followed by a varied comment. I am trying to yellow fill and red annotate that comment for the last 30 days.

    If you can assist, please advise.

    -THANK YOU

    1. Hello!
      To find specific text in a cell, it's best to use the SEARCH and FIND functions. Your explanations are not very clear. But to set the background of a date cell with a specific color, use this article's recommendations. However, it is not possible to change the color of only part of a cell.
      If date and comment are written in the same cell, then you need to extract the date from the text: Regex to extract date from string.
      Describe your problem in more detail and maybe I can help.

  13. Hi, i need help to create a conditional formatting rules that automatically highlights that date before 3 months , like if its 14/01/23 it highlights it when 14/11/22 . Can you help me , i did read the tutorial but i dont understand , can you give the simple sample rules.

    1. Hi!
      Pay attention to the following paragraph of the article above - How to highlight dates within a date range.

      Formula to highlight future dates more than 90 days from now: =$A1-TODAY()>90

      You can also add 3 months to the current date and compare it to the date in the cell:

      =DATE(YEAR(TODAY()),MONTH(TODAY())+3,DAY(TODAY()))>A1

      The following tutorial should help: Subtract dates in Excel; add days, weeks, months or years to date.

  14. 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!

  15. 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! :-)

  16. 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.

  17. 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!

  18. TaskAID Associate Start Time Start Time (Mins) End Time (Mins) Duration (secs)
    ab1 1 def1 4/20/22 6:30 6:30:00 AM 6:30:16 AM 16
    ab2 2 def2 4/20/22 6:30 6:30:00 AM 6:30:16.5 AM 16.5
    ab3 3 def3 4/20/22 6:30 6:30:00 AM 6:30:16.2 AM 16.2
    ab4 4 def4 4/20/22 6:30 6:30:00 AM 6:30:18 AM 18
    ab5 5 def5 4/20/22 6:30 6:30 AM 6:30 AM 19
    ab6 6 def6 4/20/22 6:30 6:30 AM 6:30 AM 22
    ab7 7 def7 4/20/22 6:30 6:30 AM 6:30 AM 19.5
    ab8 8 def8 4/20/22 6:30 6:30 AM 6:30 AM 18.7
    ab9 9 def9 4/20/22 6:30 6:30 AM 6:30 AM 15.4
    ab10 10 def10 4/20/22 6:30 6:30 AM 6:30 AM 15.9

    Want to create a stacked bar chart (gantt chart) kind of chart with start time on the x-axis and a line or block starting at time t (start time) and extends till the start time + duration and a gap of time t1 (start time of next task - stop time of previous job by the same individual
    need to plot the same row for multiple individuals who performed multiple tasks

  19. I've been using a 12 month calendar on one of my worksheets in my document. The dates used to "gray" out as the date passed, but for some reason it no longer does this. I didn't create the document and the person who did no longer works here. I don't see any conditional formatting in the worksheet, so I'm not sure how to fix it. Any help would be greatly appreciated.

    1. Hi!
      Pay attention to the following paragraph of the article above: Conditionally format dates in Excel based on the current date. Use these recommendations and set the desired color for dates less than the current one.

  20. 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!

  21. Greetings smart people!

    I've tried applying the information gleaned from this article, but I'm having some difficulties.

    I have a "graphics board" that I enter data into daily, wherein outstanding graphic requests are listed containing the Order Date, Due Date, the Approval Date for a given order, and other information.

    What I'm trying to do, is to highlight any rows where the Approval Date (Column G) is equal to or less than 2 days from the Due Date (Column H), not including weekends.

    As a bonus note, I'd ALSO like to automate additional formatting for the "Order Date" field (Column D), where affected rows are further modified if the values are equal to or less than 3 days from the Due Date (again, not counting weekends.) If I can fix the formula for the Approval vs. Due Date argument, I'm sure I could duplicate it for the other two columns.

    Grateful for any help you folks can provide!

    Thank you,

    Miranda

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

  23. I have read and looked at this thread and by far it is very detailed and more comprehensive than any other resource out there.
    I have been trying to build conditional formatting formula for a sequence of logical arguments working with 2 columns that have different dates. My table is a blank table that needs filling in.
    I need conditional formatting to highlight the entire row based on logical arguments based on the 2 dates from 2 columns, for instance if one date is earlier than today and the second date from column is an empty cell, to be yellow and the rest of the table not to be formatted. I sort of figured out 2 arguments with and formula and dates on the other column, but I need if possible to create if that particular cell is blank.
    If not how could I link the argument to an additional column that has text as yes it no.
    In conclusion I will need 4 formulas and not sure which one is taking priority and hie to have 4 colours on my table.
    Thank you very much!
    Best regards
    Nico

  24. 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.

  25. 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.

  26. Good afternoon sir, the situation is like this, on the top it's categorized as per month from January to December, and I have a date and due date on the left side, by subtracting the date and due date, how can I make the difference of date and due date appear on the exact month with conditional formatting?

    1. Hi!
      Have you tried the ways described in this blog post? If they don’t work for you, then please describe your task in detail, I’ll try to suggest a solution.

      1. Good morning sir from the Philippines.

        Yes sir, the formulas are working but it will take time for me to do that, because I have a series of dates and due dates on the left side, if I drag it all down it will be okay for that certain month, but if I drag the formula to the right since the months starts with January the formula will not work, for the formula is just for January only.

        My worksheet on the left side column A the name of the product, B and C are the dates and due dates respectively, for Columns D onwards are the months starting January to December. What I wanted to do for example, the due date is on January 7 and the date will be January 9 so the difference will be 2 days, making the formula it will pop 2 days under the month of January, but for the other list with other months doesn't fall for the right month with their difference in days.
        That's my problem sir, the differences made from other products list doesn't fall for the right months as the products list with their due dates.

        Thank you for the help in advance.

        Your help is always appreciated...

        1. Hello!
          I’m not sure I got you right since the description you provided is not entirely clear. However, it seems to me that the formula below will work for you:

          =IF(MONTH($C2)=COLUMN()-3,$C2-$B2,"")

          Write this formula in D2 and copy it to the right along the row. The MONTH function will determine the desired month.

          1. Good morning sir, what I meant to that statement was, the difference of the given date and due date should fall under the months given. For example,
            Due date is January 7, date finished is January 9 their difference is 2 days right, so the 2 days difference should fall under the Month of January.
            But if the next product's due date is February 9, and it finished February 12 their difference would be 3 days and should fall under the month of February.
            The difference of the series of products have different Due Dates that should fall under its respective months.
            My point sir is when I drag the formula down and from left to right, it doesn't go that way, the difference of the day doesn't fall on the exact month. If the due date's on January the difference should fall on January but if it's on April the difference of the day should fall on April too, from the column D - Column O (January to December)

            I will try the method you have given.

            Thank you for the support and it's always appreciated.

  27. 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<>"")

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

  29. 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 ?

  30. 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)

  31. 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.

  32. Hello, i just have a question:

    I'm building a vacation planner and I would like to highlight all days between start date and end date which are going to be inserted in another excel sheet.

    In the main sheet there's the table with all days of the month/year, in another sheet there's all information about permissions and related date.

    How would you manage that using conditional formatting?

    Thanks in advance

    1. Hello!
      I hope you have studied the recommendations in the tutorial above. It contains answers to your question. Pay attention to the following paragraph of the article above - How to highlight dates within a date range.

  33. 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())

  34. I have a spreadsheet to track assignments. Column G contains the dates the work was assigned. Column I contains the dates when each assignment was completed. If it was completed more than 30 days from the date assigned, I would like that cell to highlight yellow. What formula would I use for this?

    For example:
    G2 shows that an assignment was made on 07/20/2021
    I2 shows that the assignment was completed on 09/13/2021

    I would like cell I2 to highlight letting me know the work was completed more than 30 days from the assigned date.

    Thank you for any guidance you're able to provide.

  35. 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.

  36. Hi can anyone help me how to formula this
    A B C D
    - 17-Jun-20 17-Jun-20 - I need this part to be Null or Zero.
    6,000.00 28-Dec-20 29-Sep-21 29-Sep-21
    50,328.00 20-Oct-20 20-Oct-20
    - 07-Jan-21 07-Jan-21 - I need this part to be Null or Zero.
    336.00 22-Mar-20 04-Oct-21 04-Oct-21
    - 22-Mar-20 04-Oct-21 04-Oct-21 - I need this part to be Null or Zero.

    in the 1st column A1 is blank then D1 should be blank as well
    I used the formula for B & C
    =MAX(IF('LPO & INVOICE (2020)'!$C$6:$C$548='LEDGER LPO & INVOICE (MIX) (2)'!C197,IF('LPO & INVOICE (2020)'!$D$6:$D$548='LEDGER LPO & INVOICE (MIX) (2)'!$G$5,'LPO & INVOICE (2020)'!$K$6:$K$548)))

    to locate the latest dates on each sheets.

    1. Hi!
      It is very difficult to understand a formula that contains unique references to your workbook worksheets.
      What does the “17-Jun-20 17-Jun-20 – I need this part to be Null or Zero.” phrase mean? Your explanations are not clear.

  37. Hi! Looking to create a sheet where I can highlight based on a time frame. I need time windows every 2 hours starting at 8:30AM and ending at 4:30PM to be in one color but 4 different shades going from lighter earlier in the day to darker later in the day(Ex 8:30AM-10:30AM would be light blue, 10:30AM-12:30PM would be a darker blue and so forth). and with that same formula have it switch colors based off the name input. (Ex Mark would be blue - in four different shades. and Joe would be red - in four different shades. and Aaron would be green, etc.) That would be for a calendar month and able to put multiple on a single day. (Ex Mark has a job at 8:45AM and 2:30PM - that would be the lightest blue and darkest blue. but then joe has a job at 8:45AM, 11:00AM, and 2:30PM as well as Aaron has a job at 9:00AM and 1:00PM). How in the heck would I even do this???

  38. 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()

  39. 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

  40. 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.

  41. I am trying to use conditional formatting to change the colour of a cell if the time is over 4 hours, 5 hours, 9 hours for the spredsheet to correctly determine break eligibility. I've currently got the cell F4 calculating the difference in time (E4, D4), and when i go to format G4 to change colour depending on the value in F4 it wont recognise the value as it is in Time format. is there a way around this? Happy to provide screenshots.

  42. Hi there,

    I reconcile spreadsheets monthly. A report is generated the 3rd friday of every month.
    17-Sept-21 is the last date of the report. It is in cell D3. This number will get updated every month.

    Now I have 30 spreadsheets to reconcile. I don't always get to them every month.

    I want to used conditional formatting. I really would like the Icon set to appear in the Cell D beside the last reconciled date in that cell for that spreadsheet number.

    green check if is is within 30 days
    yellow ! if is is 60
    red X if it is 90.

    I had it on friday then my spreadsheet crashed and didn't auto save and I can not figure it out again.

  43. 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

  44. 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.

  45. Hello!
    Thank you for sharing...great article!

    How do you use conditional formatting in identifying date and time conflicts? Date in one column and time (24:00 format) in another column?

    Thank you!

  46. Hi,
    How do I put conditional formula for time.
    Eg : if the Time is 10:09:33
    then I want to put conditional formula as if time is before 10am or after 10 am..
    Please help

  47. Excellent blog!!! It was very helpful and was able to solve few of the problems using the techniques listed here. Thanks a ton and keep sharing your knowledge.

  48. I've tried running the "How to highlight dates within a date range" formatting but I'm finding that the last date in the range is coming up in the wrong colour. So for instance I want under 10 days listed red, 11-15 in orange and anything over 15 days green, however I'm finding that the formula works except for the last one in the list. For example I'll have 5 27.08.2021 then 4 31.08.2021. The first four of the 27.08.2021 change to the right colour but the 5th one is getting assigned the colour of the 31.08.2021. Hope that makes sense!
    Any suggestions as to what I am doing wrong?

  49. Thank you Alexander for ALL of your help! I do have one more question. If I used the "today" format, and I want it to calculate 1 year AND 1 month from then, would I use 395 instead of 365 at the end of my formula?

  50. I’m building a gantt chart and I’m trying to add an icon in conditional formatting to represent my milestones but I have not had any luck is there a formula that I could use to get it to work??

Post a comment



Thank you for your comment!
When posting a question, please be very clear and concise. This will help us provide a quick and relevant solution to
your query. We cannot guarantee that we will answer every question, but we'll do our best :)