View Single Post
  #7   Report Post  
 
Posts: n/a
Default

Hi

Try something like this:
=SUMPRODUCT(--(A1:A5=DATE(2006,4,1))*(A1:A5<=DATE(2006,5,2)),--(B1:B5="green"))


--
Andy.


"mg" wrote in message
...
what if i need to use a range in the date f.e. from 1.4.2005 to 2.5.2005?

Bernard Liengme píse:

I will assume the first column are dates
With dates in column A and colours in B
=SUMPRODUCT(--(A1:A5DATE(2006,5,1)),--(B1:B5="green"))
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"mg" wrote in message
...
table:
1.5.2006 blue
2.5.2006 green
30.4.2005 green
21.5.2006 yellow
21.6.2006 blue

how can I count all the green guys with the datum after 1.5.2005?
countif will not probably work...