# COUNTIF of CHILDREN with HAS

Options

I'm running into an issue with a formula that I'm trying to write that counts the results of a multi-dropdown column using the CHILDREN hierarchy.

=COUNTIF(CHILDREN([Event Tier]165), HAS(@cell, "Tier 1: Off-Site Event"))

I'm looking for any cells that contain the answer "Tier 1: Off-Site Event" for all the children of [Event Tier]165 which would include cells where there is more then one answer. With the formula above it I'm returning a value of 0 and can't figure it out.

Any help is much appreciated, thank you!

• ✭✭✭✭✭✭
Options

Hi @HYoffa

I hope you're well and safe!

Try something like this.

```=COUNTIF(CHILDREN([Event Tier]165), CONTAINS("Tier 1: Off-Site Event", @cell))
```

Did that work/help?

I hope that helps!

Be safe and have a fantastic week!

Best,

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!

SMARTSHEET EXPERT CONSULTANT & PARTNER

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

• Options

For some reason the total is still showing 0, it's not pulling the amount of Tier 1 with this formula. Thank you so much for your help!

• ✭✭✭✭✭✭
Options

Strange!

I'd be happy to take a quick look.

Can you describe your process in more detail and maybe share the sheet(s)/copies of the sheet(s) or some screenshots? (Delete/replace any confidential/sensitive information before sharing) That would make it easier to help. (share too, andree@workbold.com)

SMARTSHEET EXPERT CONSULTANT & PARTNER

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

• Options

Perfect, I'll share now!

• Options

Hi There,

Just wanted to see if you were able to check on this?

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!