Join Collect Distinct
Smartsheet Community:
Not Sure what I am doing Wrong but I am trying to Collect Data in another Sheet only Once. Therefore if it appears twice in that Sheet in that Colum, it should only Collect it Once.
Current Formula: =JOIN(DISTINCT(COLLECT({Jira Key}, <>""), ", "))
Results: Incorrect Argument
Thanks
Best Answer
-
Hi @Ray B
The COLLECT function first has the Range listed that you want to pull data from. Then you list the Range with Criteria, and what the criteria is.
This means that since the range you want to pull is the same as the range with your criteria, you actually need to list it twice:
COLLECT({Jira Key}, {Jira Key}, <>"")
You also have the comma that should appear between each Jira Key in the wrong spot, it should be before the very last parentheses.
Try this:
=JOIN(DISTINCT(COLLECT({Jira Key}, {Jira Key}, <>"")), ", ")
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Answers
-
Hi @Ray B
Hope you are fine, please try to use Index With Collect Function. if you like i can do it for you but i need you to share me as an admin on a copy of your sheet (after removing or replacing any sensitive information)
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
-
Hi @Ray B
The COLLECT function first has the Range listed that you want to pull data from. Then you list the Range with Criteria, and what the criteria is.
This means that since the range you want to pull is the same as the range with your criteria, you actually need to list it twice:
COLLECT({Jira Key}, {Jira Key}, <>"")
You also have the comma that should appear between each Jira Key in the wrong spot, it should be before the very last parentheses.
Try this:
=JOIN(DISTINCT(COLLECT({Jira Key}, {Jira Key}, <>"")), ", ")
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
Thanks All! That worked
Parent Formula:
=JOIN(DISTINCT(COLLECT(CHILDREN(), CHILDREN(), <>"")), ", ")
Child Formula:
=JOIN(DISTINCT(COLLECT({Jira Key}, {Jira Key}, <>"")), ",")
-
Is there a way to add Commas to the Count in this Formula:
Formula:
=SUM(CHILDREN()) + " Fiber Used Out Of " + (SUM([Fiber Used (Feet)]2, " ") + " Feet")
Result: 3134 Fiber Used Out of 12000 Feet
Result I want: 3,134 Fiber Used Out of 12,000 Feet
-
Hi @Ray B
No, since the formula is both creating the SUM and then adding this number to text values, it cannot format the number to have a thousands format with commas. The number is being turned into a text string and cannot have a format applied.
@Bassam Khalil, can you think of a way to add in a comma? I'm wondering if we can use MID and SUBSTITUTE to add it in, but this might be getting too complicated.
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
Yes it's possible to add comma in easy way by creating a helper columns for the numbers that outcomes from the 2 sum functions and after adding the comma we can create the text.
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
-
Hi @Genevieve P. & Ray B
I created a sample solution to add the Thousand formatting comma to a number:
the formulas are:
1- Number of Integer Characters
=FIND(".", [Original Number]@row) - 1
2- Total Number of Characters
=LEN([Original Number]@row)
3- Number With Comma
=IF([Number of Integer Characters]@row = 8, MID([Original Number]@row, 1, 2)) + "," + MID([Original Number]@row, 3, 3) + "," + MID([Original Number]@row, 6, 3) + RIGHT([Original Number]@row, ([Total Number of Characters]@row - [Number of Integer Characters]@row))
and we can develop this formula to deal with any size of number.
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
-
Is there a way to get this to work with multi select enabled? This formula works great in a contact column but only when one person is selected. Thanks!
-
Would you be able to provide more context around your sheet and final end-goal? It would be helpful to see screen captures, but please block out sensitive data.
If you're looking to return every unique Contact from a contact column that has multiple people selected, the JOIN formula is going to read each cell as a unique cell and join the values together, versus reading the individual selections (does that make sense?)
What I would do here is have a hidden column in your source sheet that first translates the contacts into Multi-Select dropdown values instead.
=[Contact]@row
Then in your other sheet you could simply use JOIN in another multi-select dropdown column, like so:
=JOIN({Contact Helper}, CHAR(10))
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!