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 9. Total comments: 1245
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
Hello!
I can't create conditional formatting in your workbook. All the necessary information is in the article above. I also recommend reading the instructions - How to change the row color based on a cell's value.
Hello! If I needed to highlight any cell on my worksheet that contained any date, how would I do that?
Hello!
Try to determine the format of the number in the cell using the CELL function
=LEFT(CELL("format",A1))="D"
I hope it’ll be helpful.
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
Hello!
For each color, create a separate rule, as recommended in the article above. Also take a look at this guide: How to change the row color based on a cell's value
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.
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.
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
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.
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?
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.
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...
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.
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.
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?
Hello!
Add a condition to the conditional formatting formula that the cell must not be empty. For instance,
=AND(B1-A1<7,B1<>"")
Help with filling of todays Date. If I fill something in column B todays date must fill automatic in column A.
Please assist
Hello!
To insert current date by condition try this formula
=IF(B1="","",TODAY())
Please have a look at this article - How to insert today's date in Excel.
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 ?
Hi!
Use this conditional formatting formula
=A1
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.
Hi!
Have you carefully read this blog post? It contains answers to your question.
=AND(TODAY()-$D2>=0,TODAY()-$D2 > 30)
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?
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.
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
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.
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.
Hello!
To calculate the average with conditions, use the AVERAGEIF function.
I hope my advice will help you solve your task.
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)?
Hello!
If you do not want to use "0" values in your calculations, use the AVERAGEIFS function. Add an additional condition: the values for the count must be greater than 0.
=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.)
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.
Correction to above:
=AVERAGEIFS(B5:AF5,B4:AF4,""">=12/31/2021",B4:AF4,"<="&TODAY())
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.
Hello!
I recommend reading the article above.
This should solve your task.
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 ?
Hello!
Create another conditional formatting rule that will take effect as long as the date cell is blank.
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.
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.
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.
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.
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???
Hello!
Have you tried the ways described in this blog post? If they don’t work for you, pay attention to this article: Excel conditional formatting Icon Sets, Data Bars and Color Scales.
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
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()
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?
Hello!
I hope you have studied the recommendations in the tutorial above.
Use conditional formatting formula -
=D1+650
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?
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.
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.
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.
Hello!
I don't quite understand how to help you. I do not have your data. Perhaps this article will be helpful: Excel conditional formatting Icon Sets, Data Bars and Color Scales
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
Hi!
Unfortunately, conditional formatting rules cannot be linked together.
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
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.
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!
Hi!
Your question is not clear. What kind of date and time conflicts are you talking about?
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
Hi!
Use TIME function:
=IF(A2
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.
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?
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?
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??
Morning,
I am trying to create a project management calendar. We have start and end dates for certain tasks (8/16/21 start date and 9/17/ 21 end date). Task description is listed in column A, start date in Columb B, and then end date in column C (all listed in row 3 and under, depending on the amount of task). In D-AA we have a "Calendar" set within row 2, of every Monday for the next year.
The goal is to conditionally format the cells in column D-AA and under row 2 (so row 3 and under) to highlight a color (i.e red) during the date range. So every task will have a different start and end date aka the colors will change in every cell between D-AA
Hello!
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.
Hello,
I need to highlight cells based on a date within the cell NOT todays date. I want a cell to highlight based on 30 days from the day in the cells within a column.
Example: I want to have each manager over their department know when their employees annual renewals are due. I would like it to be based on JUST the month and the day NOT the YEAR since that year is listed by their original hire date. My plan is to take the year out listing only the month and day so that if it is 30 days past that date it will turn red
Hello!
Use the formulas from the paragraph - How to highlight dates within a date range.
Use the date cell address instead of the TODAY function.
If this is not what you wanted, please describe the problem in more detail.
Alexander,
Thank you for responding. This is not what I need as I explained previously, I am looking for dates that are 30 days away from the date that is in a cell. That is why I explained that I cannot use the "today" function. I do not have 2 dates listed so I cannot use a "date range" function, I don't believe.
Example:
Column A Employee #
Column B Employee Name
Column C Years Employed
Column D Date of Hire MONTH AND DAY ONLY
Column E Job Code
I am looking for Column D to change a color when it is 30 days past the date entered in that column.
Also I want the format to look and ONLY a MONTH and a DAY I do not want the year to be part of this as I believe it will not work since our employees tenure ranges from 1 year to 40+.
I am VERY green when it comes to Excel so could you give as much detail as possible? Please and thank you!
Hi!
How do you want to define 30 days if you only have a month and a year? If the date is only a month and a day, then it is written not as a date, but as text.
So, there has to be a year attached?
If so, I will use the current year but, I want the 30 days to be 30 days PAST the day that is in each cell located in Column D.
For instance if D says 8/21/21Then by 9/14/21 I would like that cell to be red
Hello!
If the date is written in column D, then you can use the recommendations from this article above. In the formatting condition, instead of the TODAY function, use a cell with a date
=F1-D1>30
I hope my advice will help you solve your task.
Alexander,
I'm sorry but, would you give me step by step instructions on how to insert this formula? As I explained, I am very green with spreadsheets. What is f1? Is that assuming I am using another column? Also, is this a conditional formatting formula? Does it go in a specific box?
Hi!
In the formula
=$F$1-D1>30
F1- the date from which you will compare all cells in column D.
How to create and use a conditional formatting formula is detailed in this article above.
Hi,
I would like to simply highlight any cell with a date of today or older - older than a month too
Hello!
I hope you have studied the recommendations in the tutorial above. It contains answers to your question.
Looking to highlight months 1, 2 and 3 months out, so ex I would like a cell to highlight red if its says JUL and it is currently JUL and highlight Yellow If the cell says JUL and it is JUN, so highlighting cur month as well as the 2 months prior to end of current month, the formula set up now is broken and I can not figure it out
=MONTH(EOMONTH(TODAY(),3))
=MONTH(EOMONTH(TODAY(),2))
=MONTH(EOMONTH(TODAY(),1))
I am getting 0 highlights and I am unable to get it working
Hello!
If I understand your task correctly, the following conditional formatting formula should work for you:
=MONTH(A2) <= MONTH(EOMONTH(TODAY(),1))
I hope it’ll be helpful.
Hi I'm trying to show a RAG to a cell if a date scheduled was achieved or not. I understand how to add a conditional format however I have to make a new rule for each cell in the column. For example in column A the dates are different in each row in column B a formula is used to show the date due and then in column c the actual date completed is inserted. I would like to highlight if this matches the due date using RAG and can only achieve this if I add a new rule to each cell in each row in column C. I'm looking for a way to copy the rule into each of the cells that will auto generate column C to look across the row at cells, c1 to look at b1, c2 to look at b2 and so on.. pls help!
Hi,
I have two columns. One contains starting date and another contains exact 6 months from that starting date(Note: few dates are in the past). Now I want to highlight the dates which are greater than today. How to do that?
Hi!
Pay attention to the following paragraph of the article above: Conditionally format dates based on the current date
Hi. Thanks for these examples. I am trying to highlight a cell based on two criteria:
1. If the date is within 15 days of today
2. If the cell in another text is "TBD"
This is what I have but it isn't working:
=IF(W2=TODAY()<15,IF(K2="TBD",1,0),0)
Am I missing something or do I have something written incorrectly?
Thank you
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(AND((W2-TODAY())<15,K2="TBD"),TRUE,FALSE)
Please have a look at this article — Excel IF statement with multiple AND/OR conditions
Actually, I think I figured it out:
=IF(W2-TODAY()<15,IF(K2="TBD",1,0),0)
I just changed the "=" to "-".
Thanks
hi is there a way to create a formula to automatically highlight cells when the figures in a certain cells are unchanged after lets say 6 months. for instance if you keep records manually of 20 bank customer's balances and you want the cells of inactive customers (for 6months) with an unchanged balance to change colour automatically. How can this be achieved?
Hello!
If your table contains data, for example, at the beginning of each month, then it is very easy to determine that 6 digits are the same.
I have used the conditional format cells based off of date using colors Red for overdue dates, Yellow for coming due in 30 days and Green for current. Now that I have all that, Column A is a list of names. I am wanting to know if there is a conditional formula to change the name color to green is all cells in their row are green, yellow if there is yellow cells in their row and red if there are red cells in their row. Is there a way to do this? Thanks for your time.
Hello!
Please have a look at this article — How to create a conditional formatting rule with a formula.
Use in the formula the conditions by which you changed the color of the cells in the row.
I cannot give you a more accurate advice, since I cannot see your data.
H, Trying to set up a conditional format for a column of dates, (expiry dates that may need updating). I wish to highlight all dates prior to todays date. ie. each day if there is a date 'out of date' it will turn red.
Thought I had set it up to do this as above instructions however it is changing other dates to red also?
Advice appreciated.
Hello!
Pay attention to the following paragraph of the article above — Conditionally format dates based on the current date
Hello,
I want to color only fridays..
Hello!
The WEEKDAY function will help you determine the day of the week. Simply, use this formula in your conditional formatting rule:
=WEEKDAY(A1,2)=5
I hope it’ll be helpful.
=(WEEKDAY($A8,15)>1)-1
Hello, I am trying to change the color of a cell when it is coming due, overdue and then when it is current. The date is coming due (orange) the first of every month. The date becomes overdue (red) when it is the 16th of each month if not completed. The date, or cell, is current again (green) once it's completed the first of the next month. Not every cell will be overdue of course, only if a current date is not entered by the 15th of each month. Any help would be greatly appreciated!
Hi!
I hope you have studied the recommendations in the tutorial above. It contains answers to your question. For each condition, write down a separate formatting rule as described in the article above.
I recommend reading this guide: Apply several rules to one cell.
I hope it’ll be helpful.
Hello,
I am trying to figure out if this date (column P) is within one year of that date (column C):
Renew date: 7/31/21
RX date: 5/31/21
is the RX date within 365 days of the renew date? If not within one year, can it be highlighted in red so I know to stop. I cannot us an RX that is move than one year old (I cannot use an RX from 7/29/20 form example)
is this possible ?
Hello!
Please check the formula below, it should work for you:
=DATEDIF(A1, B1, "d")>365
Use this formula in conditional formatting.
I recommend reading this guide: Calculating date difference
Hello,
I am trying to highlight rows where the Implementation Date in Excel column P is past 7/31/2021. I used the formula '=$P2>=DATE(2021,7,31)'. I also converted the Date to its numerical value in a column at the end of the spreadsheet. Conditional Formatting in both cases highlights incorrect rows (before 7/31) and skips rows that meet this specific criteria. Both ways highlights the same, incorrect rows. Do you know why that happens? Please advise...
Hello!
Unfortunately, without seeing your data it is difficult to give you any advice. If your date is written as text, then the formula will always return TRUE. Check this.
Hiya! I am a teacher trying to organize whether a student is under the age of 9 years as of "TODAY" so that I can use the checkbox TRUE or FALSE as they'll need testing or not. For example, if Student A is under the age of 9 years old (even by a day) as of today, then checkbox is TRUE. (They will need testing). How can I writ eout this formula prettyt please?
Hi!
Please have a look at this article — How to calculate age in Excel from birthday
I hope it’ll be helpful.
in an excel cell, I set the expired date is 4/30/2022. when the date 4/30/2022 comes, I want the in warranty credit value of another cell to set to zero permanently. What formula could I use? please help?
Hi!
In this cell, you can use the formula with the IF function with date. Read this article.
If you need to change the content on the cell that has some value in it, you’ll need to use a VBA macro.
Hello,
Hi, I'm trying build a recurring maintenance schedule for list of equipment per recommended maintenance matrix within 12 months. maintenance frequency are every 2 months, every 6 months, every 12 months. I would like a conditional formatting formula to color code cells per predefined maintenance duration in days per maintenance frequency stated above within a 12 months period. So far I have column in days that span over 12 months, rows - predefined maintenance duration/maintenance frequency/equipment and task Start and Finish dates per equipment. thanks for your help in advance
Ablebits.com Team - Any luck with my help request?
Hi!
According to your description it is difficult for me to understand your data.
To add 2 months to a date, you can use the formula
=DATE(YEAR(A2), MONTH(A2) + 2, DAY(A2))
Conditional date formatting is described earlier in this article.
Give an example of the source data and the expected result.
It’ll help me understand it better and find a solution for you.
thanks for the acknowledgement. See below example as requested. I tried simplifying with just one Equipment.
Source Data: Equipment A - Task Duration (Cell C5 - Start date Aug 2 2021, D5 -End date, Dec 31 2023), Cell E5 (Maintenance Frequency – Every 60 days), Cell F5 (maintenance duration – 4 days), Cell G5 (# of personnel to perform the maintenance – 3).
Expected Result: Under a list of dates that span from Aug 2, 2001 to Dec 31 2023 (a cell representing a day) – Cell H4 to xx4, create a dynamic cells using conditional formatting to show recurring maintenance schedule for Equipment A – every 60 days perform a 4 days maintenance using C5 as start date, next maintenance will be (C5+F5) +60 days. Last day of each maintenance frequency should initiate the 60 days counter for the next maintenance cycle. This sequence should end at day = D5. Only maintenance duration should be color coded and number of personnel (G5) to be inserted each color coded cell.
Thanks for you assistance in advance.
Hello!
I think for your task it is best to use not conditional formatting but a Gantt chart.
This was of great helps thanks!
Hi,
I am looking for a formatting that would highlight cells that are past todays date, but less than 60 days past the expiry then a different colour if over 6 days past expiry.
if the date was over 60 days ago =red
if the date expired but is less than 60 days
the cells have the expiry date in already so if it's past todays date.
thanks
Hello!
I hope you have studied the recommendations in the tutorial above. It contains answers to your question. If you have a specific question about the operation of a function or formula, I will try to answer it.
Amazing - just exactly the formulas I was looking for. I know I should keep a book with all these in, but google just seems far easier!