SUMIF(CONTAINS...

Marilu M
Marilu M ✭✭✭
edited 07/06/22 in Formulas and Functions

I'm trying to gather info from another sheet but keep getting the "Unparseable" error message. Basically, I want to add the total amounts of any rows that contain "1st" as the district. The column that has the district information is a multi-select value hence why the contains. The current formula is set as:

=SUMIF( CONTAINS("1st"{FY22 NAI Funding Application Range 2})), {FY22 NAI Funding Application Range 3}

Any assistance would be appreciated.

Best Answer

  • Genevieve P.
    Genevieve P. Employee
    edited 02/17/22 Answer ✓

    Hi @Marilu M

    If you're looking in a multi-select column for a specific value, I would actually use HAS Function instead. It looks for a direct match.

    You'll want to first list the column/range, then use @cell as the second range within your HAS function. This is so that it looks into each cell of that column to see if it has that value.

    Try this:

    =SUMIF({FY22 NAI Funding Application Range 1}, HAS(@cell, "1st"), {FY22 NAI Funding Application Range 2})

    Cheers!

    Genevieve

    Need more help? 👀 | Help and Learning Center

    こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!