IFS function - Zoho Sheet - Help Guide

IFS

Returns a value based on the first true condition after evaluating the multiple conditions specified. It can be used instead of multiple nested IF statements.

 

Syntax

 

IFS(test; value; [test1]; [value1]; ...)
test: The first logical value or expression to evaluate. Eg., B2>89
value: The value that is returned by the function if the respective test yields true. Eg., "A+"

 

Remarks

  • You can use "TRUE" as the last test condition when you want to specify all the values other than the ones mentioned in the previous conditions.


Examples

 

Formula

Result

=IFS(B2>89;"A+";B2>79;"A";B2>69;"B";B2>59;"C";B2>49;"D";B2<50;"F")

C

=IFS(B2>89;"A+";B2>79;"A";B2>69;"B";B2>59;"C";B2>49;"D";TRUE;"F")

A


Get a hands-on experience of the function in the embedded range below.   



Possible Errors

 

Errors

Meaning

#N/A!

  • The function could not find the value it was asked to look for. Commonly occurs in VLOOKUP and similar functions.

#NAME!

  • The function name is incorrect or invalid.

  • The given defined name (if any) is invalid.

  • There is a typo in the defined name used in the function.

  • Double quotes are missing for text values in the function.

  • Colon missing in a cell range reference.

#VALUE!

  • The given argument's data type is incorrect or invalid.
    For example, the function =DATE(A1:A3) will return a #VALUE error when a text value is present in the range.

#REF!

  • The given cell reference is incorrect or invalid. This error may occur when a cell/range has been deleted, moved, or pasted over.

 

Similar Functions