---
title: "I_SQL_SELECT_TABLE"
description: "The Excel array formula I_SQL_SELECT_TABLE executes a SQL statement, returning the result set as an array result."
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/docs/invantive-control-for-excel/formulas/generic/i-sql-select-table
original: https://documentation.invantive.eu/en/docs/invantive-control-for-excel/formulas/generic/i-sql-select-table
updated: 2026-08-09T00:00:00Z
license: https://documentation.invantive.eu/en/
---

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/create-an-array-formula-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.

## Release Notes

- [Invantive Control for Excel](/en/release-notes/products/invantive-control-for-excel)
  - [26.0 to 27.0](/en/release-notes/products/invantive-control-for-excel?step=26.0-to-27.0)
  - [25.0 to 26.0](/en/release-notes/products/invantive-control-for-excel?step=25.0-to-26.0)

