Count the amount of tasks within the next 7 days and reduce completed tasks

Excelquestion35

Board Regular
Joined
Nov 29, 2021
Messages
53
Office Version
  1. 2016
Platform
  1. Windows
Hi all,

Got a quite simpple formula that needs some adjustment but can get it solved.
What I'm trying to do is keeping track of my tasks in Excel, for that I want to warn myself whether I will have some conflicts in my schedule.
For that reason I used below code which calculates if I have more than 3 tasks due in the next 7 days, it should say yes. However I won't delete the tasks in my list, so it should exclude the list of tasks that were already completed in this period. I tried something myself as shown below by referring to column H which contains the value 'DONE' when some task has been completed. However, it does not work as intended.

VBA Code:
IF(COUNTIFS($E$2:$E$60;">="&TODAY()+1;$E$2:$E$60;"<="&TODAY()+7)>3-COUNTIFS(H2:H60;"DONE");"YES";"NO")
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
How about
Excel Formula:
=IF(COUNTIFS($E$2:$E$60;">="&TODAY()+1;$E$2:$E$60;"<="&TODAY()+7;H2:H60;"<>DONE")>3;"YES";"NO")
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,269
Members
449,075
Latest member
staticfluids

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