Which of the following us correct syntax in MS Excel? =IF(LogicalTest, TrueResult, FalseResult), =IF(LogicalTest, TrueResult), IF(LogicalTest, FalseResult), =IF(LogicalTest, TrueResult) IF(LogicalTest, FalseResult), None of these?

  • A=IF(LogicalTest, TrueResult, FalseResult)
  • B=IF(LogicalTest, TrueResult), IF(LogicalTest, FalseResult)
  • C=IF(LogicalTest, TrueResult) IF(LogicalTest, FalseResult)
  • DNone of these
Show answerHide answer

Correct answer A

In MS Excel, the IF function is used to return one value if a condition is TRUE and another if it is FALSE. The correct syntax always includes: =IF(LogicalTest, TrueResult, FalseResult) Key facts: LogicalTest: Condition to evaluate (e.g., A1>50) TrueResult: Value returned if condition is TRUE FalseResult: Value returned if condition is FALSE Example: =IF(A1>50, "Pass", "Fail").