Separate last name, or auto enter "GENERAL" if cell is blank
My smartsheet is autopopulated by a form in which a submitted can enter "referred by". If a full name is entered, I want to separate the last name and first name to other columns so I can group by last name. I have the formula =MID([REFERRED BY]@row, FIND(" ", [REFERRED BY]@row), 20) to pull out the last name. If there was no referral and this cell is blank, this formula returns #INVALID VALUE. Instead, how can I have it auto enter "General" when the cell is blank?
Thanks for your help.
Best Answer
-
Try:
=IFERROR(MID([REFERRED BY]@row, FIND(" ", [REFERRED BY]@row), 20), "General")
Work?
Mark
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
Answers
-
Try:
=IFERROR(MID([REFERRED BY]@row, FIND(" ", [REFERRED BY]@row), 20), "General")
Work?
Mark
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
-
Wow! Genius! I have been trying for hours and was making it way too complicated. Thanks so much for the prompt reply and elegant solution. I appreciate it greatly.
-
Glad you found a solution. Thank you for contributing to the community. Mark
I'm grateful for your "Vote Up" or "Insightful". Thank you for contributing to the Community.
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.5K Get Help
- 367 Global Discussions
- 202 Industry Talk
- 432 Announcements
- 4.4K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 447 Show & Tell
- 29 Member Spotlight
- 1 SmartStories
- 285 Events
- 36 Webinars
- 7.3K Forum Archives