Skip to content

Commit c96d690

Browse files
authored
Merge pull request #127 from Jython1415/claude/add-isomitted-pattern-fhLT1
Add ISOMITTED function for optional parameter detection
2 parents 767163c + 922e1d6 commit c96d690

2 files changed

Lines changed: 58 additions & 0 deletions

File tree

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ A collection of named Excel/Google Sheets formulas using LET and LAMBDA function
3030
- **[HSTACKBLANK](#hstackblank)** - Stacks two arrays horizontally, padding shorter arrays with blank cells to match dimensions. Convenience wrapper for HSTACKFILL using BLANK().
3131
- **[HSTACKFILL](#hstackfill)** - Stacks two arrays horizontally, padding shorter arrays with a specified fill value to match dimensions. Prevents #N/A errors from mismatched heights.
3232
- **[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.
33+
- **[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.
3334
- **[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.
3435
- **[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.
3536
- **[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
16041605

16051606
</details>
16061607

1608+
<details>
1609+
<summary><strong>ISOMITTED</strong></summary>
1610+
1611+
### ISOMITTED
1612+
1613+
**Description**
1614+
1615+
```
1616+
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.
1617+
```
1618+
1619+
**Parameters**
1620+
1621+
```
1622+
1. value
1623+
```
1624+
1625+
**Formula**
1626+
1627+
```
1628+
ISBLANK(value)
1629+
```
1630+
1631+
#### value
1632+
1633+
**Description:**
1634+
1635+
```
1636+
The parameter to check for omission
1637+
```
1638+
1639+
**Example:**
1640+
1641+
```
1642+
A1
1643+
```
1644+
1645+
</details>
1646+
16071647
<details>
16081648
<summary><strong>NONERRORSTO</strong></summary>
16091649

formulas/isomitted.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: ISOMITTED
2+
version: 1.0.0
3+
4+
description: >
5+
Checks if a LAMBDA parameter was omitted using the double-comma syntax
6+
(e.g., FUNC(a, , c)). This is a semantic helper for optional parameters in
7+
Google Sheets custom functions. Since Google Sheets passes omitted arguments
8+
as blank values, this function uses ISBLANK internally. Note: Unlike Excel's
9+
ISOMITTED, this cannot distinguish between an omitted argument and an
10+
explicitly passed blank cell reference - both will return TRUE.
11+
12+
parameters:
13+
- name: value
14+
description: The parameter to check for omission
15+
example: "A1"
16+
17+
formula: |
18+
ISBLANK(value)

0 commit comments

Comments
 (0)