Best method to return a list based on a multi-select column

I hope I'm close with this solution, but I just can't make the formula work.

I have a list of therapists who are licensed in multiple states.

Sheet with formula: A list of patients needing a therapist. Their state is indicated in a "State" field.

Second sheet: A two-column range of "Therapist last name", and "States Licensed" (this column has a mulit-select of all US state abbreviations.

Example of a single record across the two columns of second sheet:

Smith FL, TX, CA

I want to run a search from the client sheet where I see the "State" and match it to every potential therapist in the second sheet, then return the names of those therapists.

My attempt is this, which is failing:

=JOIN(COLLECT({Therapist-LName}, {Therapist-State}, HAS({Therapist-State}, State@row,)) ", ")

Thanks in advance for any help.

Tags:

Best Answer

  • Jeff M.
    Jeff M. ✭✭✭
    Answer ✓

    Hi Sherri,

    I believe this should work for you. Try inputting the formula below in a column named something like "Therapist Results" in your client sheet.

    You could use a single select column "Client State" for the client sheet that also contains all of the state abbreviations.

    The Therapist Results column should populate all of the names once a state is entered into the "Client State" column for that row.

    =JOIN(COLLECT({Therapist-LName}, {Therapist-State}, CONTAINS([Client State]@row, @cell)), " , ")

Answers

  • Jeff M.
    Jeff M. ✭✭✭
    Answer ✓

    Hi Sherri,

    I believe this should work for you. Try inputting the formula below in a column named something like "Therapist Results" in your client sheet.

    You could use a single select column "Client State" for the client sheet that also contains all of the state abbreviations.

    The Therapist Results column should populate all of the names once a state is entered into the "Client State" column for that row.

    =JOIN(COLLECT({Therapist-LName}, {Therapist-State}, CONTAINS([Client State]@row, @cell)), " , ")

  • SherriL
    SherriL ✭✭

    Thank you so much, @Jeff M. ! This works perfectly!

  • Jeff M.
    Jeff M. ✭✭✭

    Sherri,

    No problem at all, glad I could help!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!