# if function

#### easyshot

##### New Member
I am trying to make up a simple check reg. add subtract. what I would like to know is if I can use the if function to post to column I if I put an x in column c but not have it post in column H? Here is the formula that I wrote to get this far.
=sum(h3-g4)+e4-f4
Thanks in advance Henry

### Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

#### Juan Pablo González

##### MrExcel MVP
On 2002-10-19 09:44, easyshot wrote:
I am trying to make up a simple check reg. add subtract. what I would like to know is if I can use the if function to post to column I if I put an x in column c but not have it post in column H? Here is the formula that I wrote to get this far.
=sum(h3-g4)+e4-f4
Thanks in advance Henry

First, the function you wrote doesn't need the SUM function, since you're only supplying one parameter, so, you could just use

=H3-G4+E4-F4

now... you want this formula in column I, to check if there's an "X" in column C and do what to column H ?

the IF function works like this

=IF(some_test, do_something_if_its_true,do_something_if_its_false)

#### easyshot

##### New Member
column e is a deposit column. Column h is the balance column, I is savings. What I would like to do is post a number in column e and have it post in column I with out adding to h. Column e is multi purpose for checking and savings
Henry

#### Juan Pablo González

##### MrExcel MVP
Can you put some example data along with expected results ? I'm not clear with what you want.

#### easyshot

##### New Member
The spred sheet is a check regester. When I what to enter a deposit in column e it automaticly adds to column h if I have any fees it subtracts them from h and when I enter an amount in column g it subtracts from h also. I would like to enter a number in column e and have it put it in column i but not add it to column h is this posiable? Henry

Replies
8
Views
485
Replies
5
Views
105
Replies
12
Views
345
Replies
0
Views
249
Replies
1
Views
90

Threads
1,148,189
Messages
5,745,243
Members
423,937
Latest member
The Great Dane

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

### Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

### Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back