how can I combine these two formulas

rincewind2019

New Member
Joined
Jan 29, 2019
Messages
23
Hi, Anyone know how I can combine these formulas?

=IF(OR(ISBLANK(A5),ISBLANK(B5)), ""

=SUM($H$5:H5)-SUM($I$5:I5)

Thanks
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
the IF uses a TEST , TRUE , FALSE

you have an OR
so if A5 is blank or B5 is blank =TEST (TRUE)
if TRUE Then return a ""
what do you want if Either A5 or B5 is NOT blank (FALSE)
when do you want to apply
=SUM($H$5:H5)-SUM($I$5:I5)
 
Upvote 0
abcdefghijk
incomeexpendbank
DateDescriptionRecIncomeVouchexpendCHQ NoDepositsWithdrawalbalanceCash
1/1B Forward100.0010.00
1/1Test 1110.001100.0020..00
2/1Test 2120.00120.00800.00




<tbody>
</tbody>
I'm trying to put together a simple cash book. I need to be able to transfer money from bank balance column J from cash K and vice versa using the deposits and withdrawals columns.
Been trying for days, any help you can offer would be great.
 
Upvote 0
where do you want to put the result ?

new column K

is that to be in CASH ?
you have the brought forward figures in row 2
so in row 3 J and K

Why is balance 100 when cash has gone up from 10 to 20 , with no deposit or withdrawel

you could use an addin to post here
OR
link to dropbox , onedrive
 
Upvote 0
abcdefghijk
incomeexpendbank
DateDescriptionRecIncomeVouchexpendCHQ NoDepositsWithdrawalbalanceCash
1/1B Forward100.0010.00
1/1Test 1110.001100.0020..00
2/1Test 2120.00120.008020.00

<tbody>
</tbody>

Sorry didn't notice that error
Test 1 is cash coming in, so the cash column going up 10 while the bank balance stays the same.
Test 2 is a cheque being paid out, so the bank balance goes down £20 while the cash stays the same.
My problem is I can't find a formula the that while allow transfers to the bank from cash and visa versa. i though the two formulas I have found may work but I can't find a way to combine them in cell J
 
Upvote 0
and so row 4 should be -10

then use in
J3
=J2+$H3-$I3
K3
=K2+$H3-$I3

then to stop blank entries - Will a blank row have a date entry in A?
if not then
change to
J3
=IF($A3="","",J2+$H3-$I3)
k3
=IF($A3="","",K2+$H3-$I3)
 
Upvote 0
abcdefghijk
incomeexpendbank
DateDescriptionRecIncomeVouchexpendCHQ NoDepositsWithdrawalbalanceCash
1/1B Forward100.0010.00
1/1Test 1110.001100.0020..00
2/1Cash to Bank20.00120.00
00.00

<tbody>
</tbody>

table above shows what I need to happen (like I should have done in the first place, sorry)
Both formulas I would like to combine seem to work fine on there own, I would like to keep the ISBLANK parts because it just makes the whole thing look tidy.
 
Upvote 0
ok,
but the formula will keep tidy

but we need the full rules of what happens

cash has increased with D3 income 10.00
but not the balance ??
 
Upvote 0

Forum statistics

Threads
1,215,179
Messages
6,123,495
Members
449,100
Latest member
sktz

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