Bird
Raised Fist0
Google Sheetsspreadsheet~10 mins

Split text to columns 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 formula to split the full name in A1 into separate columns using a space delimiter.

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 comma instead of a space for name splitting.
Forgetting to wrap the delimiter in quotes.
2fill in blank
medium

Complete the formula to split a date string like '2024-01-15' in B2 into year, month, and day columns.

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 a slash when the date uses dashes.
Using a space delimiter for dash-separated dates.
3fill in blank
hard

Fix the formula to split a CSV-style value in C3 like 'apple,banana,cherry' into separate columns.

Google Sheets
=SPLIT([1], ",")
Drag options to blanks, or click blank then click option'
AC3
B"C3"
CC3:C10
D$C$3
Attempts:
3 left
💡 Hint
Common Mistakes
Wrapping the cell reference in quotes turns it into a text string.
Using a range instead of a single cell for SPLIT.
4fill in blank
hard

Fill both blanks to split text in D4 by pipe character and remove empty results.

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 FALSE keeps empty cells in the output.
Using comma instead of pipe as the delimiter.
5fill in blank
hard

Fill all three blanks to split text in E5 by tab character, keep empty cells, and treat the delimiter as a whole string.

Google Sheets
=SPLIT(E5, [1], [2], [3])
Drag options to blanks, or click blank then click option'
ACHAR(9)
BFALSE
CTRUE
DFALSE
Attempts:
3 left
💡 Hint
Common Mistakes
Trying to type a tab character directly instead of using CHAR(9).
Setting the third argument to TRUE splits by each character separately.

Practice

(1/5)
1. What does the SPLIT function do in Google Sheets?
easy
A. It breaks text into separate cells based on a chosen separator.
B. It combines multiple cells into one cell.
C. It changes the font style of the text.
D. It sorts data alphabetically.

Solution

  1. Step 1: Understand the purpose of SPLIT

    The SPLIT function is designed to divide text into multiple parts based on a separator.
  2. Step 2: Compare options with SPLIT's function

    Only It breaks text into separate cells based on a chosen separator. correctly describes this behavior; others describe different functions.
  3. Final Answer:

    It breaks text into separate cells based on a chosen separator. -> Option A
  4. Quick Check:

    SPLIT = breaks text by separator [OK]
Hint: Remember: SPLIT separates text into columns by delimiter [OK]
Common Mistakes:
  • Confusing SPLIT with CONCATENATE or JOIN
  • Thinking SPLIT changes text formatting
  • Assuming SPLIT sorts data
2. Which of the following is the correct syntax to split 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 separator for commas is "," and arguments are separated by commas in Google Sheets formulas.
  2. Step 2: Check each option's syntax

    =SPLIT(A1, ",") uses correct comma separator and argument separator. =SPLIT(A1; ",") uses semicolon which is invalid in Google Sheets. =SPLIT(A1, ',') uses single quotes which are not accepted for string literals in formulas. =SPLIT(A1, ";") uses wrong separator ";".
  3. Final Answer:

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

    Correct syntax uses commas and double quotes [OK]
Hint: Use commas to separate arguments and double quotes for text [OK]
Common Mistakes:
  • Using semicolons instead of commas between arguments
  • Using single quotes instead of double quotes for strings
  • Using wrong separator character
3. Given cell A1 contains "John,Doe,35,New York", what will =SPLIT(A1, ",") output?
medium
A. John,Doe,35,New York (unchanged)
B. John Doe 35 New York (all in one cell)
C. John | Doe | 35 | New York (each in separate cells horizontally)
D. Error: Invalid separator

Solution

  1. Step 1: Understand SPLIT behavior on comma-separated text

    SPLIT divides text at each comma and places each part into adjacent cells horizontally.
  2. Step 2: Apply SPLIT to given text

    Text "John,Doe,35,New York" splits into "John", "Doe", "35", and "New York" in separate cells.
  3. Final Answer:

    John | Doe | 35 | New York (each in separate cells horizontally) -> Option C
  4. Quick Check:

    SPLIT divides text by commas into columns [OK]
Hint: SPLIT breaks text into columns at each separator [OK]
Common Mistakes:
  • Expecting all text in one cell after SPLIT
  • Thinking SPLIT returns an error for commas
  • Confusing SPLIT with CONCATENATE
4. You used =SPLIT(A1, ",") but all text remains in one cell. What is the likely problem?
medium
A. Google Sheets does not support SPLIT.
B. The SPLIT function is misspelled.
C. The formula is missing an equal sign.
D. The separator in the text is not a comma.

Solution

  1. Step 1: Check if separator matches text content

    If the text in A1 does not contain commas, SPLIT with comma separator won't split anything.
  2. Step 2: Verify other options

    SPLIT is spelled correctly, formula has equal sign, and Google Sheets supports SPLIT, so these are not issues.
  3. Final Answer:

    The separator in the text is not a comma. -> Option D
  4. Quick Check:

    Separator must match text content for SPLIT to work [OK]
Hint: Match separator exactly to text characters [OK]
Common Mistakes:
  • Using wrong separator character
  • Forgetting equal sign in formula
  • Assuming SPLIT is unsupported
5. You have a list of full names in column A like "Jane Smith". How do you split first and last names into columns B and C using SPLIT?
hard
A. =SPLIT(A1, ",")
B. =SPLIT(A1, " ")
C. =SPLIT(A1, "-")
D. =SPLIT(A1, ";")

Solution

  1. Step 1: Identify the separator in full names

    Full names like "Jane Smith" are separated by a space character.
  2. Step 2: Use SPLIT with space separator

    Using =SPLIT(A1, " ") splits the name into first and last names into adjacent columns.
  3. Final Answer:

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

    Split full names by space to separate first and last [OK]
Hint: Use space " " as separator for splitting names [OK]
Common Mistakes:
  • Using comma or other wrong separators
  • Not using quotes around separator
  • Trying to split without specifying separator
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