Forum Discussion
Usfhotchris
Jan 18, 2023Copper Contributor
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,...
- Jan 18, 2023
=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.
OliverScheurich
Jan 19, 2023Gold Contributor
=IF(COUNTIF(Z3:AE3,"Y")=6,"Y",IF(COUNTIF(Z3:AE3,"N")>=1,"N",""))Maybe with this formula. It returns "Y" if all 6 cells Z3-AE3 contain "Y" and it returns "N" if at least one the cells Z3-AE3 contains "N".
Usfhotchris
Jan 19, 2023Copper Contributor
I'm def. Closer, and it's my fault, as i told you wrong. The cells can contain Y OR NA to show overall a Y.