Using Countifs

TMac52

New Member
Joined
Jan 30, 2012
Messages
17
I'm trying to use Countifs to count the number of FCOs assigned to a unit (F6, G1, G5) which are in "APPROVED" state & fall between certain dates. I have tried ). Any suggestions?
Countifs Function.PNG
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Replace the two = signs with commas.
 
Upvote 0
Try this:

=COUNTIFS($B$4:$B$7,">8/30/2020",B4:B7,"<10/1/2020",$C$4:$C$7,"F6",$D$4:$D$7,"approved")
 
Upvote 0
Thanks to Fluff & aghaffar82, but I'm still not getting the result I had hoped to get. If I'm reading the formula right, I should be getting a result of 2 since the Unit F6 has been picked twice, the Status has two Approved selections and the dates for both are between 8/30/2020 & 10/1/2020. What am I missing?
 
Upvote 0
This is what I got when replicating the data you shared.
 

Attachments

  • Screenshot_1.jpg
    Screenshot_1.jpg
    88.7 KB · Views: 3
Upvote 0
You may check your criteria columns, whether they contain any spaces or invisible characters, there is nothing wrong with the formula, perhaps, one or both of the criteria have some issue. Double check them and it would work.
 
Upvote 0
Are you dates real dates, or text?
Select col B & change the format to general, do you see dates or 5 figure numbers?
 
Upvote 0
Retype the date where you don't see the 5 digit number and then try again.
 
Upvote 0

Forum statistics

Threads
1,214,912
Messages
6,122,204
Members
449,072
Latest member
DW Draft

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