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 5. Total comments: 739

  1. If the date in H7 is before the date in G7, I want the font color to be green. If the date in H7 is after the date in G7, I want the font color to be red. How do I do that?

    1. Hello, Nicholas,

      you need to use the most basic formulas that will compare dates in conditional formatting, like the one below:
      =H7this article to learn more about conditional formatting.

  2. Hi is there a way I can highlight dates in a column that cannot exceed another date in another column? For example, I have a spreadsheet where one column consists of dates where patients received their services and another column expressing their discharge date. I want to look for any discrepancies where the service dates exceed the discharge date.

    Thank you.

    1. Hi, Kelly,

      you need to create a simple conditionally formatted rule where one date (let's say, in A1) is bigger than the other (for example, A1>A2).
      Please take a look at this point of the article to learn the principle. You can adjust the formula, simply change "TODAY()" to the cell that contains other date for comparison.

      Hope this helps!

  3. In your first example of using the built-in date conditional formatting I had already done this, but I would like to have it format the entire row instead of just the cell. I have three conditions set up.
    1. Is anything "This month"
    2. Is anything "Next month:
    3. Is anything before today.
    1 overrides 3. My formatting works well, but I wish this set up would highlight the entire row based on these conditions as opposed to just the cell. Anything further than the next month will not need to be highlighted, but this will be an ongoing spreadsheet with changing dates as information is updated.

    1. Hello, Adam,

      to format the entire row you need to open Conditional Formatting Rule Manager (Home tab > Conditional Formatting > Manage Rules), select the rule and enter the whole row to the Apply to field (e.g. B:B, or A1:C1 supposing you have 3 columns).

      If you don't want the other rules to be applied when the first condition is met, make sure to select the Stop If True check box next to those rules in the same Conditional Formatting Rule Manager.

      Hope this helps.

      1. This works for columns, but not rows. If I go to manage rules and select a bunch of rows (say 2-11) it still only highlights the cell within that date range, not the entire row. I have columns A-M and the only column where the date range matters to me is column I. My conditional formatting works to highlight dates in a range in that column, but I would like it to do something like highlight all of row 3 if the date in column I falls in my range, instead of just cell I3.

        Thanks for your help.

  4. Hi
    I have a list of various deadline dates. I would like to add a column for "activity start date" which would be fixed at 2 weeks prior to the deadline date - so the formula would be the same but the actual dates will all be different

    Is there such a formula as "activity start date" = "deadline date" - 2 weeks

    deadline start
    31.6.2017 needs formula to calculate and input "17.6.2017"

    Thanks
    Paul

  5. I have a spreadsheet where I have a sent date and to be completed date. If the Sent date is between 7-13 days before the to be completed date it needs to be yellow and no color if it's 1-6 days before the to be completed date. If the Sent date is more than 14 days after the date to be completed date it should turn red. Now if the project was completed in the time frame and there is a Y in the completed column the cell needs to go back to join color. Someone please help me!!!

    1. Hello, Heather,

      since you have 4 conditions, you will need to create 4 rules for conditional formatting using AND function. Also you need to know how to subtract dates in Excel.

      So, if your Sent date is in A2 and To be completed date is in B2, your first rule will be like this:
      =AND((B2-A2)>=7,(B2-A2)<=13)
      Choose the filling, make sure to apply it to =$A:$B, and check the Stop if true box.

      Please use this example and the links above to learn more about all this functions and create the rest of the rules.
      Hope this helps!

  6. Hi,

    Id like to know what formula to use to between two different columns using dates where column A would have 16/06/2017 and column B would have 17/06/2017 so I can tell if the date in column b is greater and have it highlit red in formatting please which i can do using =$A$1<$B$1 and formatting it red, what i am struggling with is applying it across the entire two columns for all dates as it wants to keep using cell A1 only

    1. Hi, Jake,

      if I understand your task correctly, the rule you're using - =$A$1<$B$1 - is correct, but you need to make sure that it applies to =$A:$B. Then both of you columns will be filled with red if the date in column B is greater than the date in column A.

  7. Hi Svetlana Cheusheva,

    How to highlight a cell by entering different dates.

    For Example: i want to highlight dates from 1 to 5 GREEN, from 6 to 10 BLUE and from 11 to 15 RED.

    Thanks.

    1. Hi Mudassir,

      I assume you want to highlight dates depending on the day of the month. If so, set up 3 different rules for your range of dates with the following formulas, and choose a different color for each rule:

      1 to 5 GREEN: =AND(DAY(A1)>0,DAY(A1)<=5)

      6 to 10 BLUE: =AND(DAY(A1)>5,DAY(A1)<=10)

      11 to 15 RED: =AND(DAY(A1)>10,DAY(A1)<=15)

  8. I am trying to get a cell to highlight "good" in green if a date is met and "rescrub" in red if the date goes beyond the required date. For instance, reports are due by the 20th of each month. How can I insert the above parameters if the date is met or not met?

    1. I also would like to know..

  9. Hi

    I have a date received column (Column A) and column titled notice of complaint issued (Column B). I want the notice of complaint issued cell to highlight red if the date entered is more than than 28 working days after the date received.

    Struggling to get anywhere near working that one out, so any assistance hugely appreciated.

    Thanks
    Rob

    1. Hi, Robert,
      first of all, you need a formula which will count the number of working days between your dates – that would be Excel NETWORKDAYS function (you can read more about it here). The next step is to use this function when creating a formatting rule for your cells:
      =NETWORKDAYS($A2, $B2)>28

      Follow the steps from the article to create a formatting rule using the formula above. Hope it helps!

  10. Hello,
    I have not really found an answer to my problem and I hope you can help me.
    I am comparing 2 days and 14 days difference
    Column B (arrival date): 30/08/2017
    Column A( expected delivery date): 15/08/2017

    If Column A has less than 14 days after the arrival date (Column B) to be highlighted in red, also if the date is even before the arrival Date (Column B) also to be highlighted in red.

    Many thanks in advance

    1. Hello, Dilyana,
      for your first condition, you need to create a formatting rule with a following formula:
      =($B1-$A1)<14
      As for the 2nd one, please, explain in more details the condition you wish the dates to meet.

  11. Hi,
    In my spread sheet I want to highlight an entire row based on the year, i.e. rows with 2016 to be blue, 2017 to be green. The cell will contain a full date - 2016-11-30 - but I don't care about the month or day. The only information I have found seems to be on months and days. Can you help me?

    1. Hi, Elizabeth,
      there are other ways you can play with.

      One of them, is to create a new formatting rule, where you choose Format only cells that containspecific text - containing – end enter 2016. And make these cells to be filled with blue. Same goes for 2017 – a new rule with a corresponding text value and colour in the rule.

      Another way is to use YEAR function. Let's say you enter dates into A column, and there's 2016-11-30 in A1. You create a new formatting rule with a next function:
      =(YEAR($A1))=2016
      But the same should be done for dates that contain 2017.

      Hope it'll help!

  12. Hi,
    I have a question - i have a sheet with multiple columns, now for example if i put a date in column R then i would like the entire row to be orange, later once i decide to put a date in column S then the same row should turn Green. How do i do this.

    1. Hi, Bosco,
      are you going to put only dates in these columns? If so, you can create two formatting rules that will check if those are blank or not. The formulas for the rules are:
      =$S1<>"" and =$R1<>""
      If your data begins from the second or the third row (and so on), change the number in the formula accordingly.

  13. I am trying to format one cell to highlight when the year isn't current. The names listed must complete a task at any date during the current year. After December 31st of each year, the task is overdue. The cell currently has only the year, but it would be nice to have the actually date they completed the task and still have December 31st of the current year as the condition. Thanks for your assistance.

    1. Hello, Sherry,

      if the cell to format is A1 and it contains a full date, use the next formula in conditional formatting:
      =YEAR($A1)<YEAR(TODAY())

      If there's only a year entered into the cell, the formula will be:
      =$A1<YEAR(TODAY())

  14. Hello,

    I need help, I want to change the dates font color to be black in cell A, if cell B is "done", else keep the due date in red in cell B.

    For exmp:
    Cell A1 =today()
    Cell A4 due date is 4 March 2017 (it is in red if expired)
    Cell B4 is keep counting the over due days
    Cell C4 is where the payment is still in debt. But once the payment is fully paid, cell B turned to "done" automatically. When cell B is "done", the due date in cell A is black again instead of red.

    up to now i am using the format as below

    cell B with: =IF(C4<=0,"selesai ",(A4-A$1)
    For Cell A4 I am using Conditional formatting rules manager

    I am using windows 10

    Thank you

    1. cell B with: =IF(C4<=0,"done",(A4-A$1)

  15. I have an interesting problem. I have a spreadsheet that has 3 sheets, one as an overview that the workbook opens to, and 2 with expiration dates.
    The expiration dates are on Emp_Data sheet and Vehicle_Data respectively, I use the formula on the main page to calculate remaining time before expiry:
    =IF(DATEDIF(B2,Emp_Data!B4,"y")=0,"",DATEDIF(B2,Emp_Data!B4,"y")&" years,")
    &IF(DATEDIF(B2,Emp_Data!B4,"ym")=0,"",DATEDIF(B2,Emp_Data!B4,"ym")&" month(s), ")
    &IF(DATEDIF(B2,Emp_Data!B4,"md") = 0,"",DATEDIF(B2,Emp_Data!B4,"md")&" Days")
    This formula removes the year/month/day if it returns a 0. B2 is the current date, and Emp_Data!B4 is the expiration date.
    What I want to do is have conditional formatting for dates that go below 15 days remaining, and another for fields that are above 15 days. Because I use separate sheets, it does not seem to be possible. I have attempted to use condition formatting for numbers, text, and dates for the field, to no avail.
    I have attempted to use a formula to convert the remaining time to days, in a separate field, however, I cannot apply conditional formatting with just one field, as they are all different dates.

    1. You can actually do this. When you are in the conditional formatting screen, you click on the button at the end of the text box and you can change the sheet that it is pulling the information from.

  16. hi,

    thanks alot for this useful tutorial, and i have a question :

    i am trying to use those 2 conditional formatting formulas :

    =AND(E$2:K$2=TODAY()+1,HOUR(NOW())>2)

    and this formula :

    =AND(E$2:K$2=TODAY(),HOUR(NOW())<=2)

    where the range E$2:K$2 is a table head and contains a sequence of current week dates

    i want to highlight the column in the table which has tomorrow's date on the table head cell only if the current real time is after 3:00 AM, And if not, i want to highligt the column which has today's date (not tomorrow's) ?????

    note : the range that each of the 2 conditional formatting formulas applies to is $E$4:$K$134 which is my table without the head cuz i don't want to highlight the head.

    i am getting tired trying to do that, can u help me?

    and thanks alot :)

    1. hhhhhhhhhhh finally it worked ! Yes !!

      the right formulas should be :

      =AND(E$2=TODAY()+1,HOUR(NOW())>2)

      =AND(E$2=TODAY(),HOUR(NOW())<=2)

      still really want to thank u, ur tutorial helped me alot, thanks.

  17. Hi team,
    Please, can you help me with this?

    I have a spread sheet which contains a date range i.e. 12/02/17 ( column B ) and 13/04/17 ( Column C ) ( Both in Row 2 ). I would like column B and C to turn yellow if Today's date is in that range only.

    Thank you in advance ! Really appreciated !

    1. try selecting column B & C then make conditional formating which contain the following formula :

      =B$2:C$2=TODAY()

      and choose the wanted formatting

      1. Thanks Jim, but that formula did not work. We are looking to use a formula that will format a time period window. Example we need Cell B2 and C2 to change formatting when todays date is less then C2 and greater than B2.

  18. Hello,

    I have a spreadsheet where all I need to do is for the row colour to change to grey when the date at the beginning of the row is in the past. I can't find the formula anywhere that will make it work!

    Thanks

    1. try selecting the rows then make conditional formating which contain the following formula :

      =$A1:$A9<TODAY()

      where i suppose that A is the column that has the dates (the rows heading), and the rows is 1 to 9

      and choose the wanted formatting (gray)

  19. i have successfully formatted dates in relation to today as i wanted, with your help thanks.
    however it is formatting when no date is inputted in the cell. how do i correct this?
    =TODAY()-$B$4>=15 (highlighted RED) this is the format used.

      1. Works great thanks.
        another i can do this for a single row, however when i try to apply to the rest of the page this is still referencing the original cell $B$4.
        how to I make it reference the corresponding row C4 D4 etc.
        i have tried removing the $ but this makes the formula invalid.

        help

  20. Hi, could you please write for me the formula for calculation the duration between two dates with a condition like

    10 Aug 2016 but it is required to consider 21 Oct 2016

    Minus

    21 Nov 2016 but it is required to consider 20 Nov 2016

    Required date difference is (21 Oct 2016 - 20 Nov 2016)

  21. I have a spreadsheet with various dates - two of which are:
    Start Date Actual completion date

    I want to be able to add a colour to the Actual Completion date field if the date entered is 30/60/90 days after the start date (ie 30days=green,60days=amber, 90days=Red) but I can't work out how to do it.
    Can you help please

    1. Hi Karen,

      You can create three rules with the following formulas:
      1. For the red color:
      =$B1-$A1 >= 90
      2. For the amber color:
      =$B2-$A2 >= 30
      3. For the green color:
      =$B2-$A2 < 30
      Make sure that the rules are in the following order: red, amber, green.
      The Start date values are in A1:A100, the Actual completion date values are in B1:B100.

  22. Hello,

    I have created a live-spreadsheet for Orders with 'Date Required' and 'ETA' columns in them.

    I would like the dates in the 'ETA' to be highlighted if they are greater than the dates stated in the 'Date Required' column.

    I can get this to work on individual Rows through Conditional Formatting but cannot repeat the process on a large scale through-out the entire sheet.

    Please let me know if you can help.

  23. Hi
    I need to highlight time in Green if within the 30 minute window of the stipulated shift timings and Red everything beyond that. We have 3 shifts with 9am, 10am & 11am.
    Can you help, I am struggling to do that.
    Thanks & Regards

      1. Hi Team,
        This is how it is and I need to highlight the one's which are compliant within the agreed time in that shift

        In Timing
        S.#Name Shift (AM)Monday Compliant Tuesday Compliant
        1Aditi 10:00 9:00 Yes 9:15 Yes
        2Anshuja 10:00 10:00 Yes 9:45 Yes
        3Archana 11:00 11:00 Yes 11:00 Yes
        4Arunjit 11:00 10:25 Yes 10:45 Yes

  24. I have a date in column e and then in column f I have added 3 years to when I need an update to renew what is in column e. Now I would like to know how I can get column a to turn red when it is 60 days before column f is due.

  25. Hi
    Cell A2 is the Invoice Submitted date (1 Sep 16) and B2 is the payment release date ( 10 Oct 16). Now I want the entire row to be highlighted in yellow color 10 days before the payment clearence date is near
    And second I want the entire row to be highlighted in red color if payment is not done on time

    1. Hi satya,

      You can create two rules with the following formulas:
      1. For the red color:
      =$B2-$A2>=10
      2. For the yellow color:
      =$B2-$A2<10
      Make sure that the rules are in the following order: red, yellow.

  26. Hello, i'm creating the list of documents in my storage. In column E i have "Retention Start Date, column F is "Retention Period. and column G is "Retention End Date". What i would like to do is to get the cells in the "Retention End Date" to turn red when it reaches a end date in real time. For example, if the start date is 10/12/16, and retention period is 7 years, the next column would be 10/12/23, and it should only be highlighted in red when the end date is equal to the computers date. Is this possible? How can i do this?

    1. Hi Hamizan,

      You can create a rule with the following formula:
      =$G2=DATE(YEAR($E2) + $F2, MONTH($E2), DAY($E2))

  27. I have to log complaints in a database and am looking for a better way to follow-up if there has been no response provided. I am to receive a response within 48 hours of receipt of the complaint. I would like to use the conditional formatting to highlight the date received column for the complaints I have not received a response from within this time-frame.
    So far this the formula I have come up with =IF(IF(Y2="",IF((TODAY()-$A2>2),"followup",""),"")="followup",TRUE,FALSE).

    After using this formatting, in the "Date Received" column it didn't highlight the date of the complaint that has the "Date Resolved" cell blank/gone beyond the 2 day timeframe. I don't know exactly what else I need to input to make it work, but I am determined to figure out why.

    Thanks I hope this make since!

  28. Hi,
    I have a spreadsheet used for tracking training dates for employees and supervisors. I need a formula for highlighting the supervisors recurrent training date a year from their initial training for just 1 column. I used the formula: =TODAY()-$L4>=365 and formatted it to turn red when it is over a year, which worked great; however, not everyone on the spreadsheet is a supervisor so those cells under that column are either blank or "N/A". How do I include the blank and N/A cells so they are not highlighted?

  29. Hi,
    i've been working on this spreadsheet which has a column for the "date of recieving comments", and another for "date of resubmission".Assuming we hav 13 days time between the 2 dates, is it possible to include a column that alerts about the deadline.
    can u suggest a method to do it?
    thanku

  30. Hi,

    Please help, =IF(DAY(F6)=1) is not working in my sheet. i want to change the dates 1-7 = Color 1, 8-15 = Color 2 and so on...

    Thanks

    1. Hi ripudaman,

      You can create different rules to change the color, for example:
      1. For 1-7 days:
      =DAY($B1)<=7
      2. For 8-15 days:
      =AND(DAY($B1)>7, DAY($B1)<=15)

  31. Hi

    Can you please tell me how can I find a number of particular value from a column...

    For e.g.: suppose 'Type' column has five type with 1000 records I want to find a number of records belong to particular type in a different excel sheet cell.

    Thanks.

  32. WORKDAY will work perfectly for what I need to do, but I want to include weekends in my calculations. What formula do I use instead of WORKDAY?

    1. Hi Aly,

      If you are referring to the formula in comment 252, you can just use the TODAY() function:

      Golden rule: =AND($A2>=TODAY()-2, $A2<TODAY())

  33. Please help me of my worksheet I need formula that will notify me the start date and end date. Thank you Svetlana.

  34. I currently use an Excel spreadsheet to track patient appointments and due dates for quarterly/annual exams, etc. I would like to be able to enter the date of the last exam and use conditional formatting to program the cells to change color as the due date for their next appointment becomes more and more urgent. If a patient was seen 12/1/16, would need to be seen again after one year. I would like the cell to turn yellow after 6 months, orange after 9 months, and red when overdue (after one year). Can you help?

    1. Hi Calvin,

      You can create three rules with the following formulas:
      1. For the red color:
      =TODAY() >=DATE(YEAR($A1) + 1, MONTH($A1), DAY($A1))
      2. For the orange color:
      =TODAY() >=DATE(YEAR($A1), MONTH($A1) + 9, DAY($A1))
      2. For the yellow color:
      =TODAY() >=DATE(YEAR($A1), MONTH($A1) + 6, DAY($A1))
      Make sure that the rules are in the following order: red, orange, yellow.
      The "patient was seen" values are in Column A.

  35. I am trying to create a spreadsheet using hire dates, to alert me to when an employee's anniversary is coming up that month! What formula would I need to use in conditional Formatting in order to achieve this goal?

  36. I have 2 columns. One is the start date, the other is the end date. I would like the third column to show "Active" or "Expired" depending on the "end date" in column 2.
    Thank you!!

    1. Hello Christine,

      You can use a formula similar to this, where B2 is the end date:
      =IF(B2<TODAY(), "Expired", "Active")

      Please note, this task does not require making a conditional formatting rule. You just enter the formula in the top cell, and then copy it down the column as usual.

  37. I currently have an excel with dates in columns I thru AA. Dates do not begin until row 4. Those cells have dates of the last time training was completed. It is all annual requirements or semi-annual requirements. I am trying to display dates more than one year old as red; dates between 1 year and 9 months as yellow, and dates 9 months to today as green. Are there any formulas that would assist in that? Thank you.

    1. Hi Dan ,

      You can create three rules with the following formulas:
      1. For the red color:
      =TODAY() >=DATE(YEAR($A1) + 1, MONTH($A1), DAY($A1))
      2. For the yellow color:
      =TODAY() >=DATE(YEAR($A1), MONTH($A1) + 9, DAY($A1))
      3. For the green color:
      =TODAY() >= $A1
      Make sure that the rules are in the following order: red, yellow, green.

  38. Hi,

    I want to display COMPLETE in green, IN PROGRESS in Yellow, PENDING in grey color based on date comparison between two columns and today's date.
    I tried conditional formatting option -> Use a formula to determine which cells to format
    and the formula used was =IF(D2<TODAY(),"COMPLETE","IN PROGRESS"). But it is not working.
    Can you suggest ...

  39. Hi, in column F I have due dates, and in row 1 I have dates as well for time going by. How do I do conditional formatting so that the following for example happens:

    Cell E2 has a date of 8th of November, and AK1 also has a date of 8th of November. I want to have AK2 to then colour orange. And I would want to apply this to the whole table.

    Thanks,

  40. I have start date in A2 cell and End date in B2 cell, looking for conditional date differance in C2 as if End date is not defined then differance should be C2=Today-A2, if End date is defined then C2=B2-A2
    Please Help

  41. I am trying to apply conditional formatting to times related to swimming which are in minutes, seconds and milliseconds. Currently the times are formatted in a Custom Format of mm:ss.00. I've tried the formula option without success. Basically I'm looking to be able to make a cell turn yellow when a swimmer's time is within a second of a current time standard (i.e., greater than 0 seconds but less than or equal to 1 second). How do I go about achieving this conditional formatting? Thanks

  42. Good Afternoon,

    I have a company training matrix which i would like to format. The majority of our training expires in 3 years.
    The date we insert on the matrix is when the training will expire eg. 28/8/19.
    Could you please advise how to format this that 1 year prior to expiry date cell will change from white to another colour and 6 months prior to expiry cell will change colour again?

    Many Thanks,
    Felicity

    1. Hi Felicity,

      You can create two rules with the following formulas:
      1. For the red color:
      =TODAY() >= DATE(YEAR($A1), MONTH($A1) - 6, DAY($A1))
      2. For the yellow color:
      =TODAY() >= DATE(YEAR($A1) - 1, MONTH($A1), DAY($A1))
      Make sure that the rules are in the following order: red, yellow.

  43. Hello Mam,

    I need a help in condition formatting. and amount should be in blue colour if cell value exceed 30 and within 61.

  44. I have been trying feverishly to create a conditional format formula for an approaching deadline, as well as a deadline which has been met and/or expired. I have utilized many different formulas, but all to no avail, as I cannot accomplish what I have set out to do with the formulas:

    1. Format an alert, in the form of a red-colored cell for the deadline that has expired (and/or is past due)- when the date arrives (e.g., say the deadline is 9/3/2016.. on that day, I want the cell to turn red),

    2. Format an alert in the form of an golden-colored cell for 48 hours prior to the deadline (I want the cell to turn gold when the 48 hours before the deadline date arrives, using only weekdays),

    3. Format the deadline in the form of adding 9 days to the date entered into another cell, & the second deadline alert for 48 hours (weekdays only) before the final deadline (which is the 9 days after the initial set date)

    I came across this formula: =IF(A3>> http://www.journalofaccountancy.com/issues/2005/mar/programexceltoalertyoutoadeadline.html

    Can anyone please help me? This is really and truly, driving me batty man! I have been working on this project for 4 days now!

    -Crystal

    1. OH MY GOODNESS CRYSTAL! I need this too! Any chance you were able to figure it out since you posted online in Sept?

      1. Hi Crystal and Aly,

        I do not fully understand condition 3. As for the first 2 conditions, you can create the conditional formatting rules with the following formulas, where A2 is the top-most deadline cell:

        1. Red: =$A2<=TODAY()

        2. Golden: =AND($A2>=WORKDAY(TODAY(), -2), $A2<TODAY())

        Important note! For the rules to work correctly, the golden rule should be the 1st in the list of rules.

  45. Hello,

    If I have two columns of dates (column A and column B) and I want to highlight column B only if the date in column A falls within the same week of column B.

    Please help.

    Thanks!

    1. Hi Audra,

      You can create a conditional formatting rule with this formula (where 2 is the topmost row with dates):
      =WEEKNUM($A2)=WEEKNUM($B2)

  46. Hi, how do I format dates of the month to say this week, next week of this month?

    1. Or this month i mean.. Thanks!

  47. in conditional formatting how to highlight dates greater than 10th of every month ?

    1. Hi Suresh,

      You can create a rule with this formula, where A1 is the topmost cell with date.
      =DAY($A1)>10

  48. Hope someone can help with this. Any help will be greatly appreciated.

    I am trying to have Excel return the word Active or Expired in a cell based on a support contract end date.

    I have the end date of the contract in cell I11

    In cell I13 I have used the following formula =I11<TODAY()

    This returns either a TRUE or a FALSE, depending on the current date and the date that is in cell I11.

    I want cell I13 to convert the TRUE or FALSE to either Expired or Active.

    So if value is TRUE then I want to see the word Expired in cell I13.

    If the value is FALSE then I want to see the word Active in cell I13.

    Thanks again.

    1. Never mind, got it worked out. You have a great site here. Thanks for having it available.

  49. Hello! I have dates in columns A and B, and I want to highlight the cells in column B that are past dates in A. I know I can use =$B2>$A2, but is there a way to condition the whole column rather than each individual cell?

    Thank you!!

    1. Hi Jenna,

      Just apply the rule to all the cells you want to highlight, e.g. A2:A100000.

  50. Hello,

    I can't figure out how to apply conditional formatting for one cell that highlights red when a date that is entered is greater than five days from another cell. Can anyone please break a formula down for this purpose?

    Thank you.

    1. Okay, from reading other comments and answers I found that this is an appropriate formula: =AND(ABS(INT(D4-C4))>5,NOT(ISBLANK(D4))). However, is there anyway to take it a step further and have Excel ignore weekends and holidays in the calculation of the 5 days?

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 :)