HLOOKUP Function in Collabora Office Calc: Formula, Examples & Troubleshooting
Learn the HLOOKUP formula in Collabora Office Calc: search a header row and return a value beneath the match, with reproducible examples, expected answers and compatibility cautions.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: HLOOKUP searches the first row of a table and returns a value from a specified row in the matching column. Set the fourth argument to FALSE for an exact-key lookup; omitting it selects the documented sorted-boundary mode.
Availability and version history
- Introduced: original Collabora release and launch date are not established by the sources reviewed.
- Availability: documented in Collabora Office 26.04 help, scoped to the desktop-help release.
- Platform scope: online and mobile deployments are not inferred from desktop documentation.
- Checked: October 14, 2026. Exact function section and independent lookup controls; no native Collabora test was performed.
Syntax and arguments
=HLOOKUP(lookup; array; index; [sorted_range_lookup])
The first three arguments are required. The return index counts rows from the top of the supplied table, with its first row numbered 1. The optional fourth argument uses the VLOOKUP rules with rows and columns exchanged: FALSE/0 requests an exact match; TRUE/1 or omission assumes ascending boundaries in the first row.
Prepare the original inputs
Use English function names and semicolon argument separators. Store the Amount and Units values as actual numbers. The original source table is retained below; each later example explicitly identifies when to use a separate worksheet.
For the formulas that reference cells, enter this small dataset into A1:F9 (the first row contains headings). The Amount and Units columns are numbers; the team, status, item and agent columns are text. Keep the calculation cell outside A1:F9 so it cannot overwrite an input.
| Row | A · Item | B · Team | C · Status | D · Amount | E · Units | F · Agent |
|---|---|---|---|---|---|---|
| 1 | Item | Team | Status | Amount | Units | Agent |
| 2 | Pen | East | Paid | 120 | 12 | Ana |
| 3 | Pad | West | Pending | 75 | 5 | Bo |
| 4 | Box | East | Paid | 210 | 7 | Ana |
| 5 | Tape | North | Paid | 90 | 0 | Cy |
| 6 | Folder | West | Paid | 150 | 3 | Bo |
| 7 | Pen | East | Pending | 60 | 8 | Dee |
| 8 | Pad | West | Paid | 125 | 12 | Ana |
| 9 | Box | North | Pending | 80 | 4 | Cy |
Example 1: original control
=HLOOKUP("Amount";A1:F9;3;FALSE)
Expected result: 75. Amount appears in column D; the third row of A1:F9 is the second order, whose amount is 75.
Example 2: original comparison
=HLOOKUP("Team";A1:F9;2;FALSE)
Expected result: East. Team appears in column B; the second row contains East.
Example 3: distinguish table-relative and worksheet row numbers
The original table begins in worksheet row 1, so its return indices happen to match sheet row numbers. Narrow the same source table to A2:F9:
=HLOOKUP("East";A2:F9;2;FALSE)
The first row of this smaller table is the original Pen order. Its unique East entry is in column B. Return row 2 is now worksheet row 3, giving expected result West.
This formula is a position control, not a sensible way to identify an order. The top row of a real horizontal lookup table should contain stable keys, rather than unrelated values from one record.
Example 4: a complete horizontal price table
On a separate sheet, enter this table in A1:D3. The explanatory row-number column is not pasted into the worksheet.
| Row | A | B | C | D |
|---|---|---|---|---|
| 1 | Field | P-100 | P-200 | P-300 |
| 2 | Price | 12 | 18 | 25 |
| 3 | Stock | 7 | 0 | 9 |
=HLOOKUP("P-200";B1:D3;2;FALSE)
=HLOOKUP("P-200";B1:D3;3;FALSE)
Expected results are 18 and 0. Numeric zero stock is a valid returned observation. It must not be interpreted as evidence that the key was absent.
The lookup range begins in column B and includes the key row. Excluding that row would make the prices the search keys and answer a different question.
Advanced example: choose a return row by its label
Keep the separate horizontal table above:
=HLOOKUP("P-300";B1:D3;MATCH("Stock";A1:A3;0);FALSE)
MATCH finds Stock at position 3 in A1:A3, so the expected output is 9. Both the label list and lookup table begin on the same row, which makes their relative positions align.
Using A2:A3 instead would give Stock position 2, selecting Price and returning 25. A dynamically calculated index is useful only when its origin matches the table’s origin. See MATCH for its exact-position rule.
Advanced example: sorted thresholds are a different task
In a fresh A1:D2 range enter numeric boundaries 0, 10, 20, 50 across row 1 and labels Starter, Standard, Plus, Bulk across row 2:
=HLOOKUP(35;A1:D2;2;TRUE)
=HLOOKUP(35;A1:D2;2)
Both documentation-based expected results are Plus: 20 is the last boundary no greater than 35. Exact boundary 20 also selects Plus; 50 selects Bulk. These thresholds are deliberately sorted ascending and distinct.
With FALSE, 35 has no exact entry and the documented VLOOKUP-derived rule produces #N/A, rather than silently selecting the lower bracket. Do not use the omitted argument with an unsorted identifier table merely because some lookups appear to work.
Pattern settings and missing-key checks
FALSE selects exact-key search mode but does not disable configured wildcard or regular-expression interpretation. The Collabora section explicitly says matching can depend on the document’s calculation options. Use plain keys for the examples above and record those settings when moving a workbook.
For an intentionally enabled regular-expression mode, a unique pattern such as ^P-3[0][0]$ selects P-300 in the separate price table and has expected price 25. With regular expressions disabled, that string need not identify the same key. Do not assume a regex, wildcard and literal string are interchangeable.
The cited section delegates its argument explanation to VLOOKUP. It does not provide a complete duplicate-header, case-sensitivity, malformed-index or blank-return matrix. Keep keys unique when those distinctions matter, and verify any needed edge in the actual deployment. For a vertical table, use VLOOKUP.
Related program guides
References and verification
- Collabora Office 26.04: HLOOKUP.
- Collabora Office 26.04: MATCH.
- Collabora Office 26.04: INDEX.
- Editorial testing standards.
The complete older manuscript, original dataset and worked formulas were reviewed. The function-specific section replaces an unrelated mathematical-functions citation. Results are independent expectations under the stated settings and qualifications; no native execution or cross-product equivalence is claimed.