summing a row with text in some cells

J

Jared

I am trying to sum a row, but some cells have text that explain why the data
is missing. I would like any text to be summed as zeros, but I can't seem to
figure out how to make excel do that. Any information you could give me
would be appreciated.
 
T

T. Valko

If you're using the SUM function it ignores text and this is essentially the
same as evaluating it as 0.

A1 = 10
A2 = XX
A3 = 10
A4 = NA
A5 = 10

=SUM(A1:A5) returns 30
 
J

John C

That is assuming the na is actually just na, and not an actual error such as
#N/A.
 
T

T. Valko

That's true but you'll notice I typed it in as NA not as #N/A.

To exclude errors as well as text:

=SUMIF(A1:A5,"<1E100")
 

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

Top