Ignoring the #NA output

ckroon

Board Regular
Joined
Nov 9, 2005
Messages
60
Hey all, I searched but found no answer so I put it to you.
I need to sum up the results of formulas to do further calculations, but some cells have #NA in them if the data was not entered. I need the #NA to show up as zero, can I add this to the formula that is there already?

Thanks
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
You could use this array formula for your sum which would exclude the errors:

{=SUM(IF(ISERROR(Data),"",(Data)))}

You don't key the '{' you just type =SUM(IF(ISERROR(Data),"",(Data))) and use Ctrl+Shift+Enter to enter the formula.

Change 'Data' to reflect your range.

Or you can get rid of the N/A in the actual formula using if(iserror

EXAMPLE:

=(if(iserror(sum(A1:A22)),0,(sum(A1:A22)))
 
Upvote 0
Try something like
Code:
=IF(ISNA(OLD_FORMULA),0,OLD_FORMULA)

or, to sum a column with #N/A's, try
Code:
=SUMIF(A1:A100,"<>#N/A")
 
Upvote 0
THanks

Oaktree that worked great. Thanks!

=SUMIF(A1:A100,"<>#N/A")
Now I can sum the columns if there are #NA's in it.
 
Upvote 0

Forum statistics

Threads
1,213,497
Messages
6,113,999
Members
448,541
Latest member
iparraguirre89

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top