Information function

ISOMITTED function

Checks inside a LAMBDA whether an optional parameter was left out, so your custom function can fall back to a default value.

Available in Microsoft 365, Excel 2024, Excel for the web

Excel 2024 and laterNot in Google Sheets

Syntax

ISOMITTED(argument)
ArgumentWhat it means
argumentRequiredThe name of a LAMBDA parameter to check.

Returns: TRUE if the caller did not supply a value for that parameter; otherwise FALSE.

How ISOMITTED works

ISOMITTED only makes sense inside a LAMBDA. When you build your own function, you can mark a parameter as optional by writing it in square brackets, e.g. LAMBDA(price, [discount], ...). If someone calls the function without the discount, ISOMITTED(discount) returns TRUE, and your formula can substitute a sensible default — just like built-in functions where you can leave out the last arguments.

Without ISOMITTED an omitted parameter behaves like an empty value, which in arithmetic counts as 0 and in text as "". That is sometimes acceptable, but often it is not: a missing quantity should probably mean 1, a missing tax rate should mean the standard rate. Testing explicitly makes the default visible and intentional.

Examples

1Discount left out

C2fx=LAMBDA(price, [disc], price*(1-IF(ISOMITTED(disc), 0, disc)))(B2)
ABC
1ItemList price
2Ergonomic chair200200

Result: 200

Only the price is passed, so ISOMITTED(disc) is TRUE and the discount defaults to 0: the price stays 200. In practice you would save the LAMBDA in Name Manager, e.g. as NETPRICE, and call =NETPRICE(B2).

2Discount supplied

C2fx=LAMBDA(price, [disc], price*(1-IF(ISOMITTED(disc), 0, disc)))(B2, 10%)
ABC
1ItemList price
2Ergonomic chair200180

Result: 180

Now the second argument is given, ISOMITTED returns FALSE, and 10% is applied: 200 × 0.9 = 180.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 14 KB

Common errors and how to fix them

ErrorWhy it happensFix
#NAME?Used in a version without LAMBDA support, or the argument is not a parameter of the surrounding LAMBDA.Use it only inside a LAMBDA in Microsoft 365 or Excel 2024, with a parameter name.

Tips

  • Optional parameters must come after the required ones: LAMBDA(price, [disc], ...), not LAMBDA([disc], price, ...).
  • Combine with LET for readability: LET(d, IF(ISOMITTED(disc), 0, disc), price*(1-d)).

Google Sheets

Not available; Google Sheets LAMBDA parameters are all required, so pass a placeholder value and test it with ISBLANK.