This function appends arrays horizontally and in sequence to return a larger array.

Sample Usage

HSTACK(A1:E2; A3:E4)

Syntax

HSTACK(range1; [range2, …])

  • range1: The first range to append.
  • range2, …: [ OPTIONAL ] Additional ranges to add to range1.

Examples

Simple append operation with HSTACK

Example data:

1Year: 2021Q1Q2Q3Q4
2WinnerAndrewLucaRobertEric
3Year: 2022Q1Q2Q3Q4
4WinnerLolaAndyMaryKate

Example: Input this formula in A6: =HSTACK(A1:E2; A3:E4)

Result:

ABCDEFGHIJ
6Year: 2021Q1Q2Q3Q4Year: 2022Q1Q2Q3Q4
7WinnerAndrewLucaRobertEricWinnerLolaAndyMaryKate

Make a Copy