Hi,

What do I change in the following formula to get it to work?

HTML Code: 
If C1=abc and G1= def, then add D1
If C1=abc and G1= ghi, the subtract D1
If not then leave blank


Mike