Forum Discussion

Jgolden1980's avatar
Jgolden1980
Copper Contributor
Sep 15, 2022
Solved

IF(OR Statements from multiple sheets/tables

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.   

  • 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.

6 Replies

Resources