Count-if + rolling weeks

dmxcasper2

Board Regular
Joined
Mar 21, 2012
Messages
63
Problem Statement:

Column B through D track a rolling count of items that are open and closed for a duration of the last 30 days based on today's date. (Blue table)

I'm trying to accomplish the same function by using rolling weeks instead. (Yellow Table)

This is simple, but I've been at this for an hour and can't seem to integrate the weekday formula properly. Any help is appreciated.

File download:
https://drive.google.com/file/d/1Rh7rT8dZj5kzRMQATccHXFIxZOe1XSSO/view?usp=sharing


 

Some videos you may like

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

James006

Well-known Member
Joined
Apr 4, 2009
Messages
3,680
Hello,

Could you give an indication of your expected results in cells G5 and H5 ...?

Are you expecting 38 and 34 ...?
 

dmxcasper2

Board Regular
Joined
Mar 21, 2012
Messages
63
11/05/2018 - 11/11/2018 - G5 = 28, H5 = 19
11/12/2018 - 11/18/2018 - G5 = 145, H5 = 126

This would be the logic. The week would start on every Monday. I only need last (4) weeks.
 

Dobo_Bobo

New Member
Joined
Jan 24, 2018
Messages
31
Please can you show your working out? I've looked at your workbook and on the Data sheet I filtered the date to the ranges in your last post and I only find as an example 22 actions opened.
 

James006

Well-known Member
Joined
Apr 4, 2009
Messages
3,680
11/05/2018 - 11/11/2018 - G5 = 28, H5 = 19
11/12/2018 - 11/18/2018 - G5 = 145, H5 = 126

This would be the logic. The week would start on every Monday. I only need last (4) weeks.

With your first Date in cell F5 and the second one in cell F6 ... you could test in cell G6 :

Code:
=COUNTIFS(issueOpenDates,">="&$F5,issueOpenDates,"<"&$F6)

Hope this will help
 

Watch MrExcel Video

Forum statistics

Threads
1,122,891
Messages
5,598,680
Members
414,254
Latest member
MarieCo

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
Top