Bird
Raised Fist0
Google Sheetsspreadsheet~10 mins

Google Forms to Sheets in Google Sheets - Interactive Code Practice

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the formula to get the timestamp of a Google Form submission in Sheets.

Google Sheets
=ARRAYFORMULA([1])
Drag options to blanks, or click blank then click option'
ATODAY()
BNOW()
CFormResponses!A2:A
DIMPORTRANGE()
Attempts:
3 left
💡 Hint
Common Mistakes
Using NOW() which gives current time, not submission time.
Using TODAY() which only gives the date.
Using IMPORTRANGE() without specifying the source.
2fill in blank
medium

Complete the formula to count how many times the answer "Yes" appears in the form responses column B.

Google Sheets
=COUNTIF([1], "Yes")
Drag options to blanks, or click blank then click option'
AFormResponses!B:B
BFormResponses!A:A
CFormResponses!C:C
DResponses!B:B
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong column or sheet name.
Counting in the timestamp column instead of answers.
3fill in blank
hard

Fix the error in the formula that tries to filter responses where column C equals "No".

Google Sheets
=FILTER(FormResponses!A2:C, FormResponses!C2:C [1] "No")
Drag options to blanks, or click blank then click option'
A=
B==
C!=
D<>
Attempts:
3 left
💡 Hint
Common Mistakes
Using '==' instead of '=' causes a formula error.
Using '!=' or '<>' when checking for equality.
4fill in blank
hard

Fill both blanks to create a formula that sums values in column D only if column B equals "Completed".

Google Sheets
=SUMIF([1], [2], FormResponses!D2:D)
Drag options to blanks, or click blank then click option'
AFormResponses!B2:B
B"Completed"
C"Complete"
DFormResponses!C2:C
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong column for the condition range.
Misspelling the condition text.
5fill in blank
hard

Fill all three blanks to create a formula that creates a dictionary of question names and their average scores from columns B and C, only for scores above 70.

Google Sheets
=[1]: AVERAGEIF(FormResponses!C2:C, [2], FormResponses!B2:B) for [3] in UNIQUE(FormResponses!A2:A)}
Drag options to blanks, or click blank then click option'
Aquestion
B>70
Dscore
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up keys and values in the dictionary.
Using incorrect comparison operators.

Practice

(1/5)
1. What happens when you link a Google Form to a Google Sheet?
easy
A. Each form response is added as a new row in the Sheet.
B. The Sheet deletes all previous data automatically.
C. The form responses are saved only in the Form, not in the Sheet.
D. The Sheet creates a new column for each response.

Solution

  1. Step 1: Understand Google Forms and Sheets connection

    When a Google Form is linked to a Sheet, each submission adds a new row to the Sheet.
  2. Step 2: Check how data is stored

    Responses are stored row-wise, not by deleting data or adding columns per response.
  3. Final Answer:

    Each form response is added as a new row in the Sheet. -> Option A
  4. Quick Check:

    Form responses = new rows in Sheet [OK]
Hint: Remember: Each form answer adds a new row [OK]
Common Mistakes:
  • Thinking responses overwrite old data
  • Believing responses create new columns
  • Assuming data stays only in the Form
2. Which formula correctly sums the values in column B starting from row 2 in a Google Sheet linked to a Form?
easy
A. =SUM(B2:B100)
B. =SUM(B:B2)
C. =SUM(B2:B)
D. =SUM(B2)

Solution

  1. Step 1: Understand SUM range syntax

    The correct way to sum values in column B starting from row 2 is to specify a fixed range like B2:B100 to ensure only valid rows are summed. Using B2:B is invalid syntax in Google Sheets and will cause an error.
  2. Step 2: Check each option

    =SUM(B2) sums only one cell. =SUM(B:B2) is invalid range. =SUM(B2:B) is invalid syntax. =SUM(B2:B100) sums a fixed range, which includes rows 2 to 100.
  3. Final Answer:

    =SUM(B2:B100) -> Option A
  4. Quick Check:

    SUM from B2 to B100 = =SUM(B2:B100) [OK]
