2. Which of the following is the correct syntax for the IF function in Excel?
easy
A. =IF(condition; value_if_true; value_if_false)
B. =IF(condition value_if_true value_if_false)
C. =IF condition, value_if_true, value_if_false
D. =IF(condition, value_if_true, value_if_false)
Solution
Step 1: Recall Excel formula syntax
Excel formulas use commas to separate arguments, not semicolons or spaces.
Step 2: Identify the correct syntax
The correct syntax is =IF(condition, value_if_true, value_if_false).
Final Answer:
=IF(condition, value_if_true, value_if_false) -> Option D
Quick Check:
Arguments separated by commas = =IF(condition, value_if_true, value_if_false) [OK]
Hint: Use commas to separate IF arguments, not semicolons or spaces [OK]
Common Mistakes:
Using semicolons instead of commas
Omitting parentheses
Not separating arguments properly
3. Given the formula =IF(B2<50, "Fail", "Pass") and the value in B2 is 45, what will be the result?
medium
A. Fail
B. Pass
C. 45
D. Error
Solution
Step 1: Evaluate the condition B2<50 with B2=45
Since 45 is less than 50, the condition is true.
Step 2: Determine the IF function output
Because the condition is true, the formula returns "Fail".
Final Answer:
Fail -> Option A
Quick Check:
Condition true returns first value = Fail [OK]
Hint: Check condition result first, then pick true or false output [OK]
Common Mistakes:
Choosing the false result instead of true
Returning the cell value instead of text
Confusing less than and greater than
4. Identify the error in this formula: =IF(A1>100 "High" "Low")
medium
A. Wrong comparison operator
B. Missing commas between arguments
C. Extra parentheses
D. Incorrect use of quotes
Solution
Step 1: Check the IF function argument separators
The formula lacks commas between the condition and the true/false results.
Step 2: Correct the formula syntax
It should be =IF(A1>100, "High", "Low") with commas separating arguments.
Final Answer:
Missing commas between arguments -> Option B
Quick Check:
Arguments must be comma-separated = Missing commas between arguments [OK]
Hint: Always separate IF arguments with commas [OK]
Common Mistakes:
Forgetting commas between arguments
Using semicolons or spaces instead
Misplacing quotes around text
5. You want to assign a grade based on score in cell C3: "A" if score is 90 or above, "B" if 80 to 89, and "F" otherwise. Which formula correctly uses nested IF functions?
hard
A. =IF(C3>90, "A", IF(C3>80, "B", "F"))
B. =IF(C3>=90, "A", IF(C3>=70, "B", "F"))
C. =IF(C3>=90, "A", IF(C3>=80, "B", "F"))
D. =IF(C3>=90, "A", IF(C3>80, "B", "F"))
Solution
Step 1: Understand the grading rules
Score 90 or above = "A", 80 to 89 = "B", below 80 = "F".
Step 2: Check nested IF logic and conditions
=IF(C3>=90, "A", IF(C3>=80, "B", "F")) correctly checks if C3≥90 for "A", else if C3≥80 for "B", else "F".
Final Answer:
=IF(C3>=90, "A", IF(C3>=80, "B", "F")) -> Option C
Quick Check:
Nested IF with correct ranges = =IF(C3>=90, "A", IF(C3>=80, "B", "F")) [OK]
Hint: Use nested IFs with descending conditions for ranges [OK]
Common Mistakes:
Using > instead of ≥ causing wrong grade boundaries
Incorrect second condition range
Missing nested IF structure
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.