0
0
Google Sheetsspreadsheet~10 mins

Custom formula-based rules 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 allow only positive numbers in cell A1.

Google Sheets
=IF([1], TRUE, FALSE)
Drag options to blanks, or click blank then click option'
AA1>0
BA1>=0
CA1=0
DA1<0
Attempts:
3 left
💡 Hint
Common Mistakes
Using less than or equal to zero instead of greater than zero.
Checking for equality to zero instead of greater than zero.
2fill in blank
medium

Complete the formula to allow only text entries in cell B2.

Google Sheets
=ISTEXT([1])
Drag options to blanks, or click blank then click option'
AC2
BA2
CB1
DB2
Attempts:
3 left
💡 Hint
Common Mistakes
Referencing the wrong cell.
Using a number instead of a cell reference.
3fill in blank
hard

Fix the error in the formula to allow only dates after January 1, 2023 in cell C3.

Google Sheets
=C3>[1]
Drag options to blanks, or click blank then click option'
ADATE(2023,1,1)
B"2023-01-01"
C1/1/2023
D2023-01-01
Attempts:
3 left
💡 Hint
Common Mistakes
Using a string instead of the DATE function.
Writing the date as a division expression.
4fill in blank
hard

Fill both blanks to allow only whole numbers between 1 and 100 in cell D4.

Google Sheets
=AND(ISNUMBER(D4), D4 [1] 1, D4 [2] 100)
Drag options to blanks, or click blank then click option'
A>=
B<=
C>
D<
Attempts:
3 left
💡 Hint
Common Mistakes
Using strict greater than or less than operators instead of inclusive ones.
Not checking if the value is a number.
5fill in blank
hard

Fill all three blanks to allow only text in cell E5 that starts with 'A' and has length 3.

Google Sheets
=AND(ISTEXT(E5), LEFT(E5, [1]) = [2], LEN(E5) [3] 3)
Drag options to blanks, or click blank then click option'
A1
B"A"
C=
D>
Attempts:
3 left
💡 Hint
Common Mistakes
Using greater than instead of equals for length.
Not quoting the letter 'A' in the comparison.