COLUMN Function (Gnumeric)
Return worksheet column numbers with Gnumeric COLUMN, including omitted references, absolute references and horizontal range vectors.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
COLUMN reports the worksheet column of a reference, counting A as 1, B as 2 and C as 3. It reads location rather than contents. A blank C9 has the same column number as an occupied C9.
The reference is optional. In an ordinary scalar formula, omission returns the column containing the formula. A reference spanning several columns yields a horizontal vector of their column numbers, not simply the width. COLUMNS answers the separate width question.
Syntax
COLUMN([reference])
Worked examples
The original =COLUMN(C9) returns 3 without needing any data in C9. =COLUMN($C$9) also returns 3. Dollar signs change copying behavior rather than the current value.
In D2, =COLUMN() returns 4. Copy it to E2 and it returns 5. Copying COLUMN($C$9) instead preserves the fixed reference and returns 3. Record the formula destination when demonstrating omission.
For B2:D4, =INDEX(COLUMN(B2:D4),1,2) returns 3, selecting the second member of the horizontal vector 2,3,4. =COLUMNS(COLUMN(B2:D4)) returns 3. The three rows in the source range do not add more members to the column vector. These wrappers verify its orientation without asserting a particular GUI array-entry workflow.
Advanced use
COLUMN(C9)-COLUMN($C$9)+1 starts a relative index at one and advances when copied right. The first reference moves while the second retains the starting column. Distinguish worksheet coordinates from positions relative to a table, especially when the table begins outside column A.
Inserting columns can update references and change positions. COLUMN therefore serves positional logic rather than permanent identification of a business field. Stable keys and named headers address a different need. Check formulas after reorganizing the worksheet.
Errors and troubleshooting
COLUMN(7) returns #VALUE!: a scalar number is not a reference. Quoting “C9” makes text instead of a reference. Despite broad wording in the help, the pinned callback accepts cell ranges and rejects other supplied value types. Do not infer literal-array support from the reference-vector example. Multi-cell array-context defaults are outside these scalar tests.
Availability and verification
- Introduced: Gnumeric 0.19, explicitly listed among new functions in official NEWS.
- Historical source availability: Supported in Gnumeric 1.12.62, based on the function-specific registration.
- Scope: Desktop; the fn-lookup function module must be included and enabled.
- Historical check: October 14, 2026. Documentation/source check; no new native test in Gnumeric 1.12.62.
The selected examples and errors were recalculated with the actual Gnumeric 1.12.57 engine under C.UTF-8 on 17 October 2026. Native workbooks and observed outputs are retained. No GUI array-entry behavior, retirement date or last-functioning release is established. Historical 1.12.62 registration is separate from the pinned 1.12.57 implementation.