Need help with formula using COUNTIFS and Contains

Aneri ✭✭
edited 06/23/22 in Formulas and Functions

Hello, I am trying to use a formula that will count if a project type contains the word Planned and if the state (using symbols) is red. When I use the formula below, I get an "#INVALID DATA TYPE" error message.

=COUNTIFS(AND({Audit&Advisory Services -Portfolio Metadat Range 1}, CONTAINS("Planned", @cell)), {Audit&Advisory Services -Portfolio Metadat Range 2}, Symbol@row)

Any help would be much appreciated.




  • Dan W
    Dan W ✭✭✭✭✭
    edited 06/23/22

    Try this. Got it to work on my end with two columns.

    The AND in your formula is implied already by the IFS in COUNTIFS. COUNTIFS are multi-conditional.

    =COUNTIFS([plannedColumn]:PlannedColumn], (CONTAINS("Planned", @cell)), [SymbolColumn]:[SymbolColumn], [SymbolColumn]:[SymbolColumn] = "Red")

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!