ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   countif on multiple criteria (https://www.excelbanter.com/excel-discussion-misc-queries/448444-countif-multiple-criteria.html)

sumesh56

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)

Claus Busch

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

sumesh56

Quote:

Originally Posted by Claus Busch (Post 1610504)
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.


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com