0
0
Google Sheetsspreadsheet~20 mins

LIMIT and OFFSET in Google Sheets - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
LIMIT and OFFSET Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
2:00remaining
Using OFFSET to get a range starting from row 3
Given a list of numbers in cells A1:A10, which formula correctly returns 5 cells starting from the 3rd row?
A=OFFSET(A1,3,0,5,1)
B=OFFSET(A1,2,0,5,1)
C=OFFSET(A1,2,0,4,1)
D=OFFSET(A1,1,0,5,1)
Attempts:
2 left
💡 Hint
Remember OFFSET counts rows starting from zero offset.
📊 Formula Result
intermediate
2:00remaining
Using LIMIT with QUERY to get top 3 rows
You have data in A1:B10. Which QUERY formula returns only the first 3 rows of data?
A=QUERY(A1:B10,"SELECT * LIMIT 3")
B=QUERY(A1:B10,"SELECT * OFFSET 3")
C=QUERY(A1:B10,"SELECT * LIMIT 5")
D=QUERY(A1:B10,"SELECT * LIMIT 10 OFFSET 3")
Attempts:
2 left
💡 Hint
LIMIT controls how many rows to return from the start.
Function Choice
advanced
2:00remaining
Choosing the correct formula to skip first 4 rows and get next 3 rows
Which formula correctly returns 3 rows starting after skipping the first 4 rows from data in A1:A10?
AAll of the above
B=QUERY(A1:A10,"SELECT * LIMIT 3 OFFSET 4")
C=INDEX(A1:A10,5,1):INDEX(A1:A10,7,1)
D=OFFSET(A1,4,0,3,1)
Attempts:
2 left
💡 Hint
Think about how OFFSET, QUERY, and INDEX can be used to select ranges.
📊 Formula Result
advanced
2:00remaining
What is the output of this QUERY with LIMIT and OFFSET?
Given data in A1:A6 as {10,20,30,40,50,60}, what is the output of =QUERY(A1:A6,"SELECT Col1 LIMIT 2 OFFSET 3")?
A10, 20
B30, 40
C50, 60
D40, 50
Attempts:
2 left
💡 Hint
OFFSET skips rows, LIMIT picks how many rows after that.
🎯 Scenario
expert
3:00remaining
Extract a dynamic range using OFFSET and COUNTA
You have a list of names in column A starting at A1. The list length changes daily. Which formula dynamically returns the entire list without empty cells below?
A=OFFSET(A1,1,0,COUNTA(A:A),1)
B=OFFSET(A1,0,0,COUNTA(A:A)-1,1)
C=OFFSET(A1,0,0,COUNTA(A:A),1)
D=OFFSET(A2,0,0,COUNTA(A:A),1)
Attempts:
2 left
💡 Hint
COUNTA counts non-empty cells. OFFSET starts at A1 with zero offset.