IF functions in Excel are very useful but I've found the syntax to be a little tricky. I wanted to have an IF with more than two different outcomes, to do that you need to nest the IF statements. I discovered the following page which has a couple of easy to follow videos. I recommend it:
For Excel 2013, 2010, probably other versions too.