Forum Discussion

Usfhotchris's avatar
Usfhotchris
Copper Contributor
Jan 18, 2023
Solved

Excel if/then formulas

I have a situation i cannot find a formula or help for.   Here goes:   If cell N2=S, then run P2-H2, and if that value is >14, Return "N"   If cell N2=E, the. Run P2-H2, and if that value is >3,...
  • OliverScheurich's avatar
    Jan 18, 2023

    Usfhotchris 

    =IF(OR(AND(N2="S",P2-H2>14),AND(N2="E",P2-H2>3)),"N",IF(OR(AND(N2="S",P2-H2<=14),AND(N2="E",P2-H2<=3)),"Y",""))

    You can try this nested IF formula.

     

     

Resources