Multiple count if

O

OzzyJim

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
 
S

Shane Devenshire

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,"repair")

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"))
 
O

OzzyJim

Cheers Shane, appreciate your help.....03 version seemed to work for some
reason.

Countifs returned an name# error

Thanks again
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top