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...
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 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 :