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.

Find Value in List in Cell

edited 12/09/19 in Formulas and Functions

I have two sheets---one with a list of program that includes rows with a cell that has a list of course prefixes.

EXAMPLE:

ROW 1--->Doe, John | doej@xx.com | BUS,CUL,MGT

ROW 2--->Smith, Elle | smithe@xx.com | HOS,SUS

Each row has three columns: name, e-mail address, and course code prefixes.

On the second sheet, I want to list courses to be developed in an upcoming term.

EXAMPLE:

ROW 1--->BUS 222 Contracts | 6 weeks | Doe, John

ROW 2--->SUS 318 Water Resources | 10 weeks | Smith, Ellie

Each row has three columns: course name (entered manually), course length (entered manually), and program leader (added automatically based on course code prefix. For BUS 222, I want to use "BUS" to search in the other sheet to add the correct program leader ("Doe, John"), with the corresponding prefix in the list in column 3 (BUS appears in the list with "CUL" and "MGT".

I know about the INDEX and MATCH functions, but I am not sure how to search using the LEFT three characters of the value in a cell (e.g., "BUS") in another sheet in cells with multiple prefixes, separated by commas, and put the name of the program leaders ("Doe, John").

Not every program code has 3 characters, so I am guessing I would need to find the space first in the course code ("BUS" in BUS 222 and "CAPK" in CAPK 344). Once I know this, however, I do not know how to find the one row (and the one program leader) who has that prefix in his or her list (BUS, CUL, MGT).

Thanks!

Comments

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions