Ignoring null cells.

K

Ken

We have a workbook with several hundred rows in four
columns. We imported data into the workbook. Some of the
cells have data, some have none. When we try to enter a
formula to sum columns B, C, and D, we get a "#VALUE!"
error in those rows where at least one of the cells is
blank. We assume that is because some kind of null value
is in the blank cell. If we Edit - Clear - All on the
blank cells, the formula works.

Is there a way to amend the Sum formula to ignore those
blank (null) cells?

=Sum(B1:D1)

TIA.
 
F

Frank Kabel

Hi
SUM(B1:D1)
should ignore blank cells and cells with text values. Is this the exact
formula you use?
 
D

Dave R.

=SUM(IF(ISNUMBER(B1:D1),B1:D1))

this will do the trick. must be entered with CTRL SHIFT ENTER, will appear
automatically as

{=SUM(IF(ISNUMBER(B1:D1),B1:D1))}

if entered properly.
 
K

Ken

Sorry, I mis-spoke (mis-wrote).
The formula actually looks at every other column.
=B1+D1+E1
 
K

Ken

Please my response to Frank's post.
-----Original Message-----
=SUM(IF(ISNUMBER(B1:D1),B1:D1))

this will do the trick. must be entered with CTRL SHIFT ENTER, will appear
automatically as

{=SUM(IF(ISNUMBER(B1:D1),B1:D1))}

if entered properly.





.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top