I want to highlight the row which has the today's date. I am using the condition
=$B20=TODAY()
with the format applied to the whole table, but not even a cell is highlighted (B20 is the cell which contains the content '31.1.17', and it IS a date, not text or something. The Weekday is in a separate column):
How to fix the expression? What is wrong?
Just change the formula to : =DATEDIF($B3;TODAY();"d")=0
(For the first cell of your range, so that i'll be =DATEDIF($B20;TODAY();"d")=0 for row 20)
Related
I want to put conditional formatting for below:
In a particular cell if I enter a date value as 12-Feb-18, then it searches in another worksheet a date range containing all Mondays like 01-Jan-18, 08-Jan-18, 15-Jan-18 and so on. If the value entered is a correct value then No highlighting is required, if value is not a Monday then cell value should be highlighted.
Please help.
If you just want to highlight the cell if it's a Monday, you don't need to lookup a range of dates. Add a new conditional formatting rule with this formula (assuming the cell you want to format is F3):
=WEEKDAY($F$3) = 2
On the other hand, if you really want to match to a list on Sheet 2, cells A1 - A3, use the following formula:
=IF(ISNUMBER(MATCH(F3,Sheet2!A1:A3,0)),1,0)
I have a column full Dates and I am trying to highlight all of the dates if they are before 30 before todays date.
An example of why what I have that is not working is the value in the cell is 4/12/2017 and it is being highlighted when only values before 4/01/2017 should be highlighted (today is 5/01/2017).
My rule in conditional formatting is
Format only cells with:
cell value less than =Today()-30
*change background color*
but the 04/12/2017 is still being highlighted.
Select the first cell in the range you need to format, then put that cell into the formula. For example, if you select A1 change the formula to:
=A1<TODAY()-30
Then click OK and check your 'applies to' range.
You probably also want to filter out blank cells. For this you can change the formula to:
=AND(A1<TODAY()-30,A1<>"")
I have tried using a variation of formulas mentioned in previous questions but can't find a way to make it work for me. I have a date in "X column" for the Due Date and a date in "Y column" for the Date Complete. I am trying to create a formula that will turn red when the Date Complete is greater than the Due Date. This will need to be a formula that can be repeated used as I add data weekly.
You would need to use conditional formatting for this.
Go into conditional formatting, select "New Rule", then "Use a formula to determine which cells to format". If your due date is in column "A" and your completion date is in column "B", you would place the following formula in the box:
=($A$1-$B$1)<0
Apply this formula to cell B1, and make your formatting changes (fill red).
If you copy this down, it should work for subsequent rows.
If column C is empty and Column A is your due date and Column B is your complete date, type this formula in column C:
=IF(A2<B2,"YES","NO")
Then do conditional formatting for text that contains "yes" for range C2:C50; assuming you have headings in Row 1.
My formula checks for value in 7 cells merged together and outputs TRUE if value meets the condition. Formula works fine when I apply it to every cell individually as shown on the image, but when I try to use the same formula in conditional formatting to highlight range of cells that meets criteria, nothing happens.
Here is my formula:
=IF($B$9<>1,FALSE,AND(INDIRECT(ADDRESS(12,COLUMN(Z$11)-IF(WEEKDAY(Z$11)=1,6,(WEEKDAY(Z$11)-2))))>=$L14,INDIRECT(ADDRESS(12,COLUMN(Z$11)-IF(WEEKDAY(Z$11)=1,6,(WEEKDAY(Z$11)-2))))<=$R14))
Basically what my formula does is checks if date in the merged cell is either grater or equal to the date of the other cell (Start Date) and smaller or equal to the End Date, which is also defined in another cell.
I cannot seem to get it to work.
Please help
I don't know why you need that formula(maybe I misunderstood) but an example is as follows;
Edited:
Maybe you can use a dummy (not merged) row.
Row 5 is conditionally formatted based on row 7th values.
Please note that,
1) Formula in the 7th row is seen in the formula bar.
2) Conditionally format range(not shown in the pic) is 5th row.
Is is possible in Excel 2010 to set a conditional formatting rule to highlight all not empty cells in a row when the cell in particular column has a particular value?
I have a report in which every row identify a day. I would like to colour in grey the rows relative to Saturday and Sunday. The day is stored in column C.
I know how to highlight cells in column C, but how can I easily extent the format of cell C to the adjacent not empty cells in the same row?
This is easy to do without a macro and without using INDIRECT function
Assuming you have data starting at row 2 and that the "day" in column C is a text value then do this:
Select whole range of data, e.g. A2:J100
apply in conditional formatting the formula that needs to apply to the first row, e.g.
=AND($C2="Saturday",A2<>"")
That will apply formatting to all cells in the range if col C of that row is "Saturday" and the cell itself is not blank. Note C2 needs a $ in front because it applies to C for the whole row A2 doesn't need $
If you want to apply to Saturday and Sunday the same type of formatting then use an OR, i.e.
=AND(OR($C2="Saturday",$C2="Sunday"),A2<>"")
....or if the column C entries are actual dates make that
=AND(WEEKDAY($C2,2)>5,$C2<>"",A2<>"")
See example workbook with that last CF formula demonstrated
Taking inspiration from John answer in this thread, I've used the "indirect" function on the conditional formatting.
Select Conditional Formatting
Select New Rule
Select "Use a Formula to determine which cells to format"
Enter the Formula, =WEEKDAY(INDIRECT("c"&ROW()))=1 # for Sundays
Enter the Format you want (text color, fill color, etc).
Select OK to save the new format
Open "Manage Rules" in Conditional Formatting
Select "This Worksheet" if you can't see your new rule.
In the "Applies to" box of your new rule, enter =$A$1:$J$35 (or however wide/long you want the conditional formatting to extend depending on your worksheet)
Do it again, this time inserting the Formula, =WEEKDAY(INDIRECT("c"&ROW()))=7 # for Saturdays
There is only an issue with this formula. When the cell in Column C is empty it will be read as 7, therefore the row will be formatted as if it's a Saturday. Do you know why?