EXCEL SWITCH FUNCTION

The SWITCH function is one of Excel’s Mathematical tools. The most significant Excel functions for financial analysts are listed here. This cheat sheet contains hundreds of functions that are essential for an Excel analyst to know. This function will compare a provided or value) to a list of values and return the first matching value as a result. If no matching value is found, an optional default value will be returned

Syntax :

=SWITCH(expression, value1, result1, [default or value2, result2],…[default or value3, result3])

Parameters :

  • Expression (mandatory parameter) – This can be a number, a date, or any text to be compared by the function.

Step By Step Guide of SWITCH Function

Example :

  • #N/A error – The SWITCH function has been unable to compare and there is no else parameter, ahas occurred. For example, if we use the formula=SWITCH(A3,1,”Sunday”,2,”Monday”,3,”Tuesday”) with the number 7, the function will return the #N/A error.
  • #NAME? error – Occurs when we modify a cell in a Specially prepared that does not include the SWITCH function.

Related Functions

HLOOKUP Function

HLOOKUP Function

Explore Now

VLOOKUP Function

VLOOKUP Function

Explore Now

INDEX Function

INDEX Function

Explore Now

MATCH Function

MATCH Function

Explore Now

DATE Function

DATE Function

Explore Now

IF Function

IF Function

Explore Now

OR Function

OR Function

Explore Now

AND Function

AND Function

Explore Now

RANK Function

RANK Function

Explore Now

SUMIF Function

SUMIF Function

Explore Now

XIRR Function

XIRR Function

Explore Now

WORKDAYS Function

WORKDAYS Function

Explore Now