Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Multiple count if

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Multiple count if

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

Countifs returned an name# error

Thanks again

"Shane Devenshire" wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Filter Multiple Columns on Multiple Criteria and count the last co LBitler Excel Worksheet Functions 2 February 12th 09 08:36 PM
count count multiple rows Lise Excel Discussion (Misc queries) 5 December 18th 08 04:41 AM
To count the data using multiple criteria in multiple columns Rajesh New Users to Excel 5 December 15th 08 04:07 PM
Count multiple cells against multiple criteria in an Excel spreads EricB Excel Worksheet Functions 7 June 3rd 08 09:09 PM
Multiple Criteria, Count If, Sum Product to get count across range Jonathan Excel Worksheet Functions 5 January 9th 08 11:32 PM


All times are GMT +1. The time now is 08:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"