View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
AAA1986 AAA1986 is offline
external usenet poster
 
Posts: 16
Default SUMIF/COUNTIF with missing data

Right now, I'm using the following function to get the average of column B,
given that column A has a certain criteria:


=SUMIF($A$1:$A$10,"=Blue",$B$1:$B$10)/COUNTIF($A$1:$A$10,"=Blue")

Which works fine, except that for some of the entries whose A column says
"blue" there is no data in the B column, so the denominator is off. How can I
account for missing data in this function?

Thanks in advance.