Bird
Raised Fist0
Google Sheetsspreadsheet~10 mins

SPLIT function in Google Sheets - Interactive Code Practice

Choose your learning style10 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to split the text in cell A1 by commas.

Google Sheets
=SPLIT(A1, [1])
Drag options to blanks, or click blank then click option'
A;
B,
C" "
D-
Attempts:
3 left
💡 Hint
Common Mistakes
Using a semicolon or space instead of a comma as delimiter.
Forgetting to put the delimiter inside quotes.
2fill in blank
medium

Complete the code to split the text in cell B2 by a space character.

Google Sheets
=SPLIT(B2, [1])
Drag options to blanks, or click blank then click option'
A,
B" "
C;
D-
Attempts:
3 left
💡 Hint
Common Mistakes
Using comma or semicolon instead of space.
Not using quotes around the delimiter.
3fill in blank
hard

Fix the error in the formula to split text in C3 by a dash.

Google Sheets
=SPLIT(C3, [1])
Drag options to blanks, or click blank then click option'
A-
B'-'
C"-"
D_
Attempts:
3 left
💡 Hint
Common Mistakes
Using the dash without quotes causes an error.
Using single quotes may not work in Google Sheets formulas.
4fill in blank
hard

Fill both blanks to split the text in D4 by semicolon and remove empty cells.

Google Sheets
=SPLIT(D4, [1], [2])
Drag options to blanks, or click blank then click option'
A";"
BTRUE
CFALSE
D,
Attempts:
3 left
💡 Hint
Common Mistakes
Using comma instead of semicolon as delimiter.
Setting the second argument to FALSE or omitting it, which keeps empty cells.
5fill in blank
hard

Fill all three blanks to split text in E5 by colon, keep empty cells, and split by each character.

Google Sheets
=SPLIT(E5, [1], [2], [3])
Drag options to blanks, or click blank then click option'
A":"
BFALSE
CTRUE
DTRUE
Attempts:
3 left
💡 Hint
Common Mistakes
Using TRUE for the second argument removes empty cells.
Not quoting the delimiter properly.

Practice

(1/5)
1. What does the SPLIT function do in Google Sheets?
easy
A. It finds the largest number in a list.
B. It breaks text into parts based on a separator.
C. It changes text to uppercase.
D. It adds numbers together.

Solution

  1. Step 1: Understand the purpose of SPLIT

    The SPLIT function is designed to separate text into smaller pieces using a character or characters as a divider.
  2. Step 2: Compare options with SPLIT's function

    Only It breaks text into parts based on a separator. describes breaking text into parts, which matches SPLIT's behavior.
  3. Final Answer:

    It breaks text into parts based on a separator. -> Option B
  4. Quick Check:

    SPLIT breaks text = It breaks text into parts based on a separator. [OK]
Hint: Remember: SPLIT cuts text by chosen characters [OK]
Common Mistakes:
  • Confusing SPLIT with math functions
  • Thinking SPLIT changes text case
  • Assuming SPLIT finds max or min values
2. Which of these is the correct syntax to split the text in cell A1 by commas?
easy
A. =SPLIT(A1, ";")
B. =SPLIT(A1; ",")
C. =SPLIT(A1, ",")
D. =SPLIT(A1)

Solution

  1. Step 1: Identify correct separator and syntax

    The SPLIT function requires the text and the separator as arguments, separated by commas. The separator here is a comma ",".
  2. Step 2: Check each option's syntax

    =SPLIT(A1, ",") uses commas correctly and the right separator. =SPLIT(A1; ",") uses semicolon which is invalid in Google Sheets formulas. =SPLIT(A1, ";") uses wrong separator ";". =SPLIT(A1) misses the separator argument.
  3. Final Answer:

    =SPLIT(A1, ",") -> Option C
  4. Quick Check:

    Correct syntax with comma separator = =SPLIT(A1, ",") [OK]
Hint: Use commas to separate arguments, specify separator in quotes [OK]
Common Mistakes:
  • Using semicolons instead of commas
  • Forgetting to put separator in quotes
  • Omitting the separator argument
3. Given cell A1 contains "apple,banana,cherry", what will =SPLIT(A1, ",") return?
medium
A. ["apple,banana,cherry"] as one cell
B. Error because separator is missing
C. ["apple"; "banana"; "cherry"] in separate cells vertically
D. ["apple", "banana", "cherry"] in separate cells horizontally

Solution

  1. Step 1: Understand SPLIT behavior with comma separator

    SPLIT breaks text at each comma and places each piece in adjacent cells horizontally by default.
  2. Step 2: Analyze the output for given input

    Input text "apple,banana,cherry" splits into "apple", "banana", and "cherry" placed side by side in cells.
  3. Final Answer:

    ["apple", "banana", "cherry"] in separate cells horizontally -> Option D
  4. Quick Check:

    Split by comma = horizontal cells with parts [OK]
Hint: SPLIT places parts horizontally by default [OK]
Common Mistakes:
  • Expecting vertical split without specifying
  • Thinking output stays in one cell
  • Confusing separator presence
4. The formula =SPLIT(A1, ",", "TRUE") gives an error. What is the likely cause?
medium
A. The third argument TRUE is invalid for SPLIT.
B. The separator must be a number, not a string.
C. The separator argument is missing.
D. SPLIT does not accept more than two arguments.

Solution

  1. Step 1: Review SPLIT function arguments

    SPLIT accepts up to four arguments: text, delimiter, split_by_each (TRUE/FALSE), and remove_empty_text (TRUE/FALSE). The third argument is split_by_each and must be a boolean.
  2. Step 2: Check if TRUE is valid here

    The third argument is "TRUE" (a string), but SPLIT expects a boolean TRUE/FALSE (without quotes) for split_by_each. A string causes a type mismatch error.
  3. Final Answer:

    The third argument TRUE is invalid for SPLIT. -> Option A
  4. Quick Check:

    Check argument types carefully [OK]
Hint: Check argument count and types carefully [OK]
Common Mistakes:
  • Assuming SPLIT only takes two arguments
  • Confusing separator type requirements
  • Ignoring optional arguments
5. You have a cell A1 with text "John;Doe;30;New York". How do you split this text into separate cells vertically (one below another) using SPLIT?
hard
A. =TRANSPOSE(SPLIT(A1, ";"))
B. =SPLIT(A1, ";", TRUE)
C. =SPLIT(A1, ";", FALSE, TRUE)
D. =SPLIT(A1, ";")

Solution

  1. Step 1: Understand SPLIT default behavior

    SPLIT splits text into cells horizontally by default, so the parts appear side by side.
  2. Step 2: Use TRANSPOSE to convert horizontal output to vertical

    Wrapping SPLIT with TRANSPOSE changes the horizontal array into a vertical one, placing each part in cells below each other.
  3. Final Answer:

    =TRANSPOSE(SPLIT(A1, ";")) -> Option A
  4. Quick Check:

    Use TRANSPOSE to switch horizontal to vertical [OK]
Hint: Wrap SPLIT with TRANSPOSE for vertical output [OK]
Common Mistakes:
  • Expecting SPLIT alone to split vertically
  • Misusing optional arguments for vertical split
  • Forgetting to use TRANSPOSE for vertical layout
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard