Contact

HSTACK Function in ONLYOFFICE Spreadsheet Editor: Syntax, Examples and Compatibility

Array Intermediate ONLYOFFICE Spreadsheet Editor

Use HSTACK in ONLYOFFICE Spreadsheet Editor to place separate ranges side by side to create one wider array. Two original examples, expected results, cautions and official software documentation.

Verification status: Official documentation referenced; example outcomes independently reasoned or arithmetically checked where stated. Not executed in ONLYOFFICE Spreadsheet Editor. How formula examples are checked

Quick answer: place separate ranges side by side to create one wider array in ONLYOFFICE Spreadsheet Editor. The reproducible examples below use explicit values so the formula’s meaning is testable without a large workbook.

Evidence: The function name and syntax are documented in the linked vendor function reference. Expected outputs were independently reasoned or checked outside the application. These are not native ONLYOFFICE Spreadsheet Editor test results. A guide being published here does not certify every software release or file-import scenario.

Syntax and arguments

=HSTACK(array1, [array2], ...)

Supply two or more ranges. HSTACK appends each second range to the right of the first.

Best use case: Place separate ranges side by side to create one wider array.

Set up the example sheet

Enter A2=Pen, A3=Pad, C2=12, and C3=5. Keep the two-cell output region clear before entering the formulas.

Enter the formula in an unused cell. For a formula returning several values, leave an unobstructed area where those values can expand. These formulas use comma argument separators in a typical English-language locale; commas or semicolons inside quoted text are data, not argument separators. Adapt the separator if your regional settings require it.

Worked example 1: HSTACK with known input

=HSTACK(A2:A3,C2:C3)

Expected output: two rows: Pen, 12 and Pad, 5.

The left source column is placed beside the right source column.

Worked example 2: a second HSTACK case

=HSTACK(C2:C3,A2:A3)

Expected output: two rows: 12, Pen and 5, Pad.

Reversing the arguments reverses the placement of the source ranges.

Compare both results before replacing literal values or short sample ranges with your own workbook data. For a spilling formula, compare every output cell, not only the top-left result.

Practical advice and troubleshooting

When this formula helps: HSTACK is useful for assembling export-ready tables without writing back into the original cells.

Important edge case: Input arrays of unequal heights require padding; the exact padding and error-display behavior is application-dependent.

If the result differs, first verify the text-versus-number types of the input cells, the argument separators for your locale, and the range size. For dynamic arrays, inspect occupied cells in the output area. An error that looks like a missing function may reflect a software version rather than incorrect data.

Compatibility and version considerations

The ONLYOFFICE Spreadsheet Editor function list confirms this function name, but available desktop/server releases can differ. ONLYOFFICE documents commas for English formula arguments. Do not assume formatting or headers are copied into array results. HSTACK combines values and follows spill rules. The Excel/Google comparison is background only, not a claim of identical behavior in ONLYOFFICE Spreadsheet Editor.

Modern dynamic-array Excel and current Google Sheets list HSTACK; it is not a safe choice for Excel 2013.

Function availability and parameter behavior must be judged for the specific application and release; a function documented in one spreadsheet does not automatically work in another.

Application-specific source note: The ONLYOFFICE Spreadsheet Editor function list confirms this function name, but available desktop/server releases can differ. ONLYOFFICE documents commas for English formula arguments.

Formula separator: These examples use commas for the function-argument separators. Locale settings can change entry conventions.

Editorial verification: Function name checked in official vendor catalogue on 2026-10-12. The two example outputs are independently reasoned; no native application run, screenshot, or version-specific output is claimed. Review the editorial testing standards if you require stronger proof before importing a workbook.