Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Senior Member
 
Posts: 118
Default countif on multiple criteria

i have a worksheet of students. they belong to(Names in A2:A30,sex=C column= boys/girls,(Area=D column=rural/urban,Catagory=E column=general/obc/sc/st) catagories. i want to get the number of students belongs to boy-rural-general(multiple criteria) how can i frame a countif formula to get the numbers?

it should be something like--=countif(A2:A30,G1=boys & Rural & General)

Last edited by sumesh56 : March 21st 13 at 12:30 AM
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default countif on multiple criteria

Hi,

Am Thu, 21 Mar 2013 00:27:44 +0000 schrieb sumesh56:

i have a worksheet of students. they belong to(Names in A2:A30,sex=C
column= boys/girls,(Area=D column=rural/urban,Catagory=E
column=general/obc/sc/st) catagories. i want to get the number of
students belongs to boy-rural-general(multiple criteria) how can i frame
a countif formula to get the numbers?


for excel version xl2007 or later:
=COUNTIFS(C2:C20,"boys",D2:D20,"rural",E2:E20,"gen eral")
for all versions:
=SUMPRODUCT(--(C2:C20="boys"),--(D2:D20="rural"),--(E2:E20="general"))


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Senior Member
 
Posts: 118
Default

Quote:
Originally Posted by Claus Busch View Post
Hi,

Am Thu, 21 Mar 2013 00:27:44 +0000 schrieb sumesh56:

i have a worksheet of students. they belong to(Names in A2:A30,sex=C
column= boys/girls,(Area=D column=rural/urban,Catagory=E
column=general/obc/sc/st) catagories. i want to get the number of
students belongs to boy-rural-general(multiple criteria) how can i frame
a countif formula to get the numbers?


for excel version xl2007 or later:
=COUNTIFS(C2:C20,"boys",D2:D20,"rural",E2:E20,"gen eral")
for all versions:
=SUMPRODUCT(--(C2:C20="boys"),--(D2:D20="rural"),--(E2:E20="general"))


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
thanks a lot for the suggestion. it works nicely in 2007 version which i am using at resent.(btw how can i show that this thread has been solved? in your reply the colon is hided by an icon and it is not visible.)thanks once again and have a nice day.
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
IF COUNTIF - Need Help with multiple criteria Hmmmmm? Excel Programming 4 February 10th 10 10:44 PM
COUNTIF with multiple criteria WLMPilot Excel Worksheet Functions 5 February 5th 09 11:48 PM
Nesting COUNTIF for multiple criteria in multiple columns NeedExcelHelp07 Excel Worksheet Functions 1 December 12th 07 05:47 PM
Countif w/ Multiple Criteria Patrick_KC Excel Worksheet Functions 2 August 9th 05 09:25 PM
multiple criteria in a countif Jeff Excel Programming 1 June 29th 04 02:51 PM


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