Google-sheets – Select last entry from spreedsheet

formulasgoogle sheetsgoogle-sheets-query

So I have a Google Form dumping data into spreadsheet tab form responses 1.

enter image description here

I have created another tab labeled summary. I need to have the summary tab only show the latest entry for a given pilot and be sorted by the main column. My progress thus far is

=QUERY('Form Responses 1'!A2:J,
 "SELECT max(A), B, C, D, E, F, G, H, I, J group by B, C, D, E, F, G, H, I, J")

Unfortunately, this doesn't show only the latest time stamp and for some reason, the query has a weird effect of showing max in the formula cell with a spare row.

enter image description here

Any help would be appreciated.

Best Answer

=QUERY(A2:C5; "limit 1 offset "&(COUNT(A2:C5)-1))

4