IF/OR Formula with multiple criteria not working as desired (365 for enterprise - beginner)
Our take
When a teacher’s spreadsheet decides who can skip a remedial session, the logic behind the formulas matters as much as the grades themselves. The post by /The‑Sweetest‑Pea highlights a classic pitfall: an IF/OR construction that appears to work on paper but stalls until a specific column—STAAR scores—receives data. The issue isn’t the “advanced” nature of the function; it’s a subtle mismatch between how Excel evaluates logical tests and how the worksheet is populated. Readers who have wrestled with similar scenarios will recognize the frustration of a cell that stays stubbornly blank or returns the wrong flag, especially when the stakes involve eligibility for exemptions. A quick look at the original formula—`=IF(OR($B2>6,$C2<80,$D2<3775,$E2="Y"),"NO","YES")`—reveals that the logic is sound: any single breach should trigger “NO.” Yet the symptom described—nothing changing unless D2 (the STAAR score) is entered—suggests that one of the referenced cells is being interpreted as empty rather than zero, and the OR function treats an empty cell as FALSE. When B2, C2, or E2 are blank, the formula still evaluates, but the missing D2 value forces the entire OR to wait for a numeric entry before returning a result. This is why the user sees a static output until the STAAR column is populated.
A practical fix starts with ensuring that every logical test has a defined fallback. Wrapping each condition with `IFERROR` or using `N()` to coerce blanks to zero can unblock the evaluation. For example, `=IF(OR(N($B2)>6,N($C2)<80,N($D2)<3775,$E2="Y"),"NO","YES")` forces Excel to treat empty cells as zero, allowing the OR to compute immediately. Another approach is to add explicit checks for blanks: `=IF(OR($B2>6,$C2<80,$D2<3775,$E2="Y", $B2="", $C2="", $D2=""),"NO","YES")`. This way the formula acknowledges that the absence of data is itself a condition that should lead to a “NO” or, depending on policy, a “YES.” The key insight is that logical formulas are only as reliable as the data they reference; when a column may be left empty, the formula must anticipate that scenario.
Beyond the mechanics, the discussion underscores a broader theme for educators and administrators: spreadsheet logic should mirror policy intent, not the other way around. If the goal is to **empower** staff to make quick eligibility decisions, the worksheet must be **accessible**—free of hidden dependencies that require manual data entry just to trigger a result. An overly complex formula can unintentionally create a “gatekeeper” effect, where missing data stalls the workflow and forces users to chase down scores that may not be relevant for a particular student. By simplifying the logical flow and using defensive programming techniques, the spreadsheet becomes a transparent decision engine rather than a black box that users fear to touch.
Looking ahead, the next wave of AI‑native spreadsheet tools promises to surface these logical gaps automatically, suggesting corrections before a workbook is even saved. As these assistants become more **future‑focused**, they will not only flag potential errors but also propose alternative structures that keep the user in control. Until that vision is fully realized, the onus remains on us to build formulas that are both **authoritative** in their outcomes and **human‑centered** in their design. What will it look like when a spreadsheet can *explain* why a student receives a “YES” or “NO” in plain language, turning raw logic into an intuitive narrative for every stakeholder?
Hey all,
I'm trying to make an IF/OR that will generate a "YES" even if only one of the listed criteria is met.
Originally I was trying:
=IF(OR($B2>6,$C2<80,$D2<3775, $E2="Y"),"NO","YES")
Basically, if absences are greater than 6, Grade is lower than 80, STAAR score is less than 3775, OR Discipline = Y, then the output should be NO, the student is not eligible to exempt.
However what I'm seeing is that nothing is happening unless I enter the STAAR score. Even at zero absences, the data does not change to YES.
SO, I attempted a modified, more specific formula:
=IF(OR($B2>6,$C2<80, $C2>0,$D2<3775, $D2>1649, $E2="Y"),"NO","YES")
Even if I enter data that should result in a YES in the "Eligible?" column, it remains unchanged until I enter the STAAR score.
Other note, I do have conditional formatting on columns B, C, D, and E, but only to change the cell color if certain data are present. For example C2>6 will turn red, C<6, C>2 will turn yellow, and C<3 will turn green.
Please advise! Any help is appreciated.
[link] [comments]
Read on the original site
Open the publisher's page for the full experience