Answer:
For the given problem the formula is as follows
=IF(C2>D2,”Over”,(IF(C2<D2,”Under”,”Equal”)))
and apply the same to all rows.
The syntax is If(condition,[value_if_TRUE],[value_if_FALSE])
First the “if statement” evaluates the “condition”, if the condition is TRUE it goes through “[value_if_TRUE]”, otherwise it goes through “[value_if_FALSE]”
In our Example
=IF(C2>D2,”Over”,(IF(C2<D2,”Under”,”Equal”)))
If (C2>D2)(The cell value in C2 is greater than the cell value in D2) then “Over” is the result.
Otherwise, it goes to [Value_if_FALSE] section. It finds another condition here. i.e if(C2<D2) (The cell value in C2 is less than the cell value in D2) then “Under” is the result. If(C2<D2) is also FALSE, it goes to its [Value_if_FALSE] section which is “Equal”. (If C2>D2 is false, and C2<D2 is false, then C2 must be equal to D2)