# Excel formula IFERROR

Excel IFERROR formula,

I want to add the sum of cells A1:G1 with iferror formula. Some of my current values are #N/A. How do I write the formula?

Conernesto
###### Who is Participating?

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Author Commented:
To clarify, I need a formula that will add the values in cells A1:G1. Some of the values in the range are #N/A.
0
Author Commented:
Sorry, the actual cells to add are in a column. The cells are A1+A3+A6+A9+A12.

Cells A1, A3, A6, and A12 have amounts. Cell A9 has #N/A
0
Commented:
Try this:

=SUMIF(A1:G1,"<>#N/A")

»bp
0
Commented:
WHoops, change of requirements, okay, try this...

``````=IF(ISNUMBER(A1),A1,0)+IF(ISNUMBER(A3),A3,0)+IF(ISNUMBER(A6),A6,0)+IF(ISNUMBER(A9),A9,0)+IF(ISNUMBER(A12),A12,0)
``````

»bp
0

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Author Commented:
Your formula works with the range.  My values are in a column in different cells within the column.
0
Commented:
See my update...
0
Excel & VBA ExpertCommented:
Why some cells have #N/A?
Remove them by tweaking the formulas at the first place to return a null string or a text string like "Not Found" and then the simple SUM formula will work as SUM will ignore the Text values and only sum the numeric values in the range.
0
Author Commented:
I already added a lot of formulas and I did not use the iferror formula to avoid the #N/A. So I am trying to work around this.
0
Excel & VBA ExpertCommented:
Just wrap the formula which is returning #N/A with IFERROR like below...
``````=IFERROR(<Your Formula Here>,"")
``````
0
Author Commented:
Thank you very much.

Conernesto.
0
###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.