Oct 30 2020 01:16 PM
Hi there,
I'm a beginner when it comes to excel and am needing some resources/guidance.
I need to find a way (I'm not sure whether to use "If" or "conditional") to make the cells in column J to turn red, if the matching cells in column G are more than 5 days apart. Ideally this would be one formula that can apply to all the cells in those column rather than individually applying the formula.
Any advise would be appreciated! Thank you!
Oct 30 2020 01:50 PM
Select J2:J100 (or however far down the data go).
I will assume that J2 is the active cell in the selection.
On the Home tab of the ribbon, click Conditional Formatting > New Rule...
Select 'Format only cells that contain'.
Leave the first dropdown set to 'Cell Value'.
Select 'greater than' from the second dropdown.
Enter the formula =G2+5 in the box next to it.
Click Format...
Activate the Fill tab.
Select red.
Click OK, then click OK again.
Oct 30 2020 01:51 PM
You may apply conditional formatting rule to the column "Submit" of the table with rule formula as =$J2>$G2+5.
If you provide sample file instead of screenshot it'll be easier to illustrate.
Oct 30 2020 02:27 PM
@Sergei Baklan here is a sample file. I will try to apply your suggestion!
Oct 30 2020 02:42 PM
See the attached version.
Click in J2 and select Conditional Formatting > Manage Rules... to view the conditional formatting rule.
Oct 30 2020 03:14 PM
Oct 30 2020 03:28 PM
Please post that as a new question instead of as a reply in an existing one.
Nov 02 2020 02:33 PM
@Hans Vogelaar This is the right idea but I'm needing each cell to be dependent on the cell date in the same row.
Example based off the demo: I need column J dates, to coincide with the cell in the same row for column H.
"LE Recv" date + 7 (or 5 business days) and anything beyond to turn the cell red that's in in the same row but in the "Submit" column J.
Do I need to manually go in to make each cell coincide with the cell in the same row? Or can I create a formula for the whole table?
Nov 02 2020 02:57 PM
If I understand you correctly:
If you want to format cells in column J, select J2:J20, or if you want to format the entire row in the table, select G2:K20.
I will assume that the acfive cell in the selection is in row 2.
On the Home tab of the ribbon, select Conditional Formatting > New Rule...
Select 'Format only cells that contain.
Leave the first dropdown set to 'Cell Value'.
Select 'greater than or equal to' from the second dropdown.
Click Format...
Activate the Fill tab.
Select red.
Click OK, then click OK again.
See the attached, modified version.
Enter the formula =WORKDAY($H2,5) in the box next to it.