Bird
Raised Fist0
Excelspreadsheet~10 mins

Formula-based rules in Excel - Interactive Code Practice

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

Complete the formula to check if cell A1 is greater than 10.

Excel
=IF(A1 [1] 10, "Yes", "No")
Drag options to blanks, or click blank then click option'
A<
B>
C=
D<=
Attempts:
3 left
💡 Hint
Common Mistakes
Using '<' instead of '>'
Using '=' which checks for equality, not greater than
2fill in blank
medium

Complete the formula to sum the values in cells B1 to B5.

Excel
=SUM([1])
Drag options to blanks, or click blank then click option'
AB1:B6
BC1:C5
CA1:A5
DB1:B5
Attempts:
3 left
💡 Hint
Common Mistakes
Selecting the wrong column range
Including an extra cell like B6
3fill in blank
hard

Fix the error in the formula to calculate the average of cells C1 to C4.

Excel
=AVERAGE([1])
Drag options to blanks, or click blank then click option'
AC1:C4
BC1-C4
CC1;C4
DC1.C4
Attempts:
3 left
💡 Hint
Common Mistakes
Using dash '-' instead of colon ':'
Using semicolon ';' or dot '.' which are invalid
4fill in blank
hard

Fill both blanks to create a formula that counts how many cells in D1:D10 are equal to 5.

Excel
=COUNTIF([1], [2])
Drag options to blanks, or click blank then click option'
AD1:D10
BE1:E10
C"=5"
D"5"
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong range like E1:E10
Using "=5" instead of "5" as criteria
5fill in blank
hard

Fill all three blanks to create a formula that returns the maximum value in F1:F8 if it is greater than 50, otherwise returns "Low".

Excel
=IF(MAX([1]) [2] 50, MAX([3]), "Low")
Drag options to blanks, or click blank then click option'
AF1:F8
B>
D<
Attempts:
3 left
💡 Hint
Common Mistakes
Using '<' instead of '>' in the condition
Using different ranges in MAX functions

Practice

(1/5)
1. What does a formula-based rule in Excel do when the formula returns TRUE?
easy
A. It changes the cell's appearance based on the rule.
B. It deletes the cell content.
C. It copies the cell to another sheet.
D. It locks the cell from editing.

Solution

  1. Step 1: Understand formula-based rules

    Formula-based rules use formulas that return TRUE or FALSE to decide if formatting applies.
  2. Step 2: Effect of TRUE result

    If the formula returns TRUE, Excel applies the formatting like color or font change to the cell.
  3. Final Answer:

    It changes the cell's appearance based on the rule. -> Option A
  4. Quick Check:

    TRUE formula triggers formatting [OK]
Hint: TRUE formulas trigger formatting changes in cells [OK]
Common Mistakes:
  • Thinking the rule deletes or moves data
  • Confusing formatting with locking cells
  • Assuming FALSE triggers formatting
2. Which of these is the correct formula to highlight cells greater than 50 in conditional formatting?
easy
A. IF(A1>50)
B. A1>50
C. =A1>50
D. =IF(A1>50)

Solution

  1. Step 1: Check formula syntax for conditional formatting

    Conditional formatting formulas must start with '=' and return TRUE or FALSE.
  2. Step 2: Validate each option

    =A1>50 uses correct syntax and returns TRUE or FALSE directly. IF(A1>50) and A1>50 miss '='. =IF(A1>50) uses incomplete IF without value_if_true and value_if_false.
  3. Final Answer:

    =A1>50 -> Option C
  4. Quick Check:

    Formula must start with '=' and return TRUE/FALSE [OK]
Hint: Always start formulas with '=' in conditional formatting [OK]
Common Mistakes:
  • Omitting '=' at the start
  • Using incomplete IF statements
  • Writing formulas that don't return TRUE/FALSE
3. Given the formula-based rule with formula =AND(A1>10, A1<20), which cells will be formatted?
medium
A. All cells regardless of value
B. Cells with values equal to 10 or 20
C. Cells with values less than 10 or greater than 20
D. Cells with values between 10 and 20, excluding 10 and 20

Solution

  1. Step 1: Understand the AND formula conditions

    The formula checks if A1 is greater than 10 AND less than 20 simultaneously.
  2. Step 2: Determine which values satisfy both conditions

    Only values strictly between 10 and 20 (not including 10 or 20) make the formula TRUE.
  3. Final Answer:

    Cells with values between 10 and 20, excluding 10 and 20 -> Option D
  4. Quick Check:

    AND(A1>10, A1<20) means 10 < A1 < 20 [OK]
Hint: AND means all conditions must be TRUE simultaneously [OK]
Common Mistakes:
  • Including boundary values 10 or 20
  • Confusing AND with OR logic
  • Thinking it formats all cells
4. You wrote the formula =A1>100 for conditional formatting but no cells are highlighted even though some values are above 100. What is the likely problem?
medium
A. The formula is missing the '=' sign at the start.
B. The formula is correct but the range is not set properly.
C. The formula should use IF(A1>100) instead.
D. Conditional formatting does not support comparison operators.

Solution

  1. Step 1: Check formula correctness

    The formula '=A1>100' is correct syntax for conditional formatting.
  2. Step 2: Consider the formatting range

    If no cells highlight, likely the conditional formatting rule is applied to the wrong or empty range.
  3. Final Answer:

    The formula is correct but the range is not set properly. -> Option B
  4. Quick Check:

    Correct formula + wrong range = no formatting [OK]
Hint: Check the range where the rule is applied [OK]
Common Mistakes:
  • Removing '=' sign
  • Using IF unnecessarily
  • Believing conditional formatting can't compare values
5. You want to highlight cells in column A that are either blank or contain a number less than 50. Which formula-based rule should you use?
hard
A. =OR(ISBLANK(A1), A1<50)
B. =AND(ISBLANK(A1), A1<50)
C. =IF(A1="", TRUE, A1<50)
D. =NOT(ISBLANK(A1))

Solution

  1. Step 1: Understand the condition requirements

    We want to format cells that are blank OR have a number less than 50.
  2. Step 2: Choose the correct logical formula

    OR(ISBLANK(A1), A1<50) returns TRUE if either condition is met, matching the requirement.
  3. Final Answer:

    =OR(ISBLANK(A1), A1<50) -> Option A
  4. Quick Check:

    Use OR for either condition TRUE [OK]
Hint: Use OR to combine multiple conditions [OK]
Common Mistakes:
  • Using AND instead of OR
  • Misusing IF inside conditional formatting
  • Ignoring blank cells condition
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