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.
Related
I need some help in setting up my conditional formatting. Any help or feedbacks will be greatly appreciated! This is my scenario:
There is a table named WkdayPHols where it contains a specific holiday to a respective date.
On another sheet within the same workbook, I need to highlight the specific cell with this condition using conditional formatting:
If there is a matching state (in Column C), with a matching Date (Row 7), indicate that cell as 1 - as shown
Row 9 Yellow cell example - Cell C9 = VIC, Cell D7 = Date Value 43405 - no match, therefore #N/A
Green cell example, Date Value 43410 is found to be a holiday in WkdayPHols, any rows with Vic in Column C will have 1.
I have achieved that by using the array formula - as shown in the formula bar. However, I only want this condition to be presented as part of conditional formatting, by highlighting the specific cell with the given criteria (=1). But array formulas is not supported in conditional formatting.
I need the all the cells to be blank, without formulas for actual inputs.
Any solution/suggestion?
Change the formula in the cells to,
=IFERROR(AGGREGATE(15, 7, WkdayPHols[column1]/((WkdayPHols[dates]=I$7)*(WkdayPHols[state]=$C9)), 1), TEXT(,))
Use Fill Right and Fill Down, do not drag that formula into adjacent cells or the table columns will shift.
Change the cells' format to a custom number format of,
;;;
Create a conditional formattting rule based on,
=isnumber(d9)
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 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)
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?