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.
Thanks to both of you. I knew how to do the IF statement for one cell, I just couldn't figure out the proper syntax for two cells. I was putting the AND in the wrong spot.
Appreciate the explanation and not just the answer!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.