Hint: Use fixed ranges like B2:B100 to include expected data [OK]
Common Mistakes:
  • Using incorrect range syntax like B:B2
  • Summing only one cell instead of range
  • Using open-ended ranges like B2:B which are invalid
3. Given a Google Sheet linked to a Form, what will the formula =COUNTIF(C2:C, "Yes") return?
medium
A. An error because COUNTIF cannot use open-ended ranges.
B. The total number of rows in column C.
C. The number of rows where column C has the text "Yes".
D. The sum of all numeric values in column C.

Solution

  1. Step 1: Understand COUNTIF function

    COUNTIF counts how many cells in a range meet a condition. Here, it counts cells in C2:C equal to "Yes".
  2. Step 2: Analyze the formula behavior

    The formula counts all rows from C2 down with "Yes" text. It does not count all rows or sum numbers.
  3. Final Answer:

    The number of rows where column C has the text "Yes". -> Option C
  4. Quick Check:

    COUNTIF(C2:C, "Yes") = count of "Yes" [OK]
Hint: COUNTIF counts cells matching criteria in a range [OK]
Common Mistakes:
  • Thinking it counts all rows regardless of content
  • Confusing COUNTIF with SUM
  • Believing open-ended ranges cause errors
4. You want to count how many responses in column D are greater than 50, but your formula =COUNTIF(D2:D, ">50") returns 0 even though there are numbers above 50. What is the likely problem?
medium
A. The formula syntax is incorrect; COUNTIF cannot use ">50".
B. The numbers in column D are stored as text, not numbers.
C. The range D2:D is invalid and should be D:D2.
D. Google Sheets does not support COUNTIF with comparison operators.

Solution

  1. Step 1: Check formula syntax

    The formula syntax is correct; COUNTIF supports ">50" and open-ended ranges.
  2. Step 2: Identify data type issue

    If numbers are stored as text, comparison operators fail, so COUNTIF returns 0.
  3. Final Answer:

    The numbers in column D are stored as text, not numbers. -> Option B
  4. Quick Check:

    Text numbers cause COUNTIF comparison to fail [OK]
Hint: Check if numbers are text; convert to number format [OK]
Common Mistakes:
  • Assuming formula syntax is wrong
  • Using invalid range syntax
  • Believing COUNTIF can't use comparison operators
5. You have a Google Sheet linked to a Form collecting sales data: columns are Timestamp, Salesperson, Product, and Amount. You want to create a summary sheet that shows total sales per Salesperson. Which formula in the summary sheet cell B2 (next to Salesperson name in A2) will correctly calculate this?
hard
A. =VLOOKUP(A2, 'Form Responses'!B:D, 3, FALSE)
B. =COUNTIF('Form Responses'!B:B, A2)
C. =SUM('Form Responses'!D:D)
D. =SUMIF('Form Responses'!B:B, A2, 'Form Responses'!D:D)

Solution

  1. Step 1: Understand the goal

    You want total sales amount per Salesperson. So sum Amount where Salesperson matches A2.
  2. Step 2: Analyze each formula

    =SUMIF('Form Responses'!B:B, A2, 'Form Responses'!D:D) sums Amount (column D) where Salesperson (column B) equals A2. =COUNTIF('Form Responses'!B:B, A2) counts entries, not sums. =SUM('Form Responses'!D:D) sums all sales ignoring salesperson. =VLOOKUP(A2, 'Form Responses'!B:D, 3, FALSE) looks up a single value, not sum.
  3. Final Answer:

    =SUMIF('Form Responses'!B:B, A2, 'Form Responses'!D:D) -> Option D
  4. Quick Check:

    SUMIF sums Amount by Salesperson [OK]
Hint: Use SUMIF to sum amounts matching salesperson [OK]
Common Mistakes:
  • Using COUNTIF instead of SUMIF for totals
  • Summing entire column ignoring salesperson
  • Using VLOOKUP which returns single match only