countifs for numbers including and between based on multiple criteria

Rameses

Board Regular
Joined
Mar 3, 2010
Messages
137
Hi all
Its been a long time since I was last here.

I have a school governors meeting tomorrow and need to crunch some data urgently

Column B = Gender ie. B or G
Column AX = Reading Points (recorded as numbers up to 1 decimal place)

Data goes from Row 4 to Row 58


I wish to count 2 things separately

a) To be recorded in B74 > The number of boys "B" who have scored between and including 4 and 5 Reading points
b) To be recorded in B75 > The number of Boys "B" who have scored between 4 and 9 Reading points

for a) I have used the formula
=SUM((G4:G58,"B")*(AX4:AX58,>=4)*(AX4:AX58,<=5)) followed by Ctl+Shift+Enter

The above doesnt work

Any suggestions gratefully accepted as this is for 14 hours! (I should have done it earlier > kicking myself!!)

Rameses
 
Cheers Biff

I also want to count BAFR and BLCA and Refused and Unknown how would I extend that bit of forumla as B* only relates to those beginning with a B?

The rest of formula remaining the same ie.

Count of Boys with BAFR and BLCA and Refused and Unknown who got between a 4 and a 5

many thanks

Rameses
 
Upvote 0
Cheers Biff

I also want to count BAFR and BLCA and Refused and Unknown how would I extend that bit of forumla as B* only relates to those beginning with a B?

The rest of formula remaining the same ie.

Count of Boys with BAFR and BLCA and Refused and Unknown who got between a 4 and a 5

many thanks

Rameses
Using cells to hold the criteria:

A1 = B
A3:A6 = BAFR, BLCA, Refused, Unknown
A8 = 4
A9 = 5

Then:

=SUMPRODUCT(--(B4:B65=A1),--ISNUMBER(MATCH(C4:C65,A3:A6,0)),--(AX4:AX65>=A8),--(AX4:AX65<=A9))
 
Upvote 0
Using cells to hold the criteria:

A1 = B
A3:A6 = BAFR, BLCA, Refused, Unknown
A8 = 4
A9 = 5

Then:

=SUMPRODUCT(--(B4:B65=A1),--ISNUMBER(MATCH(C4:C65,A3:A6,0)),--(AX4:AX65>=A8),--(AX4:AX65<=A9))

Hi is there a method to do his without using cells to carry the criteria? ie. Ethnicity codes will all be in the same column and reading points all be in the same column

I Want to count the number of boys who have a ethnicity code of BCMB or BLCB or Unknown who have scored between and including 4-5

