Keeping the formula blank until data is entered

motsali

New Member
Joined
Jun 18, 2019
Messages
2
Hi guys. I'm creating a bank statement format on excel; but need help in the balance column. I want the amount to be displayed only if the value is entered in debit credit columns (either 1 column).
A B C D E
[TABLE="class: grid, width: 822"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Particulars[/TD]
[TD] Debit[/TD]
[TD] Credit[/TD]
[TD] Running Balance[/TD]
[/TR]
[TR]
[TD]01-Jan-2019[/TD]
[TD]Opening Balance[/TD]
[TD][/TD]
[TD][/TD]
[TD] 500.00[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Received from A[/TD]
[TD][/TD]
[TD] 200.00[/TD]
[TD] 700.00[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Received from B[/TD]
[TD][/TD]
[TD] 150.00[/TD]
[TD] 850.00[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Paid to C[/TD]
[TD] 450.00[/TD]
[TD][/TD]
[TD] 400.00[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Received from D[/TD]
[TD][/TD]
[TD] 900.00[/TD]
[TD] 1,300.00[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] 1,300.00[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] 1,300.00[/TD]
[/TR]
</tbody>[/TABLE]

So as you can see in the above table that the formula balance is still appearing in E7 even though there are no values in C7 or D7.

Please help. TIA
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
This in E3 with the opening balance in E2:

=IF(COUNT(C3:D3),$E$2+SUM($D$3:D3)-SUM($C$3:C3),"")
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,631
Latest member
a_potato

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