Help w/ Countifs for multi-select drop down field

Options

Hi,

I am trying to use the following countif on a RAID log where the 'impacted validation report' (RAID Log - Template Range 1) is a multi-select drop down field. I cannot get the formula to return anything but 0 when I know there are outstanding issues in each different status.

image.png

This is the raid log and formula. Each column references a different status and RAID Log - Template Range 2 is the status column. All the lines in yellow should be returning values other than 0 based on manual counts in the RAID log.

The formula I'm using is:

=COUNTIFS({RAID Log - Template Range 1}, CONTAINS([Item Type]@row , @cell ), {RAID Log - Template Range 2}, "In Process")

Any help would be greatly appreciated!

Answers

  • Andoni
    Andoni ✭✭✭

    Hello! Could you try the below? If I'm understanding correctly, I have a similar use case set up that tracks, not multi-dropdown, but a contact column where multiple values are allowed, so the logic should hopefully be the same. Following my setup yours should look something like -

    =COUNTIFS({RAID Log - Template Range 1}, HAS(@cell, [Item Type]@row), {RAID Log - Template Range 2}, "In Process")

  • NicoLHC
    NicoLHC ✭✭✭✭✭✭

    @Alex Hackford

    Your formula returns 0 becauseΒ COUNTIFS can’t check inside multi-select fields directly. Try this short fix:

    ReplaceΒ CONTAINSΒ withΒ HAS:

    =COUNTIFS({RAID Log - Template Range 1}, HAS(@cell , [Item Type]@row ), {RAID Log - Template Range 2}, "In Process")
    

    Why?

    • HASΒ works with multi-selects to see if your Item Type exists in that cell.
    • CONTAINSΒ doesn’t parse multi-select dropdowns in COUNTIFS.

    Give that a go and let me know if it starts returning the counts you expect.

    If my comment helps you, I appreciate a πŸ’‘

    Kind regards

    Nico | LinkedIn

    CEO | Lighthouse Consultings

    Lecturer in Business Information Systems | DHBW

    ________________________________________________________________________________

    addvalue@lighthouseconsultings.com

    We offer Licenses - Training - Solution Engineering

    πŸ”΄ GOLD Smartsheet Partner _______________________________________________

    πŸ’― SCALEABLE Solutions Engineered by Lighthouse Consultings

    We Don’t Just Implement Smartsheet; We Revolutionize How You Manage, Plan, And Execute.

    πŸŽ₯ YouTube πŸš€TimeLine View

    http://lighthouseconsultings.de/

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!