0
0
Google Sheetsspreadsheet~10 mins

IF function in Google Sheets - Interactive Code Practice

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

Complete the formula to return "Pass" if the score in cell A1 is 50 or more, otherwise "Fail".

Google Sheets
=IF(A1 [1] 50, "Pass", "Fail")
Drag options to blanks, or click blank then click option'
A=
B<
C>=
D!=
Attempts:
3 left
💡 Hint
Common Mistakes
Using '<' instead of '>=' causes the logic to be reversed.
Using '=' only checks for exactly 50, not more.
2fill in blank
medium

Complete the formula to return "Yes" if cell B2 contains the text "Complete", otherwise "No".

Google Sheets
=IF(B2 [1] "Complete", "Yes", "No")
Drag options to blanks, or click blank then click option'
A<>
B=
C<
D>
Attempts:
3 left
💡 Hint
Common Mistakes
Using '<>' checks for not equal, which reverses the logic.
Using '>' or '<' does not work for text equality.
3fill in blank
hard

Fix the error in the formula to return "High" if C3 is greater than 100, else "Low".

Google Sheets
=IF(C3 [1] 100, "High", "Low")
Drag options to blanks, or click blank then click option'
A>
B<
C<=
D==
Attempts:
3 left
💡 Hint
Common Mistakes
Using '==' causes a formula error.
Using '<' or '<=' reverses the condition.
4fill in blank
hard

Fill both blanks to create a formula that returns "Adult" if age in D4 is 18 or more, otherwise "Minor".

Google Sheets
=IF(D4 [1] 18, [2], "Minor")
Drag options to blanks, or click blank then click option'
A>=
B"Adult"
CMinor
D<
Attempts:
3 left
💡 Hint
Common Mistakes
Using '<' in the first blank reverses the logic.
Putting "Minor" in the second blank causes wrong output.
5fill in blank
hard

Fill all three blanks to create a formula that returns the uppercase name if E5 is not empty, otherwise "No Name".

Google Sheets
=IF(E5 [1] "", [2](E5), [3])
Drag options to blanks, or click blank then click option'
A<>
BUPPER
C"No Name"
D=
Attempts:
3 left
💡 Hint
Common Mistakes
Using '=' in the first blank checks if E5 is empty, reversing logic.
Using LOWER instead of UPPER changes the output.
Not putting quotes around "No Name" causes an error.