Auto add or subtract between two cells

Closed
MEL - Jun 28, 2016 at 11:57 AM
 Blocked Profile - Jun 28, 2016 at 05:51 PM
Hello,



This is probably a very simple question. I am trying to auto add or subtract between two cells. example: if B1 is greater or less than A1 it will either auto add or subtract C1
Related:

1 response

Blocked Profile
Jun 28, 2016 at 05:51 PM
OK, there is a function called =IF.

It goes something like this:
=IF(logic_test,true,false)

You can nest IF's like so:
=IF(logic_test1,if(logic_test2,logic_test2_true_result,logic_test2_false_result),logic_test1_false_result)

So, with that being said, we can do:
=IF(B1>A1,B1-C1,B1+C1)

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!

Have fun!
0