OK, there is a function called =IF.
It goes something like this:
You can nest IF's like so:
So, with that being said, we can do:
The above example checks to compare B1 and A1. If A1 is less than B1, then C1 is Subtracted from B1, and if it isn't, it adds it!
Use the above example to write our own!