ARRAY_CONSTRAIN

Constrains an array result to a specified size. Learn more

Video field
Array

The ARRAY_CONSTRAIN formula returns a subset of an input range, characterized by a specified number of rows and columns. In other words, it restricts or constrains the size of an input range by a specified number of rows and columns 1. It is generally used in combination with other functions that return an array result when fewer rows or columns are desired 2.

For example, if you have a 5x5 array of data but only want to display the first 3 rows and 2 columns, you could use ARRAYCONSTRAIN like this: =ARRAYCONSTRAIN(input_range, 3, 2).

Want even more from Google Sheets?


With Softr, you can turn your spreadsheets into powerful web apps.You can give advanced roles and permissions to each user, build advanced logic and automation flows, customize the design to your needs, and much more.


Softr also offers a growing library of templates for internal tools, client portals, community hubs, and more. The templates come with a Google Sheet or an Airtable base that you can use to store and manage your data easily.


Try Softr now and build your custom web apps in 10 minutes no code required!