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
- Customer Resources
- 65K Get Help
- 442 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 149 Just for fun
- 70 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!