# Count how many cells < > value X provided they match other criteria first - ( How many "OPEN" "IT" "RISKS" are due for action with "X" days of today

##### New Member
Scenario
1: I need to count the number of Items (Risks) in Total
2: I need to count the number of Items (Risks) Open or Closed
3: I need to count the number of Items (Risks) Open and due for Action within X days of today

Problem
I am stuck at requirement 3 - effectively "how many open IT risks are due for action with x days of today"

Current Setup
I have an XL Sheet "Data" which holds a register of risks and issues
All calcs and todays date are captured on a sheet called "Status"

Here is how I calculate the elements of the Status Sheet

Number of IT RISKs is calculated by: =COUNTIFS(Data!D:D,B7,Data!\$E:\$E,\$C\$6)

Where:
Data!D:D is a Column of "Prog Stream" names
B7 = Stream name to match (IT)

Data!E:E is Column of "Risk" or "Issue"
\$C\$6 = RISK

Number of OPEN IT Risks is calculated by: =COUNTIFS(Data!\$D:\$D,\$B7,Data!\$E:\$E,\$C\$6,Data!\$T:\$T,\$E\$6)
Where:
Data!D:D is a Column of Stream names
B7 = Stream name to match

Data!E:E is Column of "Risk" or "Issue"
\$C\$6 = RISK

Data!T:T is column of "OPEN" or "CLOSED"
\$E\$6 = OPEN

Request for assistance
How can I calc: The number of the Open risks which are due within 7, 14, 30 or greater than 30 days

I tried :=COUNTIFS(Data!\$D:\$D,\$B7,Data!\$Q:\$Q,((\$B\$3-Data!\$Q:\$Q)<M\$14))
Where

Data!D:D is a Column of Stream names
\$B7 = Stream name to match
\$B\$ = today()

Data!\$Q\$Q = Column of "Action by Dates" on "Data! sheet"

<M\$14 7)
Thanks for help
Obviously I am doing something wrong but can not see the wood for the trees

Kind regards
Nom

### Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Replies
9
Views
229
Replies
9
Views
508
Replies
9
Views
245
Replies
3
Views
158
Replies
0
Views
383

1,196,409
Messages
6,015,105
Members
441,870
Latest member
kojack

### 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.

### Which adblocker are you using?

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

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