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.

COUNTIFS, HAS, and CONTAINS Formulas with Different Reference Sheets and Dropdowns!

Hi all!

Looking for some expertise with COUNTIFS, HAS, and CONTAINS formulas when also using reference sheets with dropdowns.

I have one reference sheet that my team is using to track employee's learning progress with class enrollments and completions. One of the columns is set up to be an Enrollment Status dropdown with the options: Invited, Enrolled, Completed, Declined. Another column on the sheet has which Coast they are sitting on (East or West) — *set up as a VLOOKUP, not as a dropdown.

I need a formula that counts the different combinations of the two. For example, if they sit on the West Coast (WC) and have Completed the class; or if they sit on the East Coast (EC) and have Completed the class; and so on for each dropdown enrollment option.

I started with: =COUNTIF({Fall Nominations Range 2}, "WC") which works to count the total employees on the WC— but I cannot figure out how to successfully incorporate the Enrollment Status dropdown. I tried adjusting the above formula to a COUNTIFS formula and using either HAS and CONTAINS with "Completed" but keep receiving different error messages.

My latest attempts were as follows and resulted in #incorrect argument:

=COUNTIFS({Fall Nominations Range 2}, "WC", CONTAINS("Completed", {Fall Nominations Range 7}))

I also tried:

=COUNTIFS({Fall Nominations Range 2}, "WC", HAS({Fall Nominations Range 7}, "Completed"))

Can anyone help me understand what I am missing? Thank you in advance :)

Best Answer

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions

  • I'm trying to create a SUMIF formula that looks at the salesperson name in a column and adds up or totals their $ sales in another column. To ultimately show in Dashboard of Totals Sales by Salesperso…
    User: "Allan Z"
    Answered ✓
    7
    2
  • Good day Smartsheet Team, Getting an unparseable error on this formula: =IF($Name@row <> "",(SUMIFS({Expense}, {Period},1, {Type}, OR(@cell = "RES602782", @cell = "RES602497")),"") Trying to pull in a…
    User: "stratman"
    Answered ✓
    15
    2
  • I have a sheet that compiles all the responses from a form. The sheet has multiple start and end date columns, but only one start and one end date cell is NOT blank depending on the activity selected …
    User: "m_anderson"
    Answered ✓
    12
    2