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
ConernestoAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

ConernestoAuthor 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
ConernestoAuthor 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
Bill PrewCommented:
Try this:

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



»bp
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Bill PrewCommented:
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)

Open in new window


»bp
0

Experts Exchange Solution brought to you by

Your issues matter to us.

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

Start your 7-day free trial
ConernestoAuthor Commented:
Your formula works with the range.  My values are in a column in different cells within the column.
0
Bill PrewCommented:
See my update...
0
Subodh Tiwari (Neeraj)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
ConernestoAuthor 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
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Just wrap the formula which is returning #N/A with IFERROR like below...
=IFERROR(<Your Formula Here>,"")

Open in new window

0
ConernestoAuthor 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.