Count If using Year and Text

FrankF1970

New Member
Joined
Jan 19, 2018
Messages
3
Hello all, I’m having some issues with count if. I have a spread sheet that records exam results. I have a column (Column A)with dates and a column with results (Column C). Each Cell in column C has a drop down list. Pass, Fail, Waiting results. I want to check column C for how many exams are ‘Waiting Results’ depending on the year in column A My formula is this =COUNT(IF(YEAR($A$2:$A$50)=2017,$C$2:$C50,”Waiting Results*). This formula does not throw up any errors but the results it gives me is only a count of how many times 2017 appears in column A, but I want to know how many exams are waiting results for a specific year (in this case 2017). Any help would be greatly appriciated.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi, welcome to the forum!

You can try like this for 2017:

=COUNTIFS(A2:A50,">="&DATE(2017,1,1),A2:A50,"<="&DATE(2017,12,31),C2:C50,"Waiting Results*")
 
Upvote 0
Sorry I’ve just realised the formula i put in this post is wrong the actual formula i use is =COUNT(IF(YEAR($A$2:$A$50)=2016,$C$2:$C$50,”*Waiting results*”)), I have entered this using Ctrl+shift+enter as I believe it is an array formula
 
Upvote 0

Forum statistics

Threads
1,213,533
Messages
6,114,179
Members
448,554
Latest member
Gleisner2

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