Range resource type
4 minutes to read
In this article
Range represents a set of one or more contiguous cells such as a cell, a row, a column, block of cells, etc.
Range Read properties and relationships of range object.
Range Update Range object.
Range Gets the smallest range object that encompasses the given ranges. For example, the GetBoundingRect of "B2:C5" and "D10:E15" is "B2:E16".
Range Gets the range object containing the single cell based on row and column numbers. The cell can be outside the bounds of its parent range, so long as it's stays within the worksheet grid. The returned cell is located relative to the top left cell of the range.
Range Gets a column contained in the range.
workbookRangeView Gets a certain number of columns to the right of the given range.
workbookRangeView Gets a certain number of columns to the left of the given range.
Range Gets an object that represents the entire column of the range.
Range Gets an object that represents the entire row of the range.
Range Gets the range object that represents the rectangular intersection of the given ranges.
Range Gets the last cell within the range. For example, the last cell of "B2:D5" is "D5".
Range Gets the last column within the range. For example, the last column of "B2:D5" is "D2:D5".
Range Gets the last row within the range. For example, the last row of "B2:D5" is "B5:D5".
Range Gets an object which represents a range that's offset from the specified range. The dimension of the returned range will match this range. If the resulting range is forced outside the bounds of the worksheet grid, an exception will be thrown.
Range Gets a row contained in the range.
workbookRangeView Gets a certain number of rows above a given range.
workbookRangeView Gets a certain number of rows below a given range.
Range Returns the used range of the given range object.
Clear range values, format, fill, border, etc.
Deletes the cells associated with the range.
Range Inserts a cell or a range of cells into the worksheet in place of this range, and shifts the other cells to make space. Returns a new Range object at the now blank space.
Merge the range cells into one region in the worksheet.
workbookRangeView Gets a range object similar to the current range object, but with its bottom-right corner expanded (or contracted) by some number of rows and columns.
Unmerge the range cells into separate cells.
workbookRangeView Get the range visible from a filtered range.
Represents the range reference in A1-style. Address value will contain the Sheet reference (e.g. Sheet1!A1:B4). Read-only.
Represents range reference for the specified range in the language of the user. Read-only.
Number of cells in the range. Read-only.
Represents the total number of columns in the range. Read-only.
Represents if all columns of the current range are hidden.
Represents the column number of the first cell in the range. Zero-indexed. Read-only.
Represents the formula in A1-style notation.
Represents the formula in A1-style notation, in the user's language and number-formatting locale. For example, the English "=SUM(A1, 1.5)" formula would become "=SUMME(A1; 1,5)" in German.
Represents the formula in R1C1-style notation.
Represents if all cells of the current range are hidden. Read-only.
Represents Excel's number format code for the given cell.
Returns the total number of rows in the range. Read-only.
Represents if all rows of the current range are hidden.
Returns the row number of the first cell in the range. Zero-indexed. Read-only.
Text values of the specified range. The Text value will not depend on the cell width. The # sign substitution that happens in Excel UI will not affect the text value returned by the API. Read-only.
Represents the type of data of each cell. The possible values are:
Represents the raw values of the specified range. The data returned could be of type string, number, or a boolean. Cell that contain an error will return the error string.
WorkbookRangeFormat Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only.
WorkbookRangeSort The worksheet containing the current range. Read-only.
WorkbookWorksheet The worksheet containing the current range. Read-only.
Here is a JSON representation of the resource.