Sum by Year(@cell)
Can anyone identify the issue with the formula below?
=SUMIF([ASA Exp Date]:[ASA Exp Date], YEAR(@cell), =2023, Qty:Qty))
Returns Unparseable error
Answers
-
I see the error. You have an extra comma
=SUMIF([ASA Exp Date]:[ASA Exp Date], YEAR(@cell)=2023, Qty:Qty))
Does this work for you?
Kelly
-
@Kelly Moore Hi there,
The formula below still results in the unparseable. However, when I remove the Qty:Qty reference, no error message displays occurs, but it returns a value of zero, which is not correct. Any thoughts?
-
Hey @Smarty
I gave you some suggestions in your other post. Common causes include non-numeric values occurring in the Sum field
https://community.smartsheet.com/discussion/comment/361865#Comment_361865
=SUMIFS(Qty:Qty, Qty:Qty, ISNUMBER(@cell), [ASA Exp Date]:[ASA Exp Date], AND(ISDATE(@cell), YEAR(@cell)=2023))
Does this work for you?
Kelly
-
@Kelly Moore The formula works, until it hits the first row where the "ASA Exp Date" is blank and the Invalid Data Type error displays
It only took me about two hours to figure this out! Besides for entering a bogus date, is there a revision to the formula which works even thought some cells are blank?
I was going to ask you and another fellow who has been helpful, if either of you do any consulting. This project am attempting to complete for one particular department is testing my limited skill set.
Thanks for all the help so far.
-
Hi @Smarty
I hope you're well and safe!
To add to Kelly's excellent advice/answer.
Try something like this.
=SUMIFS(Qty:Qty, Qty:Qty, ISNUMBER(@cell), [ASA Exp Date]:[ASA Exp Date], AND(ISDATE(@cell), IFERROR(YEAR(@cell), 0) = 2023))
Did that work/help?
I hope that helps!
Be safe, and have a fantastic week!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Please support the Community by marking the post(s) that helped or answered your question or solved your problem with the accepted answer/helpful, Insightful/Vote Up/Awesome. It will make it easier for others to find a solution or help to answer!
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.
-
Duplicate!
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
- Customer Resources
- 64.5K Get Help
- 424 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 145 Just for fun
- 63 Community Job Board
- 465 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!