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 Formula with multiple criteria including a checkbox

Hello,

I tried multiple formulas and can't seem to figure out to do a count that includes a report code (e.g., OWCA1) and a checkbox. Here is what I have so far:

=COUNTIFS({UHG Risk Control Matrix Range 2}, CONTAINS("OWCA1", @cell), {UHG Risk Control Matrix Range 1}, CONTAINS("1", @cell))

Thank you for any help!!


Best Answers

  • ✭✭✭✭✭
    Answer ✓

    To count the checkbox you wouldn't use "CONTAINS" you would just use 1.

    So it should be

    =COUNTIFS({UHG Risk Control Matrix Range 2}, CONTAINS("OWCA1", @cell), {UHG Risk Control Matrix Range 1}, 1)

    *Assuming the {UHG Risk Control Matrix Range 1} is the checkbox column*

  • ✭✭
    Answer ✓

    Michael,

    Thank you so much!! It worked perfectly.

    Also, thank you for the quick reply as well!

Answers

  • ✭✭✭✭✭
    Answer ✓

    To count the checkbox you wouldn't use "CONTAINS" you would just use 1.

    So it should be

    =COUNTIFS({UHG Risk Control Matrix Range 2}, CONTAINS("OWCA1", @cell), {UHG Risk Control Matrix Range 1}, 1)

    *Assuming the {UHG Risk Control Matrix Range 1} is the checkbox column*

  • ✭✭
    Answer ✓

    Michael,

    Thank you so much!! It worked perfectly.

    Also, thank you for the quick reply as well!

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 ✓
    9
    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 ✓
    13
    2