Task is open and overdue
I know that I'm super close on my formula but it's returning an Incorrect Argument. I have a list of contracts and when they are expiring. I want to know how many: are over due; coming due in 30 days; coming due in 60 days. I am having it look in the "Completed" column and if it is not checked to then go to the "Completion Date" column and let me know those that have a date equal or less than today's date. Starting on the overdue one, I have the following:
=COUNTIF((Completed1:Completed9), =0, AND([Completion Date]1:[Completion Date]9, <=TODAY()))
This is returning the Incorrect Argument so I think that it's just down to a bracket missing somewhere but I've tried all different combinations.
Best Answer
-
My apologies. I meant to change it to a COUNTIFS with the S on the end to allow for multiple sets.
=COUNTIFS(Completed1:Completed9, 0, [Completion Date]1:[Completion Date]9, <=TODAY())
When using the COUNTIFS function, you go range, criteria, range, criteria, etc......
It assumes an AND so that all conditions must be met before it will count.
The reason for the brackets is the column names themselves.
Column names that have a space, number, or special character in them require square brackets whereas column names that do not have any of those three things do not.
Answers
-
Try this...
=COUNTIF(Completed1:Completed9, 0, [Completion Date]1:[Completion Date]9, <=TODAY())
-
Unfortunately it's still saying Incorrect Argument. Why would you not have an AND in there? Shouldn't the argument be IF there is no flag in the Completed column AND the date is before today, count the number?
Also, I'm curious as to why there are no [ ] around Completed but it wants one for Completion Date. Is this due to one word vs a phrase? I know it works without the [ ] but I wonder why.
-
My apologies. I meant to change it to a COUNTIFS with the S on the end to allow for multiple sets.
=COUNTIFS(Completed1:Completed9, 0, [Completion Date]1:[Completion Date]9, <=TODAY())
When using the COUNTIFS function, you go range, criteria, range, criteria, etc......
It assumes an AND so that all conditions must be met before it will count.
The reason for the brackets is the column names themselves.
Column names that have a space, number, or special character in them require square brackets whereas column names that do not have any of those three things do not.
-
Yes, it works! When I first tried to do it the full string didn't work so I cut it into chucks to see if the individual logic worked and then forgot to change it back to IFS.
-
Happy to help! 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!