+ Reply to Thread
Results 1 to 7 of 7

Formala or custom formatting to insert doube quotation

  1. #1
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,712

    Formala or custom formatting to insert doube quotation

    I have used textjoin to combine text in one cell seperated by a comma


    I would like to know how to insert a quote at the start of each text item and before each comma and after the last text item

    I have used textjoin in C2 and have manually inserted double quotation marks manually in C3 to show you what I am trying to achieve -However if I have 20 + sheets, it is time consuming to do this manually



    Your assistance is most appreciated

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Formala or custom formatting to insert doube quotation

    Please try

    =TEXTJOIN(",",,""""&B2:B4&"""")

  3. #3
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,712

    Re: Formala or custom formatting to insert doube quotation

    Thanks for the help, but it only puts double quotation marks for items in B4

    The desired results are in C3. Please amend formula accordingly

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Formala or custom formatting to insert doube quotation

    Pleasde try

    =""""&TEXTJOIN(""",""",,B2:B8)&""""
    Last edited by Bo_Ry; 04-09-2020 at 03:55 AM.

  5. #5
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,712

    Re: Formala or custom formatting to insert doube quotation

    Thanks for the help. Formula works perfectly now


    What does the , after the ) represent (have put it in red ) ?

    Also what is the significance of index in this formula ?

    Please Login or Register  to view this content.
    Last edited by Howardc1001; 04-09-2020 at 04:02 AM.

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Formala or custom formatting to insert doube quotation

    I recommend to use
    =""""&TEXTJOIN(""",""",,B2:B8)&""""

    the =TEXTJOIN(",",,REPT(""""&B2:B8&"""",B2:B8<>""))
    The red part is array formula you need to Press Ctrl+Shift+Enter

    =TEXTJOIN(",",,INDEX(REPT(""""&B2:B8&"""",B2:B8<>""),))
    The ,) if for INDEX that require 2nd argument.
    Index can handle array formula, that help to use Normal Enter.

  7. #7
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,712

    Re: Formala or custom formatting to insert doube quotation

    Thanks for the explanation

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Using VBA to insert a formula which contains quotation marks
    By ChemistB in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 02-28-2017, 05:32 PM
  2. Need Macro to FIND TEXT & Insert quotation marks
    By Chrisbou in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-13-2015, 06:05 PM
  3. [SOLVED] Use formala only if...
    By JennOlsen in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-23-2013, 06:00 PM
  4. need a formala
    By zouraiz in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 10-06-2013, 02:40 PM
  5. Replies: 3
    Last Post: 07-29-2013, 08:55 AM
  6. Replies: 7
    Last Post: 03-13-2013, 04:07 PM
  7. [SOLVED] Formala
    By sdmccabe in forum Excel General
    Replies: 2
    Last Post: 05-05-2006, 03:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1