Combine AND with OR in a Single IF Formula
Your ticket queue rule isn't a simple either/or: a ticket needs review when it's still Open AND it's either been sitting more than 30 days OR it's marked High priority. Closed tickets never qualify, however old.
Excel & Google Sheets
This formula works in both Excel and Google Sheets.
How it works
Read it from the inside out. OR(B2>30,C2="High") is the "either" part — aging or urgent, one is enough. That whole result becomes the second condition of AND, so the row must be Open and pass the OR. A Closed ticket fails AND immediately, no matter how old or urgent; a fresh Low-priority Open ticket fails the OR and stays OK. The structure mirrors the sentence: AND for the parts joined by "and," OR wrapped around the parts joined by "or." Write the rule in plain English first, then translate each connector.
When to use it
Use it for layered business rules: review open tickets that are old or urgent, chase unpaid invoices that are large or overdue, audit active vendors that are new or flagged.
Common mistakes
Did this formula help?
Engine-verified against the sample data aboveDownload the proof sheet (.xlsx)Last reviewed 2026-07-09