Logiceasy
IFS()
Evaluates multiple conditions and returns a value for the first TRUE.
Syntax
fx
=IFS(condition1, value1, [condition2, value2, ...])
Example
fx
=IFS(A1>90,"A", A1>80,"B", A1>70,"C")
Paste this into Google Sheets to run it. The live playground on this site covers 24 of the 61 functions, and IFS isn't one of them yet.
Common pitfalls
- Conditions are evaluated top-to-bottom: order matters. The first match wins.
- There's no built-in else clause. Add a final
TRUE, default_valuepair to handle the fallthrough. - Returns
#N/Aif no condition matches. Wrap inIFERRORfor safety.
Related formulas
Used by