How to create a formula to count # of values in a multi-value cell + other criteria using COUNTIFS?

Hello, I'm trying to count a value from a multi-value cell considering more than one criteria located in other columns.

I'm trying using this formula: =COUNTIFS([LSP Name]:[LSP Name], CONTAINS("CNWQ", @cell), Active:Active, CONTAINS("Active", @cell), Function:Function, CONTAINS("MULTIPLE", @cell)) but is not working. Is not returning an error, but is not counting.

Thanks

Best Answer

  • AravindGP
    AravindGP ✭✭✭✭✭✭
    Answer ✓

    Hi @PauSanHPE


    Count ifs will return a result only if all the criteria you've in the formula is met. It is similar to AND. Does the LSP Name column contain the value CNWQ in at least one cell? If not, try adding it and you will get a result.

    Thanks,

    Aravind GP| Principal Consultant

    Atturra Data & Integration

    M: +61493337445

    E:Aravind.GP@atturra.com

    W: www.atturra.com

Answers

  • Adam Murphy
    Adam Murphy ✭✭✭✭✭✭

    Try this: =COUNTIFS([LSP Name]:[LSP Name], HAS(@cell, "CNWQ"), Active:Active, "Active", Function:Function, "MULTIPLE")

  • AravindGP
    AravindGP ✭✭✭✭✭✭
    Answer ✓

    Hi @PauSanHPE


    Count ifs will return a result only if all the criteria you've in the formula is met. It is similar to AND. Does the LSP Name column contain the value CNWQ in at least one cell? If not, try adding it and you will get a result.

    Thanks,

    Aravind GP| Principal Consultant

    Atturra Data & Integration

    M: +61493337445

    E:Aravind.GP@atturra.com

    W: www.atturra.com

  • Hello guys,

    I just noted that I used the incorrect LSP Name, that is why it didn't return any value.

    Thank you so much.

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!