Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to add up a column of number returned using vlookup. When I use Sum, it returns a blank if the vlookup returns #N/A, as the cell has no value. Can I then get this to show a zero instread of #N/A so the above sum works ?

share|improve this question

2 Answers 2

up vote 0 down vote accepted

You can use a conditional:

=IF(ISERROR(<cell>),0,SUM(<...>))
share|improve this answer

Try wrapping your VLOOKUP formula in IFERROR function, e.g.

=IFERROR(VLOOKUP(A1,B1:C10,2,FALSE),0)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.