Sum Function

K

Kacy

I'm attempting to write a formuala that if a certain cell
is blank it puts a "N/A" into the formula cell. However I
reference the previous cell to do a sum and if that cell
contains a "N/A" it will not sum it correctly. Here is
the formula that I'm currently using.


This formula is in cell F11....

=IF(D11<>"",SUM(F10+D11-E11),"N/A")

So if F10 contains "N/A" I get a #VALUE! error. Anyway to
ignore the "N/A" and just add numeric values.

Thanks in advance,
Kacy
 
L

Leo Heuser

Kacy

One way:

=IF(D11<>"",D11-E11+IF(ISNA(F10),0,F10),NA())


--
Best Regards
Leo Heuser
MVP Excel

Followup to newsgroup only please.
 
K

Kacy

-----Original Message-----
Kacy

One way:

=IF(D11<>"",D11-E11+IF(ISNA(F10),0,F10),NA())


--
Best Regards
Leo Heuser
MVP Excel

Followup to newsgroup only please.




.
I'm still getting a #Value error....Not for sure what I'm
still doing wrong.

Thanks,
Kacy
 

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