Incorrect Argument Set Error - Intermitent Error
Hello Community,
I have a portfolio summary sheet with two columns, one configured as a date column, the other as a drop down. Date completed and Status respectively.
I want to count items from these columns that meet a specific date and status criteria and from a portfolio dashboard metrics sheet I have tried two formula combinations and they both work, then they stop working and throw an "incorrect argument error". They appear to work for awhile, then stop. If I open the dashboard metrics sheet the error may disappear and the correct calculations reappear. I read other threads that state the column type must be the same, which doesn't make much sense to me based on the formula definition. The ranges should be the same based on how I slected them via the interface.
I am a formula newbie and I assume there is a trick to solve this issue. Thanks in advance for your assitance.
Formulas I have tried:
=COUNTIFS({Portfolio Summary - Status}, "Complete", {Portfolio Summary Date Completed}, >DATE(2024, 9, 29))
=COUNTIFS({Portfolio Summary - Status}, "Canceled", {Portfolio Summary Date Completed}, >"9/30/24")
Regards,
Josh
Best Answer
-
Hi Christian,
After more testing and digging through old posts I found this solution. I will see if the intial error returns, but for now I think I'm set. Thanks for your responses.
=COUNTIFS({Portfolio Summary - Status}, "Complete", {Portfolio Summary Date Completed}, >(DATE(2024, 9, 30)))
Answers
-
@Josh Burack
Sometimes dates look right but aren’t recognized correctly. You could try using DATEVALUE to make sure Smartsheet reads it properly. Try the below.
=COUNTIFS({Portfolio Summary - Status}, "Complete", {Portfolio Summary Date Completed}, ">" & DATEVALUE("9/30/2024"))
Hope that helps! Let me know.
Best, -
@ChristianFinke Thank you for the response. I tried your suggestion and received an unparsable error. I also was unable to find DATAVALUE as a function listed in the functiosn list. Am I mising something?
-
Seems like the unparsable error could be due to how Smartsheet interprets date formats. Try this:
=COUNTIFS({Portfolio Summary - Status}, "Complete", {Portfolio Summary Date Completed}, ">" & DATE(2024, 9, 30))
Make sure both columns are consistently formatted as date and dropdown types to avoid parsing issues.
Let me know! -
Hi Christian,
After more testing and digging through old posts I found this solution. I will see if the intial error returns, but for now I think I'm set. Thanks for your responses.
=COUNTIFS({Portfolio Summary - Status}, "Complete", {Portfolio Summary Date Completed}, >(DATE(2024, 9, 30)))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!