Looking for help with nested IF and FIND
I'm looking to return text based on the content of a single, fixed cell, but I believe my syntax is bad.
Column A, Row 1 could potentially be "Q3M1W1", "Q3M2W1" or "Q3M2W3" which would be entered manually by the user.
I would like to have another cell display "M1W1" if A1 is "Q3M1W1" or "M2W1" if A1 is "Q3M2W1" or "No" if A1 is "Q3M2W3".
My formula, which is coming up unparsable is,
=IF((FIND("W1", A$1,0)), "M1W1", (FIND("M2W1", A$1,0)), "M2W1", "No")
What am I missing?
Thanks in advance.
Comments
-
If you are just splitting out the last 4 characters of text in an adjacent cell, why not use:
=RIGHT([Column A]1, 4)
-
=IF(FIND("W1", A$1,0), "M1W1", FIND("M2W1", A$1,0), "M2W1", "No")
You had some extra parenthesis tucked in there. Try the above.
-
Thanks for the recommendation! I did't see the forest for the trees.
-
Thanks Paul, this worked easily as well. Bookmarking this for ref.
-
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!