Skip to main content
googleSheets.readValues reads A1 or named ranges in one request. Use row actions for records keyed by headers instead of positional matrices.

Example

Inputs

Provide spreadsheet and one range or non-empty ranges array. majorDimension defaults to rows and also accepts columns. valueRender defaults to unformatted and also accepts formatted or formula. dateTimeRender defaults to serialNumber and also accepts formattedString when values aren’t formatted. Second argument { account } selects the Google Account.

Output

Returns one { range, majorDimension, values } per requested range. values is (string | number | boolean | null)[][]. The outer dimension matches majorDimension. Google omits trailing empty cells and rows, so matrices may have ragged rows and cover less than the requested range.