Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

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

  • Community Champion

    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! Book time with me here: https://calendly.com/michelle-choate

  • Community Champion

    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! Book time with me here: https://calendly.com/michelle-choate

  • ✭✭✭

    I would like to connect with you, Michelle. It is my understanding the HAS function is to be used with multiple select dropdowns. I wouldn't need to use it if the columns were Single select. I am trying to use the function with a contact column. I am interested in learning more about the name versus email address and what options there are to use HAS and COUNTIFS with contact columns. How can I get in contact with you?

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions