Countifs - date range and text conditions

lbarraclough

New Member
Joined
Sep 29, 2020
Messages
4
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi

I’m trying to use a countifs statement and I can’t get it to work.

I have a column of teaching subject names and then a column of data showing the date an assignment was issued.

Is there a way that a countifs statement could count the number of occurances of a date but only if the subject is business studies for example?

I can get the countifs to count the date range in the column I just can’t get it to accept it with adding in the condition of the subject range.

Any ideas?
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Hi & welcome to MrExcel.
What is your formula?
 
Upvote 0
Hi

I tried using this but it comes up with a VALUE error.
I can get it to work for counting the number of courses but i desperately need to find a way to only pick out a certain subject using formula.

=COUNTIFS('COURSES OVERVIEW'!E2:E25,"Business",'COURSES OVERVIEW'!K2:K25,">=1/10/2020",'COURSES OVERVIEW'!K2:K25,"<=31/10/2020")
 
Upvote 0
That formula looks fine.
The only times (I can think of) when you would get a #VALUE! error is if the ranges are not the same size, or the sheet name has been miss-spelt.
 
Upvote 0

Forum statistics

Threads
1,215,133
Messages
6,123,232
Members
449,092
Latest member
SCleaveland

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