Forum Discussion

miroslavbasta's avatar
miroslavbasta
Copper Contributor
May 04, 2023
Solved

IF function

Hi, I´m trying to write a simple formula along the lines of: IF((1<2<3), "ok", "x")   Why does excel return x and how do I rewrite it, so the excel returns ok?   Thanks 🙂
  • OliverScheurich's avatar
    May 04, 2023

    miroslavbasta 

    =IF(AND(1<A1,A1<3), "ok", "x")

     

    Does this return the intended result? Basically you have to reference the cell that you want to evaluate.

Resources