View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student Gary''s Student is offline
external usenet poster
 
Posts: 11,058
Default SUM if the conditions are met

=SUMPRODUCT(--(A2:A7=DATE(2007,10,23)),--(C2:C7="X"),(B2:B7))

--
Gary''s Student - gsnu2007a


"Mortir" wrote:

I have the following case

A B C
1 Date Value Mark
2 23.10.2007 100 X
3 23.10.2007 150
4 23.10.2007 200
5 23.10.2007 300 X
6 24.10.2007 123
7 24.10.2007 344
etc...

Now I would like to have a formula which would sum the values on a
certain date, that are marked with an X. For example, the result on
23.10.2007 would sum only 100+300=400