COUNTIFS formula with year
I'm trying to put together a COUNTIFS formula for my Sheet Summary that will count the number of items that are shown as Completed in the status column along with what year they were completed in. Looking at other discussions, I found this:
=COUNTIFS([NVAP Phase/Status]:[NVAP Phase/Status], "Completed", [NVAP Completed Date]:[NVAP Completed Date], YEAR(@cell) = 2019)
This formula produces an "#INVALID DATA TYPE" error message, which is at least a change from the dreaded "#UNPARSEABLE" that I've been getting so far.
Any help on how to put together a formula that might work here?
Comments
-
Hi Raquel,
The formula is correct but it seems like the column type isn't. Have you double-checked that the Date Column is a Date Column Type?
.
More info
#INVALID DATA TYPE
Cause
The formula contains or references an incompatible data type, such as =INT("Hello")
Resolution
Make sure the formula references the correct data type.
.
Can you describe your process in more detail and maybe share the sheet(s) or some screenshots? (Delete/replace any confidential/sensitive information before sharing) That would make it easier to help. (share too, andree@getdone.se)
Did that work?
Hope that helps!
Have a fantastic day!
Best,
Andrée Starå
Workflow Consultant / CEO @ WORK BOLD
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
If Andree's suggestion is not the issue, then you may also want to check both of your ranges. If that error is present in any cell for either of the ranges, it will be returned by the formula.
-
Thanks Andree and Paul! I double checked that the Date column was set to the right column type, and Paul's suggestion that one of the cells in the range needed to be checked was correct - there was one cell in the Date column that was blank, and as soon as I put a date in it the formula worked. Thanks again!
-
Excellent!
Happy to help!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!