The Excel array formula `I_SQL_SELECT_TABLE` executes a SQL statement, returning the result set as an array result. The result set can consist of multiple rows and/or columns.
The result set must fit in the Excel range in which the Excel array formula is entered. The creation of an array formula is described in:
[Create an array formula](https://support.microsoft.com/en-us/office/een-matrixformule-maken-e43e12e0-afc6-4a12-bc7f-48361075954d)
Parameters:
- `sqlStatement`: the SQL statement.
- `errorOnMoreRows`: whether to raise an error when more rows than available in the range are returned.
- `errorOnMoreColumns`: whether to raise an error when more columns than available in the range are returned.
- `addHeaderRow`: whether to add a header row with column labels.
- `process`: Excel boolean indicating whether to actually execute the statement.
Returns: result set as an array to fill the Excel range.
This formula is the engine behind the data downloads available through the Building Blocks menu.