Welcome to the Smartsheet Forum Archives
The posts in this forum are no longer monitored for accuracy and their content may no longer be current. If there's a discussion here that interests you and you'd like to find (or create) a more current version, pleaseVisit the Current Forums.
Feature Request: JOIN() carriage return separator
I would like to JOIN() to allow the carriage return as a separator.
This would allow me to transpose the data.
JOIN([Column1]23:[Column12]23,"\n") would take the row and give me a cell with the contents transposed vertically.
JOIN([Column1]1:[Column1]22," ") would take the column and give me a cell with the contents transposed horizontally.
Integration to tools like Evernote or Slack would allow the notes to be visually easier to read and comprehend.
Thanks.
Craig
Comments
-
Taylor F Employee Admin
Hi Craig,
Although we don't have the ability to code in a carriage return in the JOIN function, we do have a workaround.
What you will need to do is create a new Text/Number column called "Carriage Return" (or something similar) and in the first cell place a hyphen, a carriage return, and a hyphen. You can then hide this column on the sheet.
Then in the JOIN function, refer to this first cell and place the cell reference in the SUBSTITUTE function and replace the hypens with nothing.
=JOIN([Task Name]1:[Task Name]5, SUBSTITUTE([Carriage Return]$1, "-", ""))
This will JOIN Task Name 1 through Task Name 5 with a carriage return. Be sure to enable Wrap on the cell that contains the JOIN formula in order to view the values in a list.
-
J. Craig Williams ✭✭✭✭✭✭
That is a thing of beauty.
Thank you Taylor.
Craig
-
Lee Joramo ✭✭✭✭✭
A slight improvement on this is to use the newSummary Sheetsso that you don't need to create a column. Add a field "Carriage Return" to your Summary Sheet with the string containing the return an use the forumula:
=JOIN([Task Name]1:[Task Name]5, SUBSTITUTE([Carriage Return]#, "-", ""))
-
I realize this is a pretty old thread, but I'm going to give it a shot anyway... So that solution worked for my situation but it does have a bit of a side-effect. I'm joining cells (and doing some IF statementsI figured IF statements out) that may have information and may not, but within the formula I'm using the substitution solution above. On the blank cells, obviously nothing shows when everything gets rendered, but the carriage returns are there still. This leaves you with a block of text that has large areas of white space between the items you are joining.
So, is there a method of employing this solution where the carriage return could be ignored on cells without content?
Example of the IF statement:
=IF([A1A]1 = 0, "⚠ Section A1 (A) - NOT SUBMITTED", "") + SUBSTITUTE(Carriage$1, "-", "") + IF([A1B]1 = 0, "⚠ Section A1 (B) - NOT SUBMITTED", "") + SUBSTITUTE(Carriage$1, "-", "") + IF([A2]1 = 0, "⚠ Section A2 - NOT SUBMITTED", "") + SUBSTITUTE(Carriage$1, "-", "")
UPDATE:I just needed 5 minutes to stop thinking about it I guess. Solved my own IF statement problem (using the example above, I did the following):
=IF([A1A]1 = 0, "⚠ Section A1 (A) - NOT SUBMITTED" + SUBSTITUTE(Carriage$1, "-", ""), "") + IF([A1B]1 = 0, "⚠ Section A1 (B) - NOT SUBMITTED"+ SUBSTITUTE(Carriage$1, "-", ""), "") + IF([A2]1 = 0, "⚠ Section A2 - NOT SUBMITTED"+ SUBSTITUTE(Carriage$1, "-", ""), "")
Example of the JOIN: (Still need to know if it's possible in a JOIN argument)
=JOIN(CHILDREN(), SUBSTITUTE(Carriage$1, "-", ""))
Both ways render the carriage return even for blank cells (I guess because the SUBSTITUTE isn't being controlled by any conditional statements).
It seems that the JOIN method may be trickier than the IF. It seems like there should be a way to build the SUBSTITUTE into the IF statement, but I've been experimenting with it for hours now and I'm too aggravated to continue on my own (Ha).
Any suggestions?
这不是一个致命伤,它看起来像装束age when it renders (Including the screenshot of how it renders).
-
bdchapin ✭
weswillis,
I had a case that was somewhat similar and I was able to use the Collect() function to filter out the junk that I didn't want to join into the text string.
Collect() basically uses the logic from a countifs() and in stead of counting the values that match it returns the array of values that match.
-
Paul Newcome ✭✭✭✭✭✭
A few notes in case anyone else stumbles across this thread looking for something...
1. With the new functions that have been rolled out recently, you can now useCHAR(10)to insert the carriage return separator.
=JOIN([Column Name]:[Column Name],CHAR(10))
.
2. To not have all of the extra separators for blank fields within a JOIN range, you can use the COLLECT function.
=COLLECT(range to collect, criteria range 1, criteria 1, criteria range 2, criteria 2, ...............)
Using this within the JOIN function, we can specify to only join fields that are text (or whatever other criteria you want to include.
=JOIN(COLLECT([Join Column]:[Join Column], [Join Column]:[Join Column], ISTEXT(@cell)),CHAR(10))
Categories
Thanks! That sorted it!😀<\/span><\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[]},{"discussionID":108430,"type":"question","name":"Any idea why apps are missing from apps and integrations?","excerpt":"I can see all the apps my user account has but my admin account just shows an image and tells me to access apps via Solutions Center, but since the recent update all that is listed are templates. Anyone else experiencing this? Perhaps an account level setting? Thanks","snippet":"I can see all the apps my user account has but my admin account just shows an image and tells me to access apps via Solutions Center, but since the recent update all that is…","categoryID":343,"dateInserted":"2023-08-02T16:55:13+00:00","dateUpdated":null,"dateLastComment":"2023-08-02T22:43:15+00:00","insertUserID":157976,"insertUser":{"userID":157976,"name":"scot tupper","url":"https:\/\/community.smartsheet.com\/profile\/scot%20tupper","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!BEDmARvGKWs!HZlnn1Ozkzs!BAzk9Ud4lRH","dateLastActive":"2023-08-02T22:39:04+00:00","banned":0,"punished":0,"private":false,"label":"✭✭"},"updateUserID":null,"lastUserID":157976,"lastUser":{"userID":157976,"name":"scot tupper","url":"https:\/\/community.smartsheet.com\/profile\/scot%20tupper","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!BEDmARvGKWs!HZlnn1Ozkzs!BAzk9Ud4lRH","dateLastActive":"2023-08-02T22:39:04+00:00","banned":0,"punished":0,"private":false,"label":"✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":20,"score":null,"hot":3382012708,"url":"https:\/\/community.smartsheet.com\/discussion\/108430\/any-idea-why-apps-are-missing-from-apps-and-integrations","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/108430\/any-idea-why-apps-are-missing-from-apps-and-integrations","format":"Rich","lastPost":{"discussionID":108430,"commentID":388617,"name":"Re: Any idea why apps are missing from apps and integrations?","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/388617#Comment_388617","dateInserted":"2023-08-02T22:43:15+00:00","insertUserID":157976,"insertUser":{"userID":157976,"name":"scot tupper","url":"https:\/\/community.smartsheet.com\/profile\/scot%20tupper","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!BEDmARvGKWs!HZlnn1Ozkzs!BAzk9Ud4lRH","dateLastActive":"2023-08-02T22:39:04+00:00","banned":0,"punished":0,"private":false,"label":"✭✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Get Help","url":"https:\/\/community.smartsheet.com\/categories\/get-help"},{"name":"Add Ons and Integrations","url":"https:\/\/community.smartsheet.com\/categories\/apps-and-integrations"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-08-03T09:09:23+00:00","dateAnswered":"2023-08-02T22:43:15+00:00","acceptedAnswers":[{"commentID":388617,"body":" disregard. support reminded me you initiate the connection to the app from the app, then it appears in the list of apps in smartsheet.<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":343,"name":"Add Ons and Integrations","url":"https:\/\/community.smartsheet.com\/categories\/apps-and-integrations","allowedDiscussionTypes":["discussion","question"]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[]},{"discussionID":108438,"type":"question","name":"NETWORKDAYS WITH AN IF??","excerpt":"Can anyone help with a formula to track the number of days between 2 separate columns with the IF of stopping the count once a date is populated in one of those columns?","snippet":"Can anyone help with a formula to track the number of days between 2 separate columns with the IF of stopping the count once a date is populated in one of those columns?","categoryID":322,"dateInserted":"2023-08-02T19:37:00+00:00","dateUpdated":null,"dateLastComment":"2023-08-02T20:11:28+00:00","insertUserID":164426,"insertUser":{"userID":164426,"name":"JT_22002","url":"https:\/\/community.smartsheet.com\/profile\/JT_22002","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-03T11:32:53+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":161714,"lastUser":{"userID":161714,"name":"Carson Penticuff","url":"https:\/\/community.smartsheet.com\/profile\/Carson%20Penticuff","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/B0Q390EZX8XK\/nBGT0U1689CN6.jpg","dateLastActive":"2023-08-03T02:58:18+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":1,"countViews":16,"score":null,"hot":3382012708,"url":"https:\/\/community.smartsheet.com\/discussion\/108438\/networkdays-with-an-if","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/108438\/networkdays-with-an-if","format":"Rich","tagIDs":[254],"lastPost":{"discussionID":108438,"commentID":388600,"name":"Re: NETWORKDAYS WITH AN IF??","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/388600#Comment_388600","dateInserted":"2023-08-02T20:11:28+00:00","insertUserID":161714,"insertUser":{"userID":161714,"name":"Carson Penticuff","url":"https:\/\/community.smartsheet.com\/profile\/Carson%20Penticuff","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/B0Q390EZX8XK\/nBGT0U1689CN6.jpg","dateLastActive":"2023-08-03T02:58:18+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Get Help","url":"https:\/\/community.smartsheet.com\/categories\/get-help"},{"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-08-03T11:34:23+00:00","dateAnswered":"2023-08-02T20:11:28+00:00","acceptedAnswers":[{"commentID":388600,"body":" I'm not sure I understand the goal. If you want to see the days between two column, you will need to already have a date in each of those columns. This seems to contradict stopping the count once one of the columns is populated. Can you provide more detail, or maybe a screenshot\/mockup of what you are looking for?<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[{"tagID":254,"urlcode":"Formulas","name":"Formulas"}]}],"initialPaging":{"nextURL":"https:\/\/community.smartsheet.com\/api\/v2\/discussions?page=2&includeChildCategories=1&type%5B0%5D=Question&excludeHiddenCategories=1&siteSectionID=0&sort=-hot&limit=3&expand%5B0%5D=all&expand%5B1%5D=-body&expand%5B2%5D=insertUser&expand%5B3%5D=lastUser&status=accepted","prevURL":null,"currentPage":1,"total":10000,"limit":3},"title":"Trending Posts","subtitle":null,"description":null,"noCheckboxes":true,"containerOptions":[],"discussionOptions":[]}">