Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DJ_Swammi
 
Posts: n/a
Default How do I COUNTIF in excel using multiple criteria?

I am trying to set up a function which looks to see if multiple criteria,
across different columns are met.

Idealy I should think the following function should work, but alas, it does
not:

=COUNTIF(AND(A1:A5=1, B1:B5=2))

Any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Wright
 
Posts: n/a
Default How do I COUNTIF in excel using multiple criteria?

=SUMPRODUCT((A1:A5=1)*(B1:B5=2)*(C1:C5=3)) etc

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------*------------------------------*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------*------------------------------*----------------


"DJ_Swammi" wrote in message
...
I am trying to set up a function which looks to see if multiple criteria,
across different columns are met.

Idealy I should think the following function should work, but alas, it
does
not:

=COUNTIF(AND(A1:A5=1, B1:B5=2))

Any suggestions?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bpeltzer
 
Posts: n/a
Default How do I COUNTIF in excel using multiple criteria?

Check this site for using SUMPRODUCT for calculations involving multiple
criteria:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
Another means is using the DCOUNT function.


"DJ_Swammi" wrote:

I am trying to set up a function which looks to see if multiple criteria,
across different columns are met.

Idealy I should think the following function should work, but alas, it does
not:

=COUNTIF(AND(A1:A5=1, B1:B5=2))

Any suggestions?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DJ_Swammi
 
Posts: n/a
Default How do I COUNTIF in excel using multiple criteria?

Thank you, this has been very helpful!


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
Multiple Criteria for COUNTIF and SUMIF nils_odendaal Excel Worksheet Functions 1 November 16th 05 08:38 AM
How do I enable the criteria pane in MSQuery (Excel 2003)? TO Excel Discussion (Misc queries) 1 June 15th 05 08:19 PM
Excel Range Value issue (Excel 97 Vs Excel 2003) Keeno Excel Discussion (Misc queries) 2 June 13th 05 02:01 PM
Countif using format criteria....not number criteria? Troy Excel Worksheet Functions 1 April 20th 05 04:50 AM
Countif with multiple criteria and multiple worksheets JJ Excel Worksheet Functions 1 December 28th 04 06:37 PM


All times are GMT +1. The time now is 12:39 PM.

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

About Us

"It's about Microsoft Excel"