Completed project in a month
Best Answer
-
@nroberson31 What kind of error are you getting? I'm guessing it's an #INVALID DATA TYPE? or maybe #UNPARSEABLE.
We want to have a formula where COUNTIFS is not trying to evaluate any blank date fields (which can cause that error.) COUNTIFS evaluates criteria from left to right, so we'll exclude any blank date rows first. The COUNTIFS syntax is COUNTIFS(range, criteria, range2, criteria 2...) so make sure your range and criteria are always separated by a comma. Also, AND is really not needed in a COUNTIFS since by its nature, COUNTIFS counts rows were all the conditions are true. Essentially, AND is built-in. Try this:
=COUNTIFS({Project Plan-700 Range 2}, "Complete", {3C-Database 700 Range 2}, ISDATE(@cell), {3C-Database 700 Range 2}, @cell >= DATE(2022, 4, 1), {3C-Database 700 Range 2}, @cell <= DATE(2022, 4, 30))
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Answers
-
@nroberson31 What kind of error are you getting? I'm guessing it's an #INVALID DATA TYPE? or maybe #UNPARSEABLE.
We want to have a formula where COUNTIFS is not trying to evaluate any blank date fields (which can cause that error.) COUNTIFS evaluates criteria from left to right, so we'll exclude any blank date rows first. The COUNTIFS syntax is COUNTIFS(range, criteria, range2, criteria 2...) so make sure your range and criteria are always separated by a comma. Also, AND is really not needed in a COUNTIFS since by its nature, COUNTIFS counts rows were all the conditions are true. Essentially, AND is built-in. Try this:
=COUNTIFS({Project Plan-700 Range 2}, "Complete", {3C-Database 700 Range 2}, ISDATE(@cell), {3C-Database 700 Range 2}, @cell >= DATE(2022, 4, 1), {3C-Database 700 Range 2}, @cell <= DATE(2022, 4, 30))
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
@Jeff Reisman I personally still use the AND function in COUNTIFS (and SUMIFS) to group my criteria together when I am referencing the same range multiple times. It makes it easier for me to read and make sure that I haven't forgotten anything in the super complex ones.
It also helps me find certain issues such as...
It looks like the above is referencing two separate sheets. Project Plan-700 and 3C-Database 700.
@nroberson31 Are you able to provide more details concerning your source data? Where is it coming from?
-
Thank you! it worked!!!!!
-
I totally get that. I do use AND in there sometimes, especially on very long and complex formulas, in order to consolidate criteria and keep things organized. For less experienced users, trying to use it on relatively simple formulas adds a layer of complexity (and more parentheses!) that can cause syntax errors, making other formula issues more difficult to resolve.
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
Happy to help!
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
@Jeff Reisman I agree. Those extra parenthesis can really throw some things off if you aren't careful. Haha. You definitely make a valid point.
I'm also still trying to figure out those ranges. I know I am making an assumption, but it is something I just can't help but notice. Having "Range #" on the end lends itself towards not renaming ranges. If that's the case then the first portion should be the sheet name. Two sheets referenced within the same function like that should be throwing some kind of error I would think.
-
I suspected that might be an issue too, but if the submitter says it works, I'm not going to argue it! 😀
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
@Jeff Reisman I won't argue it either. I'm more curious if I may have missed some kind of update. Hahaha
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!