ARRAY_CONSTRAIN

Constrains an array result to a specified size.

Sample Usage

ARRAY_CONSTRAIN(A1:C10, 2, 3)

ARRAY_CONSTRAIN(SORT(A1:F100, 1, TRUE), 10, 6)

Syntax

ARRAY_CONSTRAIN(input_range, num_rows, num_cols)

  • input_range - The range to constrain.
  • num_rows - The number of rows the result should contain.
  • num_cols - The number of columns the result should contain

Notes

  • Generally used in combination with other functions that return an array result when a fewer number of rows or columns are desired.

See Also

ARRAYFORMULA: Enables the display of values returned from an array formula into multiple rows and/or columns and the use of non-array functions with arrays.

true
Visit the Learning Center

Using Google products, like Google Docs, at work or school? Try powerful tips, tutorials, and templates. Learn to work on Office files without installing Office, create dynamic project plans and team calendars, auto-organize your inbox, and more.

Search
Clear search
Close search
Google apps
Main menu
1712281235314440277
true
Search Help Center
true
true
true
true
true
35
false
false