Can you use the HAS function in a COUNTIFS formula?

Based on what I read about HAS Function in the Formula Basics (HAS Function | Smartsheet Learning Center) I should be able to use HAS with COUNTIFS. When I try to use it in a sheet, I receive the error message: The formula cannot be generated because the HAS function is not supported in COUNTIFS.

The formula I tried is: =COUNTIFS({PM Name}:{PM Name}, HAS(@cell, “XXXX YYYYYY”)).

Answers

  • Michelle Choate 2
    Michelle Choate 2 ✭✭✭✭✭✭

    So I just tried it now, and it worked just fine for me, but what I did was make a column in the formula sheet that was a contact column with single drop downs. and then used COUNTIF({PM Name Reference from other sheet}, HAS(@Cell, [Contact Column]@row))

    Michelle Choate

    michelle.choate@outlook.com

    Always happy to walk through any project you need help with!

  • Michelle Choate 2
    Michelle Choate 2 ✭✭✭✭✭✭

    The reason you are likely getting an error is because contact columns are not based on names, but emails, and that is different than text to Smartsheet.

    Michelle Choate

    michelle.choate@outlook.com

    Always happy to walk through any project you need help with!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!