Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RJ RJ is offline
external usenet poster
 
Posts: 40
Default COUNTIF STATEMENTS

What function can I use to count the # of times something occurs using
multiple criteria? Where 'C1' would = the number of times A1:A5 = 1500 and
B1:B5 1/3/09. The answer should be 3, the # of times column A = 1500 and at
the same time column B 1/3/09.


A B C
1 1500 1/2/09
2 1000 1/3/09
3 1200 1/5/09
4 1500 1/5/09
5 1500 12/4/08
6 1000 1/5/09
7 1500 2/5/09
8 1500 3/5/09
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default COUNTIF STATEMENTS

Use SUMPRODUCT when you have multiple criteria:

=SUMPRODUCT(--(A1:A5=1500),--(B1:B5DATE(2009,1,3)))

HTH
Elkar


"Rj" wrote:

What function can I use to count the # of times something occurs using
multiple criteria? Where 'C1' would = the number of times A1:A5 = 1500 and
B1:B5 1/3/09. The answer should be 3, the # of times column A = 1500 and at
the same time column B 1/3/09.


A B C
1 1500 1/2/09
2 1000 1/3/09
3 1200 1/5/09
4 1500 1/5/09
5 1500 12/4/08
6 1000 1/5/09
7 1500 2/5/09
8 1500 3/5/09

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,104
Default COUNTIF STATEMENTS

Not COUNTIF but SUMPRODUCT
=SUMPRODUCT(--(A1:A20=1500),--(B1:B20DATE(2009,3,1))
I am assuming you use USA date format mm/dd/yyy; if not just reverse 1 and 3

For more details on SUMPRODUCT
Bob Phillips
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
J.E McGimpsey
http://mcgimpsey.com/excel/formulae/doubleneg.html

--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Rj" wrote in message
...
What function can I use to count the # of times something occurs using
multiple criteria? Where 'C1' would = the number of times A1:A5 = 1500 and
B1:B5 1/3/09. The answer should be 3, the # of times column A = 1500 and
at
the same time column B 1/3/09.


A B C
1 1500 1/2/09
2 1000 1/3/09
3 1200 1/5/09
4 1500 1/5/09
5 1500 12/4/08
6 1000 1/5/09
7 1500 2/5/09
8 1500 3/5/09



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
How do I use nested countif statements? Frank P Florida Excel Worksheet Functions 11 May 3rd 23 07:41 PM
INDEX / MATCH with SUMIF/COUNTIF/SUMPRODUCT Statements? Ronny Hamida Excel Worksheet Functions 10 July 29th 08 03:50 PM
IF, COUNTIF & AND STATEMENTS Mackem Excel Discussion (Misc queries) 3 November 28th 07 02:08 PM
IF Statements (Mutliple Statements) Deezel Excel Worksheet Functions 3 October 19th 06 06:13 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM


All times are GMT +1. The time now is 11:10 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"