A B C D E F G H AX
[TABLE="width: 530"]
<tbody>[TR]
[TD="class: xl24, width: 53"]Class[/TD]
[TD="class: xl24, width: 53"]Name[/TD]
[TD="class: xl24, width: 53"]Surname[/TD]
[TD="class: xl24, width: 53"]SEN[/TD]
[TD="class: xl24, width: 53"]Personal data[/TD]
[TD="class: xl24, width: 53"]Ethnicity[/TD]
[TD="class: xl24, width: 53"]Gender[/TD]
[TD="class: xl24, width: 53"]FSM[/TD]
[TD="class: xl24, width: 106, colspan: 2"]Reading Points[/TD]
[/TR]
[TR]
[TD]Puma[/TD]
[TD]x[/TD]
[TD]t[/TD]
[TD]SP[/TD]
[TD][/TD]
[TD]WBRI[/TD]
[TD]b[/TD]
[TD]y[/TD]
[TD="align: right"]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Panther[/TD]
[TD]s[/TD]
[TD]g[/TD]
[TD]St[/TD]
[TD]summ born[/TD]
[TD]BLCA[/TD]
[TD]g[/TD]
[TD]n[/TD]
[TD="align: right"]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Puma[/TD]
[TD]r[/TD]
[TD]h[/TD]
[TD]S[/TD]
[TD][/TD]
[TD]Unknown[/TD]
[TD]b[/TD]
[TD]y[/TD]
[TD="align: right"]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Pumas[/TD]
[TD]t[/TD]
[TD]y[/TD]
[TD][/TD]
[TD][/TD]
[TD]Refu[/TD]
[TD]b[/TD]
[TD]n[/TD]
[TD="align: right"]7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Panthers[/TD]
[TD]h[/TD]
[TD]r[/TD]
[TD][/TD]
[TD][/TD]
[TD]WBRI[/TD]
[TD]b[/TD]
[TD]n[/TD]
[TD="align: right"]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Panthers[/TD]
[TD]jh[/TD]
[TD]f[/TD]
[TD][/TD]
[TD][/TD]
[TD]WBRI[/TD]
[TD]g[/TD]
[TD]y[/TD]
[TD="align: right"]5[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Pumas[/TD]
[TD]g[/TD]
[TD]h[/TD]
[TD]AP[/TD]
[TD][/TD]
[TD]BCMB[/TD]
[TD]b[/TD]
[TD]n[/TD]
[TD="align: right"]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Panthers[/TD]
[TD]v[/TD]
[TD]f[/TD]
[TD]AP[/TD]
[TD][/TD]
[TD]BRI[/TD]
[TD]g[/TD]
[TD]y[/TD]
[TD="align: right"]4[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Also no use of wildcards and preferably using countifs?
 
Upvote 0
Hi is there a method to do his without using cells to carry the criteria? ie. Ethnicity codes will all be in the same column and reading points all be in the same column

I Want to count the number of boys who have a ethnicity code of BCMB or BLCB or Unknown who have scored between and including 4-5

A B C D E F G H AX
[TABLE="width: 530"]
<TBODY>[TR]
[TD="class: xl24, width: 53"]Class
[/TD]
[TD="class: xl24, width: 53"]Name
[/TD]
[TD="class: xl24, width: 53"]Surname
[/TD]
[TD="class: xl24, width: 53"]SEN
[/TD]
[TD="class: xl24, width: 53"]Personal data
[/TD]
[TD="class: xl24, width: 53"]Ethnicity
[/TD]
[TD="class: xl24, width: 53"]Gender
[/TD]
[TD="class: xl24, width: 53"]FSM
[/TD]
[TD="class: xl24, width: 106, colspan: 2"]Reading Points
[/TD]
[/TR]
[TR]
[TD]Puma
[/TD]
[TD]x
[/TD]
[TD]t
[/TD]
[TD]SP
[/TD]
[TD][/TD]
[TD]WBRI
[/TD]
[TD]b
[/TD]
[TD]y
[/TD]
[TD="align: right"]4
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Panther
[/TD]
[TD]s
[/TD]
[TD]g
[/TD]
[TD]St
[/TD]
[TD]summ born
[/TD]
[TD]BLCA
[/TD]
[TD]g
[/TD]
[TD]n
[/TD]
[TD="align: right"]4
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Puma
[/TD]
[TD]r
[/TD]
[TD]h
[/TD]
[TD]S
[/TD]
[TD][/TD]
[TD]Unknown
[/TD]
[TD]b
[/TD]
[TD]y
[/TD]
[TD="align: right"]5
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Pumas
[/TD]
[TD]t
[/TD]
[TD]y
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Refu
[/TD]
[TD]b
[/TD]
[TD]n
[/TD]
[TD="align: right"]7
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Panthers
[/TD]
[TD]h
[/TD]
[TD]r
[/TD]
[TD][/TD]
[TD][/TD]
[TD]WBRI
[/TD]
[TD]b
[/TD]
[TD]n
[/TD]
[TD="align: right"]4
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Panthers
[/TD]
[TD]jh
[/TD]
[TD]f
[/TD]
[TD][/TD]
[TD][/TD]
[TD]WBRI
[/TD]
[TD]g
[/TD]
[TD]y
[/TD]
[TD="align: right"]5
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Pumas
[/TD]
[TD]g
[/TD]
[TD]h
[/TD]
[TD]AP
[/TD]
[TD][/TD]
[TD]BCMB
[/TD]
[TD]b
[/TD]
[TD]n
[/TD]
[TD="align: right"]3
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Panthers
[/TD]
[TD]v
[/TD]
[TD]f
[/TD]
[TD]AP
[/TD]
[TD][/TD]
[TD]BRI
[/TD]
[TD]g
[/TD]
[TD]y
[/TD]
[TD="align: right"]4
[/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]

Also no use of wildcards and preferably using countifs?
Like this...

=SUM(COUNTIFS(B4:B65,"B",C4:C65,{"BAFR","BLCA","Refused","Unknown"},AX4:AX65,">=4",AX4:AX65,"<=5"))
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top