I am trying to set up two conditional formatting rules:
One in which when cell B3 is empty, the corresponding cell (J3) stays its current color.
The second rule is when a date that is put in cell B3 that is 90 days or more from today's date, the corresponding cell (J3) turns red.
Can someone help please?
Please select J3 and HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=AND(ABS(B3-TODAY())>89,B3<>"")
Format... with red formatting, OK, OK.
Note this assumes the formatting in J3 is not set by Conditional Formatting when B3 is blank and that "90 days or more from today's date" is either earlier or later than today.
Related
I am trying to format an excel document using conditional formatting
if cell is less than 1035 days from todays date make green
if cell is between 1036 days and 1095 days date make orange
if cell is more than 1095 from todays date make red
What formulas would I need?
Thanks
Say your dates start in B1 and go to B100.
Select B1, then select conditional formatting - New Rule - Use a formula to determine which cells to format.
For the highlight green example formula, use:
=DATEDIF($B1,NOW(),"d")<1035
Hit the format... button and fill to corresponding color.
Hit "OK"
Then in the manage rules menu, in the Applies To column, enter the range of cells you want that to apply to. i.e. =$B$1:$B$100
For the highlight orange example formula, use:
=AND(DATEDIF($B1,NOW(),"d")>1035,DATEDIF($B1,NOW(),"d")<1095)
For highlight red example formula, use:
=DATEDIF($B1,NOW(),"d")>1095
i'm newbie in excel and i have an excel sheet where i need to change the cell color if the date mentioned in the cell is becomes 15 days old and also add a status in next column as pending.Please help with this.
Assuming your dates are in ColumnA, please select that column and HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=TODAY()-A1>=15
Format..., select your choice of colour for formatting, OK, OK.
If the "pending" labels re then to be added in ColumnB where appropriate please put in B1 and copy down to suit:
=IF(TODAY()-A5>=15,"pending","")
You could use the pending in ColumnB to trigger the colour for ColumnA but it may be better to keep the two requirements separate. If you were to trigger via 'pending' you would still need a formula rule, rather than a "cell content" one.
Change 15 to 20 when you have decided what the interval should be. Beware that if your ColumnA values include times (even if not displayed) you cannot reliably simplify >=15 to >14.
This is the formula you might be looking for:
=IF(DAYS(TODAY(),A1)>=15,"pending",other_status_you_use)
Then you should go to
Conditional Formatting > Highlight Cell Rules > Text that Contains...
There you can type pending and change the color as you wish.
I am trying to do conditional formatting on the below example.
I would like to highlight certain columns/cells based on the day of the week. For example, if the date is a Tuesday, then I would like the WeHo, Sunset, WW, MB, Irvine, BrentW, Cienega and Hun B columns highlighted. If possible I would like to base the day of the week off the pre-existing date in cell A2, since we do our work one day before hand (working on a Monday, but cells are highlighted as if the actual date was Tuesday).
Assuming that the date in A2 is a Monday and you want B2:B20, E2:E20, J2:K20, Q2:Q20 and T2:U20 to be formatted then please select those ranges (with Ctrl depressed) and HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=WEEKDAY($A$2)=2
Format..., select your choice of formatting, OK, OK.
Sounds like you want to use formula conditional formatting. Basically, go to the formula conditional formatting and =$A$2="Tuesday" then click ok and make the "apply to" apply to the column you want highlighted when A2 says it's a Tuesday.
I'm trying to basically do: IF A1 is Today then highlight/bold/whatever B1 through F1.
Specifically I want to select a range of cells for the rule to apply to but I don't know how to write the IF statement in the "Use a formula to determine which cells to format" section
Please select B1:F1 HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=$A1=TODAY()
Format..., select choice of formatting, OK, OK.
Because CF is Conditional Formatting an IF statement is not normally required (it is assumed) - just a formula that returns TRUE.
I am trying to change the colour of a cell if 2 conditions are true: 1. The date in the G column is before today, and 2: The value in column AM is "DISPATCH".
I have managed to change the to get a simple code for the Date which is: =$G$11<TODAY(), which works.
The code I am using for AM column is =ISNUMBER(SEARCH("SHIPPED",AM11))=FALSE - I Think something is going wrong here?
Please select from L5 to L44, then HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::
=AND(G5<TODAY(),AM5="""DISPATCH""")
Format..., select colour, OK, OK.