If 5 days since initial date, turn cell red

Copper Contributor

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! 

Natalie907_0-1604088834116.png

 

8 Replies

@Natalie907 

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.

@Natalie907 

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.

@Sergei Baklan  here is a sample file. I will try to apply your suggestion!

@Natalie907 

See the attached version.

Click in J2 and select Conditional Formatting > Manage Rules... to view the conditional formatting rule.

OMG I am taking stats on-line. Never used excel before last week. I need to change datasheet into a chart/graph. HELP!!

@123Stats 

Please post that as a new question instead of as a reply in an existing one.

@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?

@Natalie907 

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.