Adding Two monetary columns if a third Column has an "X"

sailorflavor

New Member
Joined
Feb 13, 2016
Messages
4
I have an excel spreadsheet that contains three total columns in question. One is "Credit" the other is "Debit" and the third is "C". I have two additional cells that account for Cash and account for the bank account. I want the total cash value from the "Credit" and "Debit" column to be added in the cash cell if there is an "X" in the "C" Column and for it to be counted in the "bank account" column if there is no "X" in the "C" Column. Any and all help for a formula that would do this would be excellent! Thank you in advance.

Rami
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Welcome to the Board!

If I understand you correctly, you should be able to use IF statements to do what you want, i.e.

Cash cell formula:
Code:
=IF(C2="X",A2+B2,"")

Bank Accountl formula:
Code:
=IF(C2<>"X",A2+B2,"")
 
Upvote 0
Welcome to the MrExcel board!

Assuming the "C" column only contains "X" or nothing try this

Cash column: =IF(C2="X",SUM(A2:B2),"")
Bank column: =IF(C2="",SUM(A2:B2),"")
 
Upvote 0
Welcome to the MrExcel board!

Assuming the "C" column only contains "X" or nothing try this

Cash column: =IF(C2="X",SUM(A2:B2),"")
Bank column: =IF(C2="",SUM(A2:B2),"")

Is there a way for me to send you the excel spreadsheet to look over? Those formulas would work if it was as simple as one line but I have 746 cells built in and I need to keep a running total with money added and money subtracted. I think it would be easier if I somehow shared the spreadsheet with you. Thanks again.
 
Upvote 0
Is there a way for me to send you the excel spreadsheet to look over?
No, this is a public forum so that's not possible - refer #4 of the Forum Rules

Just post a small set of sample data (say 8-10 rows), with the expected results filled in manually, directly here in the forum. My signature block below has a link to information about how to do that.
 
Upvote 0
No, this is a public forum so that's not possible - refer #4 of the Forum Rules

Just post a small set of sample data (say 8-10 rows), with the expected results filled in manually, directly here in the forum. My signature block below has a link to information about how to do that.

Okay, I will have to wait until I'm on my home computer and not my Government one in order to do that since it requires a download. Thank you.
 
Upvote 0
The 4th link on the Attachments page does not require a download.

Alternatively, in the Reply window, click 'Go Advanced'
Bottom left of 3rd row of toolbars is 'Table' which you can insert (choose 'full grid' for borders).
After selecting that, if you don't see an actual table, click the top left toolbar icon to get "WYSIWYG"

Then you can achieve something like this:

DRCRCetc
2
566

<tbody>
</tbody>
 
Upvote 0
This is the basics of the graph, keep in mind that I have another column for total of both cash and bank account but the Navy is making me track cash and account separately as well as the total balance! The amount "861.67" is the cash I have in hand and the "700.71" is what is available in the bank account. Thanks again for all of your help.


CDebit (-)Credit (+)CashAccount
286.82861.67700.71
X132.87
305.29
X100.01
300.00
x50.00
415.30
X279.00
0.01
X20.44
X150.10
263.42
The 4th link on the Attachments page does not require a download.

Alternatively, in the Reply window, click 'Go Advanced'
Bottom left of 3rd row of toolbars is 'Table' which you can insert (choose 'full grid' for borders).
After selecting that, if you don't see an actual table, click the top left toolbar icon to get "WYSIWYG"

Then you can achieve something like this:

DRCRCetc
2
566

<tbody>
</tbody>
 
Upvote 0
I did ask for the expected results to be included, so if this is not what you want, please do that rather than trying to explain again in words. :)

Excel Workbook
ABCDE
1CDebit (-)Credit (+)CashAccount
2286.82861.67700.71
3X132.87994.54700.71
4305.29994.541,006.00
5X100.011,094.551,006.00
6300.001,094.55706.00
7x50.001,044.55706.00
8415.301,044.551,121.30
9X279.001,323.551,121.30
100.011,323.551,121.31
11X20.441,303.111,121.31
12X150.101,453.211,121.31
13263.421,453.211,384.73
Totals
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,935
Members
449,094
Latest member
teemeren

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

Which adblocker are you using?

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
Back
Top