COUNT BASED ON DATES WITH CRITERIA

Unlucky

Board Regular
Joined
Dec 3, 2014
Messages
58
Office Version
  1. 2016
Platform
  1. Windows
Before submitting this message I did review two similar message board entries, but I wasn't able to figure out how to make the formulas work for me. (I reviewed Count 30, 60 and over 90 days based on Name in Column "A" and Countifs or sumproduct - date range and multiple criteria )

Basically, I want to count the number of occurrences based on the past 1, 3, 6, 9, and 12 months. The criteria is variable, based on a drop down and the date, and then a total for the same time period without counting duplicates in the total. The two variables cells are B1 (Drop Down), and D7 and D15 (Today()). The drop down list is Column H.

The counts are based on the issue dates in Column M of the source table, based on the program in Column O of the source table.

Here is the report table:

TEST LOG FOR FORMULAS.xlsx
BCDEFGH
1ABCOPEN DOCUMENTS IN THE PAST:PROGRAM
21 MONTH3 MONTHS6 MONTHS9 MONTHS12 MONTHSABC
3CDR
4CRF
5ILF
6ABCTOTALTODAYILS
7PAST YEAR22-Dec-21PCF
8PRT
9ALLOPEN DOCUMENTS IN THE PAST:QMF
101 MONTH3 MONTHS6 MONTHS9 MONTHS12 MONTHSWTF
11WWW
12
13
14ALLTOTALTODAYDATES
15PAST YEAR22-Dec-211
163
176
189
1912
FORMULA TEST
Cell Formulas
RangeFormula
B6B6=B1
D7,D15D7=TODAY()
Cells with Data Validation
CellAllowCriteria
B1List=$H$2:$H$11
 
Last edited:

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Here is the source table, located on another worksheet:

TEST LOG FOR FORMULAS.xlsx
JKLMNOPQRSTUVWXY
24SOURCE DATA TABLE
25NUMBERLEVELISSUEDCAP DUEPROGRAMISSUED BYSTATUSCOMMENTS
262938120200005AI7-Jan-2117-Jan-21ABCTomCLOSEDLoose hardware
272938120200006AI12-Jan-2122-Jan-21ABCCharlieCLOSEDInstalled backwards
282938120200007AI13-Jan-2123-Jan-21CDRWilliamCLOSEDLoose hardware
292938120200008AI21-Jan-2131-Jan-21QMFWilliamCLOSEDMissing hardware
302938120200008BII3-Feb-2113-Feb-21ABCBobOPENInstalled upside down
312938120200008CIII4-Feb-2114-Feb-21CRFTomOPENMissing paint
322938120200009AI13-Feb-2123-Feb-21CDRGregOPENLoose hardware
332938120200010AI8-Mar-2118-Mar-21QMFTomCLOSEDLoose hardware
342938120200011AI9-Mar-2119-Mar-21WWWWilliamCLOSEDInstalled upside down
352938120200011BII12-May-2122-May-21WTFCharlieCLOSEDInstalled backwards
362938120200012AI14-Jun-2124-Jun-21CDRBobOPENMissing paint
372938120200013AI7-Jul-2117-Jul-21ABCBobOPENOperator error
382938120200014BII10-Jul-2120-Jul-21ABCBobOPENFailed test
392938120200015AI22-Sep-212-Oct-21WTFTomOPENLoose hardware
402938120200016AI22-Sep-212-Oct-21WWWWilliamCLOSEDMissing paint
412938120200016CIII23-Sep-213-Oct-21ILSCharlieOPENInstalled backwards
422938120200017AI4-Oct-2114-Oct-21PRTCharlieCLOSEDLoose hardware
432938120200018AI5-Oct-2115-Oct-21ABCBobOPENLoose hardware
442938120200019AI12-Oct-2122-Oct-21CDRGregCLOSEDInstalled backwards
452938120200020AI14-Oct-2124-Oct-21CRFTomCLOSEDLoose hardware
462938120200021AI3-Nov-2113-Nov-21CRFWilliamCLOSEDMissing hardware
472938120200022BII6-Nov-2116-Nov-21CRFBobCLOSEDInstalled upside down
482938120200023AI6-Nov-2116-Nov-21WWWBobCLOSEDMissing paint
492938120200023BII7-Nov-2117-Nov-21ABCWilliamOPENLoose hardware
502938120200024AI28-Nov-218-Dec-21ILFGregOPENLoose hardware
512938120200025AI29-Nov-219-Dec-21WTFTomOPENInstalled upside down
522938120200026AI8-Dec-2118-Dec-21ABCTomOPENInstalled backwards
532938120200027AI10-Dec-2120-Dec-21ABCTomOPENMissing paint
542938120200027CIII15-Dec-2125-Dec-21ABCTomOPENMissing hardware
552938120200028AI22-Dec-211-Jan-22WTFGregOPENInstalled upside down
562938120200029AI30-Dec-219-Jan-22WWWWilliamOPENMissing paint
572938120200030BII30-Dec-219-Jan-22ILSBobOPENLoose hardware
582938120200030CIII31-Dec-2110-Jan-22PCFTomOPENLoose hardware
FORMULA TEST
Cell Formulas
RangeFormula
N26:N58N26=M26+10
 
Upvote 0
I wanted to say thank you to al the experts for the previous assistance you provided this past year. You were a tremendous help with my work project.

That being said, I made a post December 22, 2021 that went unanswered. Based on the sheer volume and complexity of posts on the message board, that is not unreasonable. Also, I completely understand that I am not the only one that posts with their own set of unique problems, and I completely understand that the experts are all volunteers, assisting as they see fit. I have only the highest regard for those that take their own time to help those with less knowledgeable, like me. Fortunately, most of the time I can either figure it out on my own, or stumble onto a post where someone has / had a similar problem, either on Mr. Excel or another website. I did look over older posts on the subject prior to posting, but I couldn't figure out the correct formulas, either arrayed or non-arrayed.

Nevertheless, I am still in dire need of assistance, and for anyone that can help, I will be eternally grateful. This is the last piece of the puzzle I'm trying to put together.

So again, I am very thankful for all the assistance the excel experts provided since I joined in 2014.
 
Upvote 0

Forum statistics

Threads
1,223,948
Messages
6,175,571
Members
452,652
Latest member
eduedu

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