View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Shane Devenshire[_2_] Shane Devenshire[_2_] is offline
external usenet poster
 
Posts: 3,346
Default Multiple count if

Hi,

In 2007 you can use

=COUNTIFS($AF$17:$AF$2008,"="&DATE(2009,2,1),$AF$ 17:$AF$2008,"<="&DATE(2009,28,2),$B$17:$B$2008,"re pair")

but be careful you have two different length ranges in you example, one
running to row 2008 and one to 2200. That won't work.

In 2003:

=SUMPRODUCT(--($AF$17:$AF$2008=--"1/2/2009"),--($AF$17:$AF$2008<=--"28/2/2009"),--($B$17:$B$2008="repair"))

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"OzzyJim" wrote:

Hi All,

Using this to count number of occurrences between given dates

=COUNTIF($AF$17:$AF$2008,"="&"1/2/2009")-COUNTIF($AF$17:$AF$2008,""&"28/2/2009")

Now want to add an if function i.e if $B$17:$B$2200="repair" then count
using the above
Any ideas?
Cheers
Jim