What is the function of the IF function in Excel?
(A) To perform a logical test and return a value based on the result
(B) To find the average of a range of cells
(C) To count the number of cells in a range
(D) None of these
(A) To perform a logical test and return a value based on the result