Cellgrids Cellgrids
Home › Excel formulas › Logic functions

Excel Logic Functions: Full List with Examples

By Rinkesh Shah, founder of Cellgrids.

Logical functions let a formula make decisions. They test a condition and return different results, which is the base of almost every real report. Open any function for its syntax, arguments, a worked example and a free practice spreadsheet.

FunctionWhat it does
IFReturns one value if a condition is true, another if false.
IFSChecks multiple conditions in order and returns the value for the first one that's true.
ANDReturns TRUE only if every condition given is true.
ORReturns TRUE if at least one condition given is true.
NOTFlips TRUE to FALSE and FALSE to TRUE.
XORReturns TRUE if an odd number of the given conditions are true.
IFERRORRuns a formula, but shows a fallback value instead of an error if it fails.
IFNALike IFERROR, but only catches #N/A errors specifically.
SWITCHCompares one value against a list of options and returns a matching result.
LAMBDACreates a custom, reusable function using Excel's own formula language.
LETAssigns names to calculation results, so a formula can reuse them.
BYROWApplies a LAMBDA to each row of an array and returns one result per row.
BYCOLApplies a LAMBDA to each column of an array and returns one result per column.
MAPApplies a LAMBDA to every item in an array and returns an array of results.
REDUCEReduces an array to a single accumulated value using a LAMBDA.
SCANApplies a LAMBDA to an array and returns each intermediate accumulated value.

Practice Logic functions free

Type formulas in a real spreadsheet and get instant feedback.

Start practice → Formulas cheat sheet

Frequently asked questions

What are the main Excel Logic functions?

Cellgrids lists 16 Excel Logic functions. Popular ones include IF, IFS, AND, OR, NOT. Each has its own page with syntax, arguments and an example.

How can I practice Excel Logic functions online?

Open the free live spreadsheet on Cellgrids, type the function in a cell and check your answer. No Excel install or sign-up is needed to start.

Which Excel Logic function should a beginner learn first?

Start with IF. Returns one value if a condition is true, another if false.

Other function categories