Using IFERROR with a Join Formula
I have a JOIN formula that combines four cells
=JOIN([Add Request Type]@row:[Entitlement]@row, ", ")
I am wondering if I can get help to create an IFERROR formula that would leave a cell in the JOIN Column blank if one of the cells contained in the JOIN criteria is blank.
Best Answer
-
Try this one.
=IF(COUNTIF([Add Request Type]@row:Entitlement@row, "") > 0, "", JOIN(COLLECT([Add Request Type]@row:Entitlement@row, [Add Request Type]@row:Entitlement@row, <>""), ","))
Did that work?
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Answers
-
Hi @TSmelser
Hope you are fine, Please add a copy of your sheet or a screenshot (after removing or replacing any sensitive information). This will make it easier for me to provide the appropriate answer to your question.
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,
So the first screen shot shows the 4 columns that are contained in the JOIN formula that populates my Index Match Column (The column is named wrong but is in several formulas so I don't change it)
The second row down has the fields that I want to return a result in my Index Match (JOIN) column. The third and forth rows are incomplete and I would like the IFERROR formula to leave the cell blank instead of the non relevant data "Australia East" in this screen shot
What I do not want is the "," and "Australia East" to be displayed if one of the 4 columns mentioned above is blank.
Thanks, always, for your help.
-
Hi @TSmelser
I hope you're well and safe!
Try something like this.
=JOIN(COLLECT([Add Request Type]@row:[Entitlement]@row, [Add Request Type]@row:[Entitlement]@row, <>""), ",")
Did that work/help?
I hope that helps!
Be safe and have a fantastic week!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
Hi, That does eliminate the "," from the Column but it does not leave the cell in the Column blank
-
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
If you want to show blank cell only when any of the 4 column is empty please try the following:
=if(count([Add Request Type]@row:[Entitlement]@row<4,"",JOIN([Add Request Type]@row:[Entitlement]@row, ", ")))
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,
That one returns INCORRECT ARGUMENT SET
-
Hi Andre,
Great to hear from you. The formula you provide Makes my current result, ", Australia East, " into "Australia East". No Commas.
Cleaner, but still not what I need.
-
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
Hi Andre,
So, if one of the 4 criteria in the 4 cells I have included in my JOIN formula is blank, I would like the cell that contains the JOIN formula to be completely blank.
So, JOIN([COLUMN 1]@Row: [COLUMN 4]@Row) = COLUMN 1, Column 2, Column 3, Column 4 (assuming values are present in all 4 cells)
Should one of the cells in any of those columns be blank, the Cell in the JOIN Column should also be blank.
-
Try this one.
=IF(COUNTIF([Add Request Type]@row:Entitlement@row, "") > 0, "", JOIN(COLLECT([Add Request Type]@row:Entitlement@row, [Add Request Type]@row:Entitlement@row, <>""), ","))
Did that work?
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
I think this will work. Thank you!
-
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.5K Get Help
- 424 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 145 Just for fun
- 62 Community Job Board
- 465 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!