excelhelppleas
New Member
- Joined
- Apr 19, 2023
- Messages
- 6
- Office Version
- 365
- Platform
- Windows
Hello, hope you can help. I would like to use a formula to give the count of complete projects in [time range] where there is a total of <=1 hour spent on 'review' over the whole project - example sheet below. In this sample the desired answer is 2 as only project A and B meet the criteria.
I can count the number of projects which are complete, where time was spent on 'review' and which were undertaken between two dates using this formula but don't know how to integrate the filter / sumif for the time spent on review.
=SUM(--(LEN(UNIQUE(FILTER(B:B,(A:A>=DATE(2021,1,1))*(A:A<=DATE(2021,12,31))*(D:D="review")*(C:C="Complete"),"")))>0))
Any suggestions appreciated.
date | project | project status | task | time (hours) |
01/01/2021 | Project A | Complete | draft | 0.5 |
01/01/2021 | Project A | Complete | review | 0.5 |
02/01/2021 | Project A | Complete | report | 1 |
03/01/2021 | Project A | Complete | review | 0.5 |
04/01/2021 | Project A | Complete | publish | 0.5 |
05/01/2021 | Project B | Complete | draft | 1 |
05/01/2021 | Project B | Complete | review | 1 |
06/01/2021 | Project B | Complete | publish | 0.5 |
07/01/2021 | Project C | Complete | review | 1.5 |
08/01/2021 | Project D | Dropped | draft | 2 |
09/01/2021 | Project D | Dropped | report | 0.5 |
10/01/2021 | Project D | Dropped | review | 0.5 |
11/01/2021 | Project D | Dropped | review | 1 |
12/01/2021 | Project E | In Progress | draft | 1 |
13/01/2021 | Project E | In Progress | review | 0.5 |
I can count the number of projects which are complete, where time was spent on 'review' and which were undertaken between two dates using this formula but don't know how to integrate the filter / sumif for the time spent on review.
=SUM(--(LEN(UNIQUE(FILTER(B:B,(A:A>=DATE(2021,1,1))*(A:A<=DATE(2021,12,31))*(D:D="review")*(C:C="Complete"),"")))>0))
Any suggestions appreciated.