Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

SUMIF stopped working

This formula was working in my sheet (summary field) and it just stopped. I don't know what I could have changed to make this stop working. I am now getting an invalid data type error.

It's a simple formula! If the year is 2022, sum up the charges column.

image.png

My Year column is calculated, YEAR([Date Signed]), is that why?

image.png


I tried adding the YEAR([Date Signed]) to the SUMIF formula and I get an unparsable error.

I know I'm missing something simple!

Thanks!

Andrea Zenner

Program Manager | Infrastructure & Operations

Apogee Enterprises

EAP | Mobilizer | Core Product Certified | Superstar

azenner@apog.com

Tags:

Best Answer

  • Community Champion
    Answer ✓

    Hi @Andrea Zenner

    Thanks for sharing the results!

    I testes this formula and it works:

    SUMIF stopped working.png SUMIF stopped working 2.PNG









    So let me explain the logic here:

    =Year() formula converts date to the Number data type

    When you enter in your SUMIF formula "2022" (with quotation marks) it means for Smartsheet that this is a text

    so "2022" is not equals 2022.

    Check the data type of your Year and Charge columns - it should be Text/Number.


    If you can't figure this out you can do this so I can inspect your sheet and logic:

    1. Save your sheet as a new sheet
    2. Remove (delete rows) most of the data form this new copied sheet, just leave 5 entries and change their info to generic.
    3. Share this sheet to my email: smartsheetpolska@gmail.com
    4. I will check it out and let you know.

    Tomasz Giba

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions