Contact

COLUMN Function (OpenOffice Calc)

Lookup Intermediate OpenOffice Calc

Learn the COLUMN function in Apache OpenOffice Calc: Returns the internal column number of a reference.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Availability and version history

  • Introduced: Documented by Apache OpenOffice 4.1.16; original introduction not established.
  • Availability: Supported in Apache OpenOffice 4.1.16, verified against its function registry. This identifies a supported release, not a final working version.
  • Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
  • Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.

COLUMN returns the one-based column coordinate of a reference: A is 1, B is 2 and C is 3. It is independent of the referenced cell’s value and row. It does not count the columns in a table; COLUMNS performs that different measurement.

Syntax and arguments

=COLUMN(reference)
=COLUMN()

The reference may be omitted. With one cell reference the result is that cell’s column number. With no argument, an ordinary scalar formula uses its own column. A multi-column range can produce a horizontal array of column numbers under array entry; normal scalar entry returns the first column coordinate. The documented array behavior is source-supported but not newly tested in the GUI. Examples use English function names and semicolon separators.

Worked example

=COLUMN(C9)

Expected result: 3.

Why it works: Find the column number of cell C9.

Example evidence

This original example retains its historical comparable LibreOffice 25.2 checking scope; it was not an OpenOffice native test. The reference controls below are independently checked source/documentation expectations, not new application captures.

Additional reference controls

Formula Reference result
=COLUMN(C9) 3
=COLUMN(A1) 1
=COLUMN(Z2) 26
=COLUMN(AA2) 27
=COLUMN($D$5) 4
=COLUMN(D2:F3) 4

Quoted results are text. ERROR means the source’s error path without claiming a newly observed localized error message. Range formulas here use ordinary scalar entry unless the array form is explicitly discussed.

Practical worksheet

Put =COLUMN() in D5 and copy across to G5. Results are 4,5,6,7. In D6 enter =COLUMN()-COLUMN($D$5)+1 and copy through G6; results are 1,2,3,4. The first expression describes absolute worksheet positions; the second describes positions within the block beginning in column D.

The dollar signs keep the anchor fixed when the formula is copied horizontally. Without them, the copied anchor would also move and each subtraction could collapse back to the same relative result. These positions are useful for a report layout, but not as immutable identifiers for fields that may later be reordered.

Advanced applications and distinctions

Cross the alphabet boundary correctly. Z is column 26 and AA is column 27. =COLUMN(AA1)-COLUMN(Z1) gives 1, not a difference between text labels. Spreadsheet column letters use a positional naming scheme; comparing the labels alphabetically is not the same operation.

Compare coordinate and width. For D2:F3, scalar COLUMN returns 4, while COLUMNS returns 3. The documented array-entry form of COLUMN(D2:F3) supplies a single row containing 4,5,6. Two source rows do not repeat that horizontal coordinate vector.

Choose the correct reference direction. Copying =COLUMN(C9) downward changes the row component of its relative reference, but the result remains 3. Copying it one column right changes the reference to D9 and the result to 4. Absolute reference =COLUMN($C$9) remains 3 under ordinary copying in either direction.

Errors and troubleshooting

A text literal such as “C9” is not automatically an address reference in COLUMN. Use C9 without quotes or a deliberately constructed reference from an appropriate separate function. The checked interpreter’s default unsupported-type path is an illegal-parameter error; no fresh localized error display is claimed.

Do not confuse a column index relative to a lookup table with a global worksheet coordinate. G is global column 7, but it is the second column of F:G. For a relative index, subtract the table’s starting COLUMN and add one.

Changing a cell’s contents does not alter its coordinate. Inserting or deleting columns can alter references and layout, including absolute references; dollar signs are copy controls rather than a permanent structural lock. The examples cover one sheet and ordinary scalar or documented array forms. Maximum-sheet boundaries, external references, named expressions and export behavior have not been executed.

Documentation and verification

The official COLUMN function reference was retrieved October 15, 2026. The pinned 4.1.16 interpreter and function descriptions retain their October 13 source retrieval dates. These support scalar branch selection, reference dimensions, lookup modes and the limitations stated here. Original introduction and last functioning version remain unestablished, separate from documented release support. No new native, GUI, array-entry or import/export test was performed.