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
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!