View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Sum data range containing NA()

try
Sum(if(isna(G106:g117),0,g106:G117)
entered as an array
control-shift-enter

"Andy" wrote:

I have a table of data which I am plotting on a chart. To ignore blank data I
have set some cells to NA() by using:

=IF(G$160,G93+F93+E93,NA())

All is well, and the chart is as required. However on the table of data I
also want to sum the columns, but if one or more cells is #N/A the result is
#N/A. I am using:

=SUM(G106:G117)

How can I get the sum command to ignore the cells with no data, but still
have a chart which does not show the blank data?

Thanks,

Andy.