SUMIF excluding #N/A

S

Scott A

I am trying to add different cells located in different worksheets (tabs)
within the same workbook. I know I can use =SUMIF(A1:A5,â€<>#N/Aâ€) without
error.

The problem I am having is trying to add different cells not grouped
together while using SUMIF. Example, =SUMIF(A1+A3+B5+C20, â€<>#N/Aâ€). If B5
=#N/A for instance, then my SUMIF will not work.

Any solutions?

Thank you in advance for help.
 
F

Fred Smith

My solution would be to get rid of the #N/As. For example, if they're a
result of a Vlookup, use If to check for it, as in:
=if(isna(vlookup(...)),0,vlookup(...))

Regards,
Fred.
 

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

Similar Threads


Top