+ Reply to Thread
Results 1 to 6 of 6

Combined cells with comma and quotes

  1. #1
    Registered User
    Join Date
    01-30-2013
    Location
    isentcom emperor
    MS-Off Ver
    Excel 2013
    Posts
    25

    Question Combined cells with comma and quotes

    How would I write my formula to combine text from consective cells into one cell but have quotes around every phrase/text in a cell and a comma. example "blahblah", "blah", "Blahblahblah". Essentially what i am trying to do is create a CSV file from my excel sheet so i can import it into 1Password.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,118

    Re: Combined cells with comma and quotes

    assuming data in cell A1, B1 and C1
    and you wanted to combine into D1

    =CHAR(34)&A1&CHAR(34)&","&CHAR(34)&B1&CHAR(34)&","&CHAR(34)&C1&CHAR(34)
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    01-30-2013
    Location
    isentcom emperor
    MS-Off Ver
    Excel 2013
    Posts
    25

    Re: Combined cells with comma and quotes

    what does the 34 refer to ? and do i put double "==" in front of the formula?

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,118

    Re: Combined cells with comma and quotes

    char(34) is an inverted comma "

    == no my poor typing
    see edit

  5. #5
    Registered User
    Join Date
    01-30-2013
    Location
    isentcom emperor
    MS-Off Ver
    Excel 2013
    Posts
    25

    Re: Combined cells with comma and quotes

    And how would I add and a space between the phrases in quotes? "blah", "blahblah"

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,118

    Re: Combined cells with comma and quotes

    just add the space after the comma before the "

    =CHAR(34)&A1&CHAR(34)&", "&CHAR(34)&B1&CHAR(34)&", "&CHAR(34)&C1&CHAR(34)

+ 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. Formula that inserts quotes before and after comma in a string
    By jaime81 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-11-2014, 05:57 PM
  2. [SOLVED] Double Quotes using Chr(34) and Extra Quotes when saving as text file
    By vamosj in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-26-2013, 12:26 PM
  3. field with a comma in quotes when save as text file
    By ngartshore in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-06-2012, 09:11 AM
  4. [SOLVED] Timesheet need comma at end with no quotes
    By patsyhixon in forum Excel General
    Replies: 1
    Last Post: 05-31-2012, 05:17 PM
  5. Remove text between quotes, variable length and number of quotes
    By JP Romano in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-14-2011, 10:40 AM
  6. Setting a cell's value as a formula containing quotes or double quotes using vba
    By Metshrine in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-09-2006, 04:10 AM
  7. Replies: 3
    Last Post: 10-28-2005, 12:05 PM

Tags for this Thread

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