# Countif based upon 'subject' appearing in a column on a different sheet.

#### mtaylor

##### Board Regular
Hi all,

I have a huge number of records downloaded for the last academic year's reports.

I am currently using this: =COUNTIF(Results!K7:K1462,">2.5")

To count the results across the entire cohort, however, what I'm after is for it to only select cells which match up to a particular subject - i.e. Maths

I've had half a play and have got no-where apart from some tasty errors.

Here's what I put so far: =COUNTIFS(Results!\$K\$2:\$K\$1462,Results!\$G\$2:\$G\$1462,\$E7)

Results is the name of the tab containing all the results.
E7 is the name of the subject I'd like to cross-reference with
Column G contains the different subjects we want to select from
Column K contains the grades achieved.

Many thanks in advance

Matt

### Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

#### Fluff

##### MrExcel MVP, Moderator
Excel Formula:
=COUNTIFS(Results!\$K\$2:\$K\$1462,">2.5",Results!\$G\$2:\$G\$1462,\$E7)

#### mtaylor

##### Board Regular
Excel Formula:
=COUNTIFS(Results!\$K\$2:\$K\$1462,">2.5",Results!\$G\$2:\$G\$1462,\$E7)

Love it - many thanks!

Looks like I was pretty close.

#### Fluff

##### MrExcel MVP, Moderator
You're welcome & thanks for the feedback.

Replies
1
Views
168
Replies
4
Views
106
Replies
0
Views
96
Replies
1
Views
647
Replies
3
Views
996

1,126,888
Messages
5,621,417
Members
415,839
Latest member
Pollydooner

### 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?

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