IF Formula
Hi everyone, I have two columns. One is Department, the other is Analyst.
I have created an if statement under the analyst column saying - =IF([Lead Department]2 = "Education", "Analyst Name". The formula is a lot longer because I added 13 departments in total, but it works.
That said, in some cases we need to select multiple departments under the department column. Ex - Central Services and Municipal Relations. It would appear as follows:
Is there a formula I can create that can identify which department/s are selected an than list the correct names under the Analyst column?
TIA
Answers
-
I think you're looking for CONTAINS. So
=IF(CONTAINS("Education", [Lead Department]2), "Analyst Name"
-
Hi @David Tutwiler, i'm getting an UNPARSEABLE error,
What i'm trying to do is list multiple analysts if the department column has multiple departments selected.
Can an IF(CONTAIN( statement be nested, similar to IF statements?
-
I think you're getting the Unparseable error because you are giving too many parameters to the CONTAINS formula. CONTAINS only takes 2 parameters (#1 what are you searching for, #2 where to search). I think maybe the 'Name1' should be on the outside of the CONTAINS as the "what do I do if the IF solves true" part of the formula. Once that's done I think it should work fine.
Yes, they can be nested as the CONTAINS is just nested within the IF statement).
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!