Bird
Raised Fist0
Excelspreadsheet~10 mins

IFS function (multiple conditions) 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 return "Pass" if the score is 50 or more, otherwise "Fail".

Excel
=IFS(A1 [1] 50, "Pass", TRUE, "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 wrong results.
Using '=' only checks for exactly 50, not more.
2fill in blank
medium

Complete the formula to return "Excellent" if score is 90 or more, "Good" if 70 or more, otherwise "Needs Improvement".

Excel
=IFS(A1 [1] 90, "Excellent", A1 [1] 70, "Good", TRUE, "Needs Improvement")
Drag options to blanks, or click blank then click option'
A<=
B<
C>=
D>
Attempts:
3 left
💡 Hint
Common Mistakes
Using different operators for the two conditions causes errors.
Using '<' instead of '>=' reverses the logic.
3fill in blank
hard

Fix the error in the formula to correctly assign grades: "A" for 90+, "B" for 80+, "C" for 70+, else "F".

Excel
=IFS(A1 [1] 90, "A", A1 [1] 80, "B", A1 [1] 70, "C", TRUE, "F")
Drag options to blanks, or click blank then click option'
A>
B>=
C<
D<=
Attempts:
3 left
💡 Hint
Common Mistakes
Using '<=' causes the formula to assign wrong grades.
Using '<' reverses the condition meaning.
4fill in blank
hard

Fill both blanks to create a formula that returns "Low" if A1 is less than 50, "Medium" if between 50 and 80, else "High".

Excel
=IFS(A1 [1] 50, "Low", A1 [2] 80, "Medium", TRUE, "High")
Drag options to blanks, or click blank then click option'
A<
B>=
C<=
D>
Attempts:
3 left
💡 Hint
Common Mistakes
Using '>=' in the first blank reverses the logic.
Using '>' instead of '<=' in the second blank causes wrong results.
5fill in blank
hard

Fill all three blanks to create a formula that returns "Fail" if score < 50, "Pass" if score >= 50 and < 75, else "Distinction".

Excel
=IFS(A1 [1] 50, "Fail", AND(A1 [2] 50, A1 [3] 75), "Pass", TRUE, "Distinction")
Drag options to blanks, or click blank then click option'
A<
B>=
D>
Attempts:
3 left
💡 Hint
Common Mistakes
Using '>=' in the first blank causes wrong fail condition.
Mixing up '<' and '>=' in the second and third blanks causes errors.

Practice

(1/5)
1. What does the IFS function do in Excel?
easy
A. Tests multiple conditions and returns the value for the first true one.
B. Adds numbers in a range.
C. Finds the average of numbers.
D. Sorts data alphabetically.

Solution

  1. Step 1: Understand the purpose of IFS

    The IFS function checks several conditions one by one.
  2. Step 2: Identify the output behavior

    It returns the value linked to the first condition that is true.
  3. Final Answer:

    Tests multiple conditions and returns the value for the first true one. -> Option A
  4. Quick Check:

    IFS returns first true condition value [OK]
Hint: Remember: IFS stops at first true condition [OK]
Common Mistakes:
  • Thinking IFS sums values
  • Confusing IFS with AVERAGE
  • Assuming IFS sorts data
2. Which of these is the correct syntax for the IFS function in Excel?
easy
A. =IFS(condition1; value1; condition2; value2)
B. =IFS(value1, condition1, value2, condition2)
C. =IFS(condition1, value1, condition2, value2, TRUE, default_value)
D. =IFS(condition1 value1 condition2 value2)

Solution

  1. Step 1: Recall IFS syntax rules

    IFS requires pairs: condition, then value, separated by commas.
  2. Step 2: Check each option's format

    =IFS(condition1, value1, condition2, value2, TRUE, default_value) uses correct comma separators and pairs conditions with values properly.
  3. Final Answer:

    =IFS(condition1, value1, condition2, value2, TRUE, default_value) -> Option C
  4. Quick Check:

    Correct IFS syntax uses condition-value pairs separated by commas [OK]
Hint: Pairs: condition then value, separated by commas [OK]
Common Mistakes:
  • Using semicolons instead of commas
  • Swapping condition and value order
  • Missing commas between pairs
3. Given the formula =IFS(A1>90, "A", A1>80, "B", A1>70, "C", TRUE, "F") and cell A1 contains 85, what will be the result?
medium
A. "A"
B. "F"
C. "C"
D. "B"

Solution

  1. Step 1: Evaluate conditions in order with A1=85

    Check if 85 > 90 (false), then 85 > 80 (true).
  2. Step 2: Return value for first true condition

    Since 85 > 80 is true, return "B" immediately.
  3. Final Answer:

    "B" -> Option D
  4. Quick Check:

    First true condition value is "B" [OK]
Hint: Check conditions top to bottom, stop at first true [OK]
Common Mistakes:
  • Choosing "A" because 85 is close to 90
  • Ignoring order of conditions
  • Selecting default "F" incorrectly
4. Identify the error in this formula: =IFS(A1>90, "A", A1>80, "B", A1>70, "C") when A1 is 65.
medium
A. Too many conditions for IFS function.
B. Missing a default TRUE condition for fallback value.
C. Conditions are not in descending order.
D. Incorrect use of quotation marks around letters.

Solution

  1. Step 1: Check what happens if no condition is true

    With A1=65, none of the conditions (A1>90, A1>80, A1>70) are true.
  2. Step 2: Identify missing fallback condition

    Without a final TRUE condition, IFS returns #N/A error when no conditions match.
  3. Final Answer:

    Missing a default TRUE condition for fallback value. -> Option B
  4. Quick Check:

    Always include TRUE fallback to avoid errors [OK]
Hint: Always end IFS with TRUE for default value [OK]
Common Mistakes:
  • Forgetting default TRUE condition
  • Thinking order of conditions causes error
  • Assuming quotation marks cause error
5. You want to assign grades based on scores in cell B2 using IFS: 90+ = "Excellent", 80-89 = "Good", 70-79 = "Average", below 70 = "Poor". Which formula correctly implements this?
hard
A. =IFS(B2>=90, "Excellent", B2>=80, "Good", B2>=70, "Average", TRUE, "Poor")
B. =IFS(B2>90, "Excellent", B2>80, "Good", B2>70, "Average", TRUE, "Poor")
C. =IFS(B2>=90, "Excellent", B2>80, "Good", B2>70, "Average", TRUE, "Poor")
D. =IFS(B2>90, "Excellent", B2>=80, "Good", B2>=70, "Average", TRUE, "Poor")

Solution

  1. Step 1: Understand grade ranges and conditions

    Grades include 90 and above as "Excellent", 80 to 89 as "Good", 70 to 79 as "Average", below 70 as "Poor".
  2. Step 2: Check condition operators for correct ranges

    Use >= for lower bounds to include boundary values correctly.
  3. Step 3: Verify fallback condition

    TRUE at the end covers scores below 70 with "Poor".
  4. Final Answer:

    =IFS(B2>=90, "Excellent", B2>=80, "Good", B2>=70, "Average", TRUE, "Poor") -> Option A
  5. Quick Check:

    Use >= for inclusive ranges and TRUE fallback [OK]
Hint: Use >= for boundaries and TRUE last for default [OK]
Common Mistakes:
  • Using > instead of >= causing boundary errors
  • Missing TRUE fallback condition
  • Incorrect order of conditions
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