Look in Excel's help file at "IF worksheet function". There you will see that the arguments for the IF function are
[COLOR=blue white]IF(logical_test,value_if_true,value_if_false)[/color]
Your logical_test will be something like [COLOR=blue white]And(A1<>"",B1<>"")[/color] (there are many ways to test if those cells are blank, but this seems pretty straightforward for someone who isn't familiar with functions).
Your value_if_true will be [COLOR=blue white]A1+B1[/color].
Your value_if_false is whatever you want to do if either cell is empty. If you want C1 to just appear empty, then you can use [COLOR=blue white]""[/color].
Putting that all together, you get:
[COLOR=blue white]=If(And(A1<>"",B1<>""),A1+B1,"")[/color]
[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]
Help us help you. Please read FAQ181-2886 before posting.