Google Sheets Select First N Matches

[Solved] Google Sheets Select First N Matches | Excel - Code Explorer | yomemimo.com
Question : google sheets select first n matches

Answered by : charlesalexandre-roy

# Basic syntax:
=QUERY(A:A,"Select A Limit 10")
# Where:
#	- this selects the first 10 values from column A
# More advanced example:
=QUERY(A10:E,"Select A,B,C,D,E Order by C Desc Limit 5")
# Where:
#	- this selects the first 5 rows on the range defined by A10:E that
#	have been sorted in descending order by column C

Source : https://infoinspired.com/google-docs/spreadsheet/extract-top-n-number-of-items-from-a-data-range-in-google-sheets/ | Last Update : Sun, 17 Jul 22

Answers related to google sheets select first n matches

Code Explorer Popular Question For Excel