Simple addition only when value in cell

coughandcathmitie

New Member
Joined
Feb 12, 2021
Messages
3
Office Version
  1. 2011
Platform
  1. Windows
Hi , I have a simple spreadsheet that I only want to add cells if a figure is included at get a running balance going forward . I only want the total when there is something in the adjacent cell . Every time I try it completes formula for the whole spreadsheet . I have tried various IF parameters but still can manage it . It should be simple ... maybe just a busy week Friday afternoon blindness issue !!

1613148850032.png
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Welcome to the Board!

Try this:

In cell E9:
Excel Formula:
=IF(D9<>0,D9+D6,"-")

In cell E10:
Excel Formula:
=IF(D10<>0,D10+E9,"-")
and copy down.
 
Upvote 0
Solution
For E9; If(D9>””,D9+D6)

For E10; If(D10>””,E9+D10)
 
Upvote 0
For E9; If(D9>””,D9+D6)

For E10; If(D10>””,E9+D10)
A few things to note:

1. Excel does not like slanted quotation marks like in your formula (”). Those will cause errors. You need to use the straight up and down ones (").
2. By not providing a FALSE argument in your IF functions, if the condition is not met, it will return the word FALSE in the cell, which I am pretty sure they do not want. Just tell it to return nothing ("") or a dash, like I showed in my reply ("-"), since that is what their image looks like.
 
Upvote 0
Yes of course you right, neglected to add ANY “If False” condition.
 
Upvote 0

Forum statistics

Threads
1,214,945
Messages
6,122,393
Members
449,081
Latest member
JAMES KECULAH

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