SOLVED

IF(OR Statements from multiple sheets/tables

Copper Contributor

Hello.  I'm trying to write a formula based on dates in tables on different sheets.  What i want is a cell on the first sheet to fill red and show "Passed due" if any of sheet2 E4:E8 = (Today() - E$) > 7.  But if all of E4:E8 are blank or not > 7 to show nothing and no fill.  

 

I have 6 total sheets for maintenance tasks, each is due in days of 7, 14, 30, 90, 180 and 365.  These would correlate to the 1st sheet with this formula to each of 6 cells so when you open the document it would flag a particular sheet to let you know to check it.   

6 Replies
Attach a sample worksheet.

@Harun24HR 

Let me know if that link works or i can try a something else 

best response confirmed by Jgolden1980 (Copper Contributor)
Solution

@Jgolden1980 

In B7:

=IF(COUNTIF(INDIRECT(SUBSTITUTE(B6,"-","")&"[Date Complete]"),"<"&TODAY()-7),"Past Due","")

Fill to the right to G7.

 

Select B7:G7.

On the Home tab of the ribbon, click Conditional Formatting > New Rule...

Select 'Format on;y cells that contain'.

Leave the first drop down set to 'Cell Value'.

Select 'equal to' from the second drop down.

Enter Past Due in the box next to it.

Click Format...

Activate the Fill tab.

Select red.

Click OK, then click OK again.

 

See the attached version.

@Jgolden1980 Lets check the attached file and let us know your feedback.

Perfect! Thank you so much for the help
1 best response

Accepted Solutions
best response confirmed by Jgolden1980 (Copper Contributor)
Solution

@Jgolden1980 

In B7:

=IF(COUNTIF(INDIRECT(SUBSTITUTE(B6,"-","")&"[Date Complete]"),"<"&TODAY()-7),"Past Due","")

Fill to the right to G7.

 

Select B7:G7.

On the Home tab of the ribbon, click Conditional Formatting > New Rule...

Select 'Format on;y cells that contain'.

Leave the first drop down set to 'Cell Value'.

Select 'equal to' from the second drop down.

Enter Past Due in the box next to it.

Click Format...

Activate the Fill tab.

Select red.

Click OK, then click OK again.

 

See the attached version.

View solution in original post