Return Last N Entries from a Column

I was wondering how to return the last n entries from a column in Google Sheets.

I have seen how to return the last entry, but say I wanted to return the last 5 entries. What formula is best to use?

1

1 Answer

You can return the last n entries with the following logic :

=query(Query_formula,"Select * offset "&countif_formula)

You also need to know what your count_formula is. To filter the last n rows you can use this formula :

=countif(B2:B,E2)

This is an example based of the following link's use case :

Filter rows in Google Sheet

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.

Share this article
Twitter Facebook Pinterest