New to Smartsheet...
Scenario: I have a list of treatments to apply based on various observations made. When I make an observation, various columns concatenate to give me an ObservationCode. Once the ObservationCode is generated, I want to interrogate the list of treatments and return all potential relevant treatments.
Example: ObservationCode is 1X2X3X4A5D6X7X. If it matters, the nomenclature is that items 1-3 and 6 and 7 are irrelevant to the particular observation, so it assigns X (if 1 is "flavor" and the observation is of a chair, it is irrelevant). In this example, items 4 and 5 are relevant to a handful of treatments.
My thought is to have my list of treatments in Column 1, and the relevant observation codes in Column 2. So for Treatment1, relevant observations are 4A and 5D. BOTH must be met to return Treatment1. Simply put:
Column1 Column2
Treatment1 4A 5D [Note: not sure if I would want a space, comma, or something else in Column2]
What is the proper formula to do the following:
- Evaluate the ObservationCode
- Evaluate the Treatment List and look for matches in Column2, above. A treatment might have 1 or more matching Observation Code required
- If there is a full match, return the value listed in Column1, above.
To complicate matters, a single ObservationCode might return multiple Treatments
Thank you for your time and consideration; I'm happy to do the research, I'm just not sure where to start.