Index, Match, Contains with a Keyword

I am trying to search a master employee spreadsheet and return the email of the director of the employee. Some directors have other words in their title such as Director of XX Department. The problem is the employee spreadsheet doesn't have a column for the employees' director, so I need to search the positions of the entire sheet and if the position contains the word "Director" and it matches the same Department as the Employee, then return the Email that matches the name of the Director.
Answers
-
Maybe use index collect with contains
=IFERROR(INDEX(COLLECT({email}, {name}, CONTAINS([ref col]@row, @cell)), 1),"")
-
Thank you so much but that didn't seem to do the trick. I'm attaching a snip from the spreadsheet. So i want to collect the Director's email where the Department matches.
-
@Christina Riot Try something like this:
=INDEX(COLLECT(Email:Email, Department:Department, Department@row, Position:Position, CONTAINS("Director", @cell)), 1)
English: Collect the Email address for the row that has the same department as this row, and where the Position column contains "Director".
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
Hi Jeff! thank you so much but that didn't seem to work. :(
-
Was there a particular error message you got?
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Help Article Resources
Categories
Check out the Formula Handbook template!