diff --git a/README.md b/README.md index 7857a5b..888a757 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,7 @@ A collection of named Excel/Google Sheets formulas using LET and LAMBDA function - **[HSTACKBLANK](#hstackblank)** - Stacks two arrays horizontally, padding shorter arrays with blank cells to match dimensions. Convenience wrapper for HSTACKFILL using BLANK(). - **[HSTACKFILL](#hstackfill)** - Stacks two arrays horizontally, padding shorter arrays with a specified fill value to match dimensions. Prevents #N/A errors from mismatched heights. - **[ISBLANKLIKE](#isblanklike)** - Checks if a cell is either truly blank (ISBLANK) or an empty string (""). This is useful for identifying cells that appear empty but may contain empty strings from formulas or data imports. Returns TRUE if the cell is blank-like, FALSE otherwise. +- **[ISOMITTED](#isomitted)** - Checks if a LAMBDA parameter was omitted using the double-comma syntax (e.g., FUNC(a, , c)). This is a semantic helper for optional parameters in Google Sheets custom functions. Since Google Sheets passes omitted arguments as blank values, this function uses ISBLANK internally. Note: Unlike Excel's ISOMITTED, this cannot distinguish between an omitted argument and an explicitly passed blank cell reference - both will return TRUE. - **[NONERRORSTO](#nonerrorsto)** - Replaces non-error cells with a specified value while preserving error cells. Accepts either a single value or a range. When given a range, automatically applies the replacement to all cells using MAP. Useful for masking valid data while keeping errors visible for debugging or validation purposes. - **[OMITCOLS](#omitcols)** - Excludes specified columns from a range. This is the negation of CHOOSECOLS - instead of selecting columns to keep, it selects columns to remove. - **[OMITROWS](#omitrows)** - Excludes specified rows from a range. This is the negation of CHOOSEROWS - instead of selecting rows to keep, it selects rows to remove. @@ -1604,6 +1605,45 @@ A1 +
+ISOMITTED + +### ISOMITTED + +**Description** + +``` +v1.0.0 Checks if a LAMBDA parameter was omitted using the double-comma syntax (e.g., FUNC(a, , c)). This is a semantic helper for optional parameters in Google Sheets custom functions. Since Google Sheets passes omitted arguments as blank values, this function uses ISBLANK internally. Note: Unlike Excel's ISOMITTED, this cannot distinguish between an omitted argument and an explicitly passed blank cell reference - both will return TRUE. +``` + +**Parameters** + +``` +1. value +``` + +**Formula** + +``` +ISBLANK(value) +``` + +#### value + +**Description:** + +``` +The parameter to check for omission +``` + +**Example:** + +``` +A1 +``` + +
+
NONERRORSTO diff --git a/formulas/isomitted.yaml b/formulas/isomitted.yaml new file mode 100644 index 0000000..3fd5251 --- /dev/null +++ b/formulas/isomitted.yaml @@ -0,0 +1,18 @@ +name: ISOMITTED +version: 1.0.0 + +description: > + Checks if a LAMBDA parameter was omitted using the double-comma syntax + (e.g., FUNC(a, , c)). This is a semantic helper for optional parameters in + Google Sheets custom functions. Since Google Sheets passes omitted arguments + as blank values, this function uses ISBLANK internally. Note: Unlike Excel's + ISOMITTED, this cannot distinguish between an omitted argument and an + explicitly passed blank cell reference - both will return TRUE. + +parameters: + - name: value + description: The parameter to check for omission + example: "A1" + +formula: | + ISBLANK(value)