Referencing Multi-Select Dropdown in a Formula to Get Elements On One Line
Hey everyone,
By default, if you a cell in a multi-select dropdown column with more than one option selected and then copy/paste that cell or reference it in a formula, each element is pasted on a separate line, like this:
Is it possible to get all the elements on one line with commas, like this?
Thanks!
School of Sheets (Smartsheet Partner)
If my answer helped please accept and react w/💡Insightful, ⬆️ Vote Up, ❤️Awesome!
Best Answer
-
Yes. Try something like this...
=SUBSTITUTE([Multi Select Column]@row, CHAR(10), ", ")
CHAR(10) (line break) is the delimiter used by default in multi-select columns, so we use the SUBSTITUTE function to replace that with the "comma space" delimiter that you wanted.
Answers
-
Yes. Try something like this...
=SUBSTITUTE([Multi Select Column]@row, CHAR(10), ", ")
CHAR(10) (line break) is the delimiter used by default in multi-select columns, so we use the SUBSTITUTE function to replace that with the "comma space" delimiter that you wanted.
-
Worked like a charm, thanks much Paul!
School of Sheets (Smartsheet Partner)
If my answer helped please accept and react w/💡Insightful, ⬆️ Vote Up, ❤️Awesome!
-
Happy to help! 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!