June 21, 2020
Would appreciate some help on creating the correct formula as I keep getting this wrong somewhere.
I have three date columns as below but would like to count how many entries are either completed on the Date for Completion or sooner based upon dates in the "Due Completion" column and "Date Complete" entries with the total count being returned in F14 which is currently 4.
This is what I have as the formula that is returning the total 4 at the moment, but it doesn't seem to return the correct total of entries that is equal to or less than the due date for completion.
the correct total should be 5
=COUNTIFS($H21:$H31,"<="&$E21,$E21:$E31,"<="&$E21)
Any guidance on what is wrong with the formula or where I am going wrong would be appreciated.
D | E | F | G | H | |
Summary Status Performance | |||||
4 | Closed within scheduled due date | ||||
3 | Open | ||||
6 | Closed | ||||
Date Raised | Due Completion Date | Raised By | Pending Actions | Date Complete | |
21 | 24 Apr 2020 | 29-May-20 | 29 May 2020 | ||
22 | 24 Apr 2020 | 29-May-20 | 02 Jun 2020 | ||
23 | 29 Apr 2020 | 04-May-20 | 05 May 2020 | ||
24 | 15 May 2020 | 15-May-20 | 16 May 2020 | ||
25 | 15 May 2020 | 29-May-20 | 15 May 2020 | ||
26 | 08 Jul 2020 | 13-Jul-20 | 10 Jul 2020 | ||
27 | 30 Jun 2020 | 06-Jul-20 | 06 Jul 2020 | ||
28 | 30 Jun 2020 | 30-Jun-20 | 30 Jun 2020 | ||
29 | 30 Jun 2020 | 27-Nov-20 | |||
30 | |||||
Trusted Members
Moderators
November 1, 2018
VIP
Trusted Members
December 7, 2016
Hello,
Based on your formula, where you check if the dates in column H is less than or equal to the date in cell E21, the result of four is correct.
But in my view you should check the Date Complete against Due Completion Date for each row, so in cell I21 put in this formula: =IF(ISBLANK(H21),"",H21<=E21) and drag (copy) down.
It will result in a TRUE or FALSE if there is data in H21 (else empty) and then you just count the number of TRUE's.
=COUNTIF(I21:I31,TRUE)
Then you get five as a result.
Br,
Anders
June 21, 2020
Velouria said
Where do you get 5 from? Only the first 5 rows have a due date less than or equal to 29-May-20 and the actual completion date in row 22 is after 29-May-20 so it is excluded, leaving 4.
In the example above, Row 22 is not equal or less than : 2nd June is after the due completion date of 29 May
Attached the excel book to this post.
Using the attached file, Is there one formula that can be used to get the final count in one step within cell D14 or will it be necessary to follow Anders suggestion and count the true or false statements in a hidden column.
Is this formula now correct :
=COUNTIFS($F21:$F33,"<="&$C21,$C21:$C33,"<="&$C21)
Trusted Members
Moderators
November 1, 2018
1 Guest(s)