View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Domenic
 
Posts: n/a
Default Sumproduct to ignore text and ""

Try...

=SUMPRODUCT(--(A1:A8="a"),B1:B8)

Hope this helps!

In article ,
"Ricky Pang" wrote:

Hello Experts,
How would you modify this formula so that the text and ="" [blanks] in the
range of B1:B8 are ignored; thus, not producing a #Value! error?

=SUMPRODUCT((A1:A8="a")*(B1:B8))

Thanks in advance,
Ricky