textjoin help

Dan88

Active Member
Joined
Feb 14, 2008
Messages
275
Office Version
  1. 365
Platform
  1. Windows
hello, i have a working formula but would like to replace the qoutes "" with '.

i cant seem to get it to work if someone can please point me in right direction.

Currently it joins a list of IDs and delimits with comma and open and end quotation marks. I would like to replace the open and closed qoutation marks with '

thanks in advance

=IF(TEXTJOIN(""",""",TRUE,H10:H47)<>"",CHAR(34)&(TEXTJOIN(""",""",TRUE,H10:H47)&CHAR(34)),"")
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Thanks for that (y)
How about
Excel Formula:
=LET(a,TEXTJOIN("','",TRUE,H10:H47),IF(a="","","'"&a&"'"))
 
Upvote 1
Fluff, that worked. no way i wouldve figured that out.

As usual, thank you and thanks to those that contribute to this board. very much appreciated.

Thanks very much
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,206
Members
453,022
Latest member
RobertV1609

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