TEXTJOIN and CONCAT

anthx

New Member
Joined
Jun 2, 2024
Messages
5
Office Version
  1. 365
Hi, I have made an Excel function to return all matching results from a column and separate them by a bullet point and two return lines. Is there a way to update the Excel function to not include a bullet point if there is only one returned value from the TEXTJOIN? I know I have the CONCAT a bullet point at the start of the function which would need to be moved, but I can't figure out how to update/order the function to accomplish this, if possible.

I've included a screenshot of my workbook and pasted the current function from the screenshot here. Any help is appreciated.
Excel Formula:
=CONCAT(CHAR(149)&" ",TEXTJOIN(CHAR(10)&CHAR(10)&CHAR(149)&" ",TRUE,FILTER(I3:I7,G3:G7=L3,"#N/A")))
 

Attachments

  • Capture.PNG
    Capture.PNG
    35.1 KB · Views: 17

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
How about
Excel Formula:
=LET(a,FILTER(I3:I7,G3:G7=L3,"#N/A"),IF(ROWS(a)>1,CHAR(149)&" ","")&TEXTJOIN(CHAR(10)&CHAR(10)&CHAR(149)&" ",,a))
 
Upvote 1
Solution
How about
Excel Formula:
=LET(a,FILTER(I3:I7,G3:G7=L3,"#N/A"),IF(ROWS(a)>1,CHAR(149)&" ","")&TEXTJOIN(CHAR(10)&CHAR(10)&CHAR(149)&" ",,a))
Yes, this worked perfectly! Thank you for the quick answer and solution :)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,175
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top