First thank you and sorry as I am very new at this.
I need to have a cell come up red if blank, based on another cells entered date plus "X" number of days.
Example:
If A2 shows 2/1/16 and B2 is blank (greater than 2 days from A2) I need it to come up red. So if today's date is 2/5/16 this cell would become red.
If A2 shows 2/1/16 and B3 is blank (by greater than 4 days from A2's date) I need it to come up red.
If a cell is blank and it is not greater than the number of days I set, it remains unchanged. (A2 shows 2/1/16 and today is 2/2/16, B2 would remain blank) Also if a date is entered and it is greater than the number of days I set as compared to A2 it would also come up red. (A2 is 2/1/16 and B2 shows 2/5/16)
Thank you in advance!
This answer was posted by #assylias in the comments and the author said it was the solution. I slightly formatted the steps so they are easier to follow.
Select the cell you want to colour
Go to conditional formatting
In the formula add something like =TODAY()-A2<3 and choose the formatting you want.
Related
I would like to highlight the cells based on multiple dates comparison.
There are 4 dates (D1, D2, D3, D4) on the left for different projects. which need to be compared with each month first date(M1, M2, M3... M12).
so, I need to check if the cells below M1 (empty cells) falls between D1, D2 then fill red, if falls between D2,D3 fill yellow and if falls between D3,D4 then fill green. This has to be done for each cell which is below M2, M3.. M12. Each project has different time line, so I need to check for each project based on D1,D2,D3,D4 and M1,M2...mx.
I tried using the conditional formatting and used "Use a formulate to determine which cells to format" for one cell below M1 for first project. then stretched by mouse over from left to right. It did not reflect any colour in any cell.
please suggest how can i do it.
Thanks
Sbx.
I want to highlight Cell F4 if F4 is blank and E4 is not.
So in the scenario below I want the actual visit column to highlight if it is blank AND the 7 day due date is NOT blank. I am trying to have a visual alert of missed visits.
Entry Date 7 Day Due Date Actual Visit Date
12/18/18 12/24/18
12/01/18 12/07/18 12/7/18
Please select ColumnF and try a CF formula rule of:
=AND(F1="",E1<>"")
with formatting of your choice.
The condition format based on a formula:
applied to $C$2:$C$11
highlights a cell based on your condition.
I have a spreadsheet where I need to calculate how many days it has been since the day that is already in a cell, for example if h2 has has 10/10/18 then I need to calculate how long its been until today, which I have achieved via = TODAY()-cellname. However, some cells are empty so if cell h3 is empty and doesn't have a date I want it to go to cell e3 and calculate how many days, and if e3 is empty then it reads from b3 but if h3 isn't empty I want to to read the date in h3 and give me a result
How would I go about that?
In the picture it shows each service with the how many days column, but I don't want each service to have a how many days column, I just want one how many days column at the end.
In J2 something like
=IFERROR(TODAY()-IF(ISBLANK(H2),IF(ISBLANK(E2),IF(ISBLANK(B2),"",B2),E2),H2),"")
I have text in cell A1 that I want to apply conditional formatting to based on the dates in cells A2:A5. That is if a date in A2:A5 is older than today I want A1 to be filled in red. If the date in A2:A5 is less than 30 days from today I want A1 to be orange. I have tried various formulas and just cant seem to get it to work. Appreciate any help. Thanks
You need to use conditional formatting (button in the home ribbon). Choose new rule and click 'Use a formula'. Enter the formula you want and click format and select the fill colour you want it to be. Click OK. You can do this multiple times with different colours and formulas.
So something like this would make A1 change if A2 was within 30 days:
=$A$2<($A$1-30)=TRUE
But what colour would A1 be if the dates in cells A2:A5 are a variety of dates? Eg. some are less than 30 days some more? The technique above is easy when comparing A1 to one cell. I am not sure you have thought about this or you just have not explained yourself properly.
EDIT:
If A1 is not a static date and you want formatting based on the current timeframe (eg B1 falls within 30 days) then use the Date Occurring feature. Examples of how you can use if below. So you are going to need 12 of these to cover B1:G1 with 30 days for orange and one day for red.
I need to format a cell that is specified by another cell. Basically after many calculations, the cell AL1 contains a cell reference, in this case it is AD48. I want to format cell AD48 and fill it red. This cell reference can, and will change so tomorow it may be AD54. I would then want only cell AD54 to be filled red and not AD48 anymore.
So basically whatever cell is specified in AL1, I want to format that cell (in this case fill it red)
ALOT of googling and no answer. Any help much appreciated!
Select sheet (click triangle immediately to the left of ColumnA and immediatley above Row1), Home > Styles - Conditional Formatting, New Rule, Format only cells that contain, Cell Value equal to =$AL$1, Format, Fill, Red, OK, OK.
Edit following clarification of requirement:
Change to Use a formula to determine which cells to format and apply
=SUBSTITUTE(CELL("address",A1),"$","")=$AL$1
Edit to add image of part of file uploaded by OP and some CF clarification.
Edit OP has an answer that works but posted this as a link in a comment. There is a solution that does not require formulae in AH1:AJ4 now that AA3 contains =TODAY():
=OR(AND($C5=TEXT($AA$3,"mmmm"),C8=DAY($AA$3)),AND($C4=TEXT($AA$3,"mmmm"),C7=DAY($AA$3)))
in Format values where this formula is true: and Applies to =$C$7:$AG$125. (Now formats both day of week and date of month).
Edit. Attempt at clarification (that should have been provided before!)
Selecting C7 as the start point, the formula for conditional formatting checks whether A or B is true:
A] Both the month name (in C5) matches the current month (long form) of =TODAY() in AA3) and the cell immediately below (ie C8) matches the day in AA3,
Or
B] Both the month name (in C4 – that is merged with C5) matches the month and the current cell (C8) matches the day in AA3.
Either case triggers the conditional formatting – hence this is applied in pairs of vertically adjacent cells.
Since the spreadsheet is well laid out (each month 11 rows and Day1 always in ColumnC) this same formula can be applied throughout with the nature of conditional formatting taking care of adjusting the relative references to cells in ColumnC up to the specified limit of Row 125 and in Row7 (or 8) for columns up to the specified limit of AG.