View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
Jim Thomlinson Jim Thomlinson is offline
external usenet poster
 
Posts: 5,939
Default how do I sum a column that has #NA as an answer to a lookup?

You want to avoid the NA's in the first place. Change your vlookups to
something like this...

if(countif(range, item) = 0, 0, vlookup(item, range, column, false))
or
if(isna(vlookup), 0, vlookup)

The first option is a bit more efficient but it is a bit more work to write...
--
HTH...

Jim Thomlinson


"sherman" wrote:

I am trying to add a column that has #NA as a result of using the Vlookup
function. I would like to add up the column that does not have #NA as an
answer.