OK, the syntax for if is as follows:
The above would populate the cell that has this formula with A2, as long as something is in A3. It shows nothing if there is nothing.
Give that a shot and see if it is acting how you would expect. Then use that example and continue to cascade the solution!
I have said it once, I will say it again. IT!