View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student Gary''s Student is offline
external usenet poster
 
Posts: 11,058
Default SUMIF multiple criteria

Use a pair of SUMIF()s

=SUMIF(criteria1) + SUMIF(criteria2)
--
Gary''s Student - gsnu200747


"Sarah (OGI)" wrote:

I've written the formula below, but I'm getting a result of zero. I'm trying
to sum cells C5:C750 where cells D5:D750 are equal to either a zero or an
#N/A value.

By just specifying the zero or just specifying the #N/A, I get the correct
result, but I need to combine the two.

=SUMIF('Business Both Years'!D5:D750,"0"&"#N/A",'Business Both Years'!C5:C750)

Any ideas?