Can IF and the JOIN(COLLECT) formula be used together?

Hello,

I have a sheet with data. The data is populated from 4 forms and therefore populates in rows. The data needs to then be collated on one Smartsheet, and I am looking to pull through all the quarters into one cell where the quarter is "Q1".

I have successfully pulled through all the "Q1" to show in a cell, by using the formula: =JOIN(COLLECT(....

The problem I am facing is that it is pulling through both "Q1" & "Q2" into one cell, but I only want "Q1". How can I use the 'IF' function here please?

image.png

Thank you,

Best Answer

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭
    Answer ✓

    In that case (assuming {Range 1} is the QTR column), you would add it as another range/criteria set within the COLLECT function.

    =JOIN(COLLECT({EORMF - Control Range 1}, {EORMF - Control Range 1}, @cell = "Q1",{Client Name}, [Client Name]@row), " ")

Answers

@BStump<\/a> <\/p>

This method does produce separate reports:<\/p>

The Project Plan report will include this filter: \"Sheet Type\" is one of \"Project Plan\" -- this filter will exclude rows coming from the RAID Log (and all other types of sheets) because those other sheets will have a value in their \"Sheet Type\" column that is not \"Project Plan.\" <\/p>

The RAID Log report will include this filter: \"Sheet Type\" is one of \"RAID Log\" -- this filter will exclude rows coming from the Project Plan (and all other types of sheets) because those other sheets will have a value in their \"Sheet Type\" column that is not \"RAID Log.\" <\/p>

Thus, each report will include a filter rule specifying that only rows with its own sheet type can be included.<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":321,"name":"Smartsheet Basics","url":"https:\/\/community.smartsheet.com\/categories\/smartsheet-basics%2B","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":265,"urlcode":"Reports","name":"Reports"}]},{"discussionID":108415,"type":"question","name":"Creating Check out\/in sheet and form?","excerpt":"Is it possible to create a check out\/in sheet and form where the entries from the form will land on the same row? I want to create a form where people can check things out\/in on the same date. So I'd check things out the in the morning of 8\/2 and check them in at closing time. I want all the data to land on the same row so…","snippet":"Is it possible to create a check out\/in sheet and form where the entries from the form will land on the same row? I want to create a form where people can check things out\/in on…","categoryID":321,"dateInserted":"2023-08-02T13:59:28+00:00","dateUpdated":null,"dateLastComment":"2023-08-02T14:53:22+00:00","insertUserID":155551,"insertUser":{"userID":155551,"name":"mistone","url":"https:\/\/community.smartsheet.com\/profile\/mistone","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-02T15:19:06+00:00","banned":0,"punished":0,"private":false,"label":"✭✭"},"updateUserID":null,"lastUserID":126800,"lastUser":{"userID":126800,"name":"Kelly P.","url":"https:\/\/community.smartsheet.com\/profile\/Kelly%20P.","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-02T16:17:14+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":1,"countViews":19,"score":null,"hot":3381973370,"url":"https:\/\/community.smartsheet.com\/discussion\/108415\/creating-check-out-in-sheet-and-form","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/108415\/creating-check-out-in-sheet-and-form","format":"Rich","lastPost":{"discussionID":108415,"commentID":388490,"name":"Re: Creating Check out\/in sheet and form?","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/388490#Comment_388490","dateInserted":"2023-08-02T14:53:22+00:00","insertUserID":126800,"insertUser":{"userID":126800,"name":"Kelly P.","url":"https:\/\/community.smartsheet.com\/profile\/Kelly%20P.","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/defaultavatar\/nWRMFRX6I99I6.jpg","dateLastActive":"2023-08-02T16:17:14+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":"Smartsheet Basics","url":"https:\/\/community.smartsheet.com\/categories\/smartsheet-basics%2B"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-08-02T15:19:19+00:00","dateAnswered":"2023-08-02T14:53:22+00:00","acceptedAnswers":[{"commentID":388490,"body":"

@mistone<\/a> <\/p>

Form entries cannot land in the same row. However, you could use a form entry to check out and then use an update request to check in. <\/p>

Hope this helps!<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":321,"name":"Smartsheet Basics","url":"https:\/\/community.smartsheet.com\/categories\/smartsheet-basics%2B","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":108379,"type":"question","name":"Removing Incorrect Contacts","excerpt":"Hi, We have several users that have been incorrectly entered into our contact listing. Instead of correcting the contact information, a new one was created. This causes significant confusion in knowing which one to choose for notifications, access permissions, etc. Can these be removed? Is there an internal database that…","snippet":"Hi, We have several users that have been incorrectly entered into our contact listing. Instead of correcting the contact information, a new one was created. This causes…","categoryID":321,"dateInserted":"2023-08-01T20:21:31+00:00","dateUpdated":"2023-08-02T11:44:44+00:00","dateLastComment":"2023-08-02T22:42:14+00:00","insertUserID":116932,"insertUser":{"userID":116932,"name":"Darla Brown","title":"Executive Assistant\/Smartsheet Nerd","url":"https:\/\/community.smartsheet.com\/profile\/Darla%20Brown","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!2ijXPwm027Q!unNWp2GmkrQ!CBVsVJExguI","dateLastActive":"2023-08-02T22:38:17+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭✭✭"},"updateUserID":91566,"lastUserID":160498,"lastUser":{"userID":160498,"name":"svenu","title":"Sowmya","url":"https:\/\/community.smartsheet.com\/profile\/svenu","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/DCMMVCYWQVDW\/n8MOHGOMZQ316.jpg","dateLastActive":"2023-08-02T23:23:48+00:00","banned":0,"punished":0,"private":false,"label":"✭✭✭✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":27,"score":null,"hot":3381939225,"url":"https:\/\/community.smartsheet.com\/discussion\/108379\/removing-incorrect-contacts","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/108379\/removing-incorrect-contacts","format":"Rich","lastPost":{"discussionID":108379,"commentID":388616,"name":"Re: Removing Incorrect Contacts","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/388616#Comment_388616","dateInserted":"2023-08-02T22:42:14+00:00","insertUserID":160498,"insertUser":{"userID":160498,"name":"svenu","title":"Sowmya","url":"https:\/\/community.smartsheet.com\/profile\/svenu","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/DCMMVCYWQVDW\/n8MOHGOMZQ316.jpg","dateLastActive":"2023-08-02T23:23:48+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":"Smartsheet Basics","url":"https:\/\/community.smartsheet.com\/categories\/smartsheet-basics%2B"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-08-02T22:34:06+00:00","dateAnswered":"2023-08-02T19:51:37+00:00","acceptedAnswers":[{"commentID":388593,"body":"

Hi Darla,<\/p>

Here is how you remove\/edit the incorrect contacts:<\/p>