Explore Plans
Google Sheets

Get last row in spreadsheet

This query returns the last row of a worksheet that has a value in column A, and how many rows have a value in column A.

Developer info

API endpoint slug
google_sheets.get_last_row_in_spreadsheet
Runtime method
performQuery("google_sheets.get_last_row_in_spreadsheet"}

Query fields

Path Text input > Path to a folder

Label
Drive folder path
Helper text
Format: folders separated by "/" like "Recipes/Vegetables". Leave blank for the top level of My Drive
Slug
path
Required
false
Can have default value
true

Filename Text input > File name

Label
Spreadsheet name
Helper text
E.g. Quotes
Slug
filename
Required
false
Can have default value
true

Spreadsheet url Text input > Other

Label
Or copy and paste the spreadsheet URL
Helper text
Used instead of the folder path and name when set. A URL with #gid= reads that tab
Slug
spreadsheet_url
Required
false
Can have default value
true

Worksheet Text input > Other

Label
Worksheet name
Helper text
Leave blank for the first worksheet, or the tab in a pasted URL
Slug
worksheet
Required
false
Can have default value
true

Ingredients

Column a Value in column A

Slug
column_a
Filter
GoogleSheets.getLastRowInSpreadsheet.ColumnA
Type
String
Example
Jane Doe

Column b Value in column B

Slug
column_b
Filter
GoogleSheets.getLastRowInSpreadsheet.ColumnB
Type
String
Example
jane@example.com

Column c Value in column C

Slug
column_c
Filter
GoogleSheets.getLastRowInSpreadsheet.ColumnC
Type
String
Example
Approved

Column d Value in column D

Slug
column_d
Filter
GoogleSheets.getLastRowInSpreadsheet.ColumnD
Type
String
Example
$120.00

Column e Value in column E

Slug
column_e
Filter
GoogleSheets.getLastRowInSpreadsheet.ColumnE
Type
String
Example
$120.00

Column f Value in column F

Slug
column_f
Filter
GoogleSheets.getLastRowInSpreadsheet.ColumnF
Type
String
Example
$120.00

Column g Value in column G

Slug
column_g
Filter
GoogleSheets.getLastRowInSpreadsheet.ColumnG
Type
String
Example
$120.00

Column h Value in column H

Slug
column_h
Filter
GoogleSheets.getLastRowInSpreadsheet.ColumnH
Type
String
Example
$120.00

Column i Value in column I

Slug
column_i
Filter
GoogleSheets.getLastRowInSpreadsheet.ColumnI
Type
String
Example
$120.00

Column j Value in column J

Slug
column_j
Filter
GoogleSheets.getLastRowInSpreadsheet.ColumnJ
Type
String
Example
$120.00

Column k Value in column K

Slug
column_k
Filter
GoogleSheets.getLastRowInSpreadsheet.ColumnK
Type
String
Example
$120.00

Column l Value in column L

Slug
column_l
Filter
GoogleSheets.getLastRowInSpreadsheet.ColumnL
Type
String
Example
$120.00

Column m Value in column M

Slug
column_m
Filter
GoogleSheets.getLastRowInSpreadsheet.ColumnM
Type
String
Example
$120.00

Column n Value in column N

Slug
column_n
Filter
GoogleSheets.getLastRowInSpreadsheet.ColumnN
Type
String
Example
$120.00

Column o Value in column O

Slug
column_o
Filter
GoogleSheets.getLastRowInSpreadsheet.ColumnO
Type
String
Example
$120.00

Column p Value in column P

Slug
column_p
Filter
GoogleSheets.getLastRowInSpreadsheet.ColumnP
Type
String
Example
$120.00

Column q Value in column Q

Slug
column_q
Filter
GoogleSheets.getLastRowInSpreadsheet.ColumnQ
Type
String
Example
$120.00

Column r Value in column R

Slug
column_r
Filter
GoogleSheets.getLastRowInSpreadsheet.ColumnR
Type
String
Example
$120.00

Column s Value in column S

Slug
column_s
Filter
GoogleSheets.getLastRowInSpreadsheet.ColumnS
Type
String
Example
$120.00

Column t Value in column T

Slug
column_t
Filter
GoogleSheets.getLastRowInSpreadsheet.ColumnT
Type
String
Example
$120.00

Column u Value in column U

Slug
column_u
Filter
GoogleSheets.getLastRowInSpreadsheet.ColumnU
Type
String
Example
$120.00

Column v Value in column V

Slug
column_v
Filter
GoogleSheets.getLastRowInSpreadsheet.ColumnV
Type
String
Example
$120.00

Column w Value in column W

Slug
column_w
Filter
GoogleSheets.getLastRowInSpreadsheet.ColumnW
Type
String
Example
$120.00

Column x Value in column X

Slug
column_x
Filter
GoogleSheets.getLastRowInSpreadsheet.ColumnX
Type
String
Example
$120.00

Column y Value in column Y

Slug
column_y
Filter
GoogleSheets.getLastRowInSpreadsheet.ColumnY
Type
String
Example
$120.00

Column z Value in column Z

Slug
column_z
Filter
GoogleSheets.getLastRowInSpreadsheet.ColumnZ
Type
String
Example
$120.00

Row values All values in the row as shown in the sheet, separated by "|||".

Slug
row_values
Filter
GoogleSheets.getLastRowInSpreadsheet.RowValues
Type
String
Example
Jane Doe ||| jane@example.com ||| Approved

Row index The row number. To update this row, give "Update row in spreadsheet" this RowIndex with SpreadsheetUrl and WorksheetName.

Slug
row_index
Filter
GoogleSheets.getLastRowInSpreadsheet.RowIndex
Type
String
Example
12

Worksheet name The name of the worksheet the row is in.

Slug
worksheet_name
Filter
GoogleSheets.getLastRowInSpreadsheet.WorksheetName
Type
String
Example
Orders

Spreadsheet name The name of the spreadsheet.

Slug
spreadsheet_name
Filter
GoogleSheets.getLastRowInSpreadsheet.SpreadsheetName
Type
String
Example
Order tracker

Path The folder path the spreadsheet was found in. Blank when found by URL.

Slug
path
Filter
GoogleSheets.getLastRowInSpreadsheet.Path
Type
String
Example
/IFTTT/Orders

Spreadsheet url The URL of the spreadsheet, opened at the row's worksheet.

Slug
spreadsheet_url
Filter
GoogleSheets.getLastRowInSpreadsheet.SpreadsheetUrl
Type
Web URL
Example
https://docs.google.com/spreadsheets/d/1cHROp05l1AvtsvKmfKhiyIl09FoxeZR2GGFtzI9fYcc/edit?gid=0#gid=0

Row count How many rows have a value in column A, header included. Numeric value as a string.

Slug
row_count
Filter
GoogleSheets.getLastRowInSpreadsheet.RowCount
Type
String
Example
42