countifs function with date range

msvoboda27

New Member
Joined
Feb 9, 2018
Messages
30
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hello,

I have a large data table with "create date" and "status" fields. How can I count the number of statuses within a date range using cell references?
Specifically, I would like to count the number of "closed," "resolved," etc. statuses from the date range specified in cells D2 through E2. I will need to update the values in row 2 with the new date range next month.
Thank you!

Date Range Table.png
 
In that case use
Excel Formula:
=COUNTIFS($B$11:$B$100,D3,$C$11:$C$100,">="&$D$2,$C$11:$C$100,"<="&$E$2)
and drag it down.
 
Upvote 0

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
I removed the formula from the cells, can you please tell me what needs to happen to get this resolved.
Thank you,
Michael
 
Upvote 0
Did you try what I suggested in post#11?
 
Upvote 0
I removed the cells as suggested but it didn't change the excel error of spills. Help please
 
Upvote 0
That is not what I said in post#11.
 
Upvote 0
Hi! I apologize sincerely; I didn't realize there was a 2nd page until just now. Yes, I did what you said in post #11 and used the copy function. Here are the results. Once again, I'm so sorry for my mistake.
Excel Formula in Table 1 of 2.pngExcel Formula Reult 2 of 2.png
 
Upvote 0
In that case can you post a sample of your data.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
HI
I am not able to download at my work I will have to do it any home home pc.
Thanks
 
Upvote 0
Ok (y).
One thing I noticed is that col C has both date & time, so you will need a slight tweak to the formula
Excel Formula:
=COUNTIFS($B$11:$B$100,D3,$C$11:$C$100,">="&$D$2,$C$11:$C$100,"<"&$E$2+1)
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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