If you are using cell references like $A$1 for example, then these are called ABSOLUTE references. They will not change when you copy the cell around. If you remove $$ then it is a RELATIVE reference.
You can do many things with IF formulas. The easiest way is to have a basic test, such as:
=IF(A1>B1,C1,D1), which would return whatever is in cell C1 or D1, depending on the size of A1 versus B1.
But you can also have a compound IF statement, such as:
=IF(A1 > IF(Name="Jones",B1,C1), "The cell wasn't greater than either")
This formula would test A1 against B1, unless the person's name was Jones, in which case it would test against C1. If A1 was smaller than the appropriate test, it would return that statement.