Sum by Year(@cell)

Options
✭✭✭

Can anyone identify the issue with the formula below?

=SUMIF([ASA Exp Date]:[ASA Exp Date], YEAR(@cell), =2023, Qty:Qty))

Returns Unparseable error

• ✭✭✭✭✭✭
Options

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

• ✭✭✭
Options

@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?

• ✭✭✭✭✭✭
Options

Hey @Smarty

I gave you some suggestions in your other post. Common causes include non-numeric values occurring in the Sum field

=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

• ✭✭✭
Options

@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.

• ✭✭✭✭✭✭
Options

Hi @Smarty

I hope you're well and safe!

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.

• ✭✭✭✭✭✭
edited 02/14/23
Options

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

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!