COUNTIF Formula

Hello!

I am trying to set up a formula in my sheet summary that counts a cell if it includes one of three names. So far I have tried the following but am either getting 0 or an error message..

=COUNTIFS(OR(FIND("Name1", [ASSIGNED PREFAB POC]:[ASSIGNED PREFAB POC]), FIND("Name2", [ASSIGNED PREFAB POC]:[ASSIGNED PREFAB POC]), FIND("Name3", [ASSIGNED PREFAB POC]:[ASSIGNED PREFAB POC])))

=COUNTIF([ASSIGNED PREFAB POC]:[ASSIGNED PREFAB POC], "Name1") + COUNTIF([ASSIGNED PREFAB POC]:[ASSIGNED PREFAB POC], "Name2") + COUNTIF([ASSIGNED PREFAB POC]:[ASSIGNED PREFAB POC], "Name3")

I do not want to count any cells more than once.

Please help!

Best Answer

  • Zachary Hall
    Zachary Hall ✭✭✭✭✭✭
    Answer ✓

    That is why... This should help:

    • COUNTIF([ASSIGNED PREFAB POC]:[ASSIGNED PREFAB POC], FIND("Name1",@cell)>0)+COUNTIF([ASSIGNED PREFAB POC]:[ASSIGNED PREFAB POC], FIND("Name2",@cell)>0)+COUNTIF([ASSIGNED PREFAB POC]:[ASSIGNED PREFAB POC], FIND("Name3",@cell)>0)

    Your names will have to appear exactly as they do in the contact column (which could also be their email address).

    I hope this helps!

    Best,

    Zach Hall

    Training Delivery Manager / Charter Communications

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!