Compare dates in two columns across several rows and count based on criteria.

ccalkins

New Member
Joined
Jul 13, 2016
Messages
13
Office Version
  1. 365
Platform
  1. MacOS
Good Evening,
I have a list of tasks that need to be done either semi-annually or annually and need to calculate the percentage of tasks completed (71 total) in compliance (Cell C3). Currently I have conditional formatting in column C to turn the cells Green (more than 60 days remaining), amber (60 days until due), and red (past due) and this all works. I am using the following formula (COUNTIF(C4,"<="&$B4)+COUNTIF(C5,"<="&$B5)+.../total tasks. This seems to work fine up until the 33rd line item and then it stops counting. Is this a mechanical limitation of the number of operations in my formula? Should I be going about this in a different way? Given restrictions on our work computers, I would need to try and accomplish this using a formula instead of VBA.
Thank you,
Craig
 

Attachments

  • Screenshot 2023-10-17 at 7.42.57 PM.png
    Screenshot 2023-10-17 at 7.42.57 PM.png
    240.8 KB · Views: 7

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
what are your formula(s) that are in C3, and the rest of column C?
Are you using TODAY() as your comparison date?
 
Upvote 0
Hello,
In Column B the formulas are TODAY()+365 and TODAY()+(365/2). The dates in Column C are just static dates (no formulas). The formula in C3 is =(COUNTIF(C4,"<="&$B4)+COUNTIF(C5,"<="&$B5)+...+COUNTIF(C55,"<="&$B56)/53
Thanks,
Craig
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,953
Members
449,095
Latest member
nmaske

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