+ Reply to Thread
Results 1 to 7 of 7

Concatenate with "

  1. #1
    Registered User
    Join Date
    06-07-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010, Excel 2007
    Posts
    57

    Concatenate with "

    I have a value in cell A1 = LocationList(1, 2) , B1 = (555) 549-6131

    I tried CONCATINATE(A1,""",B1)

    AND GET THIS RESULT = LocationList(1, 2) ",B1,"

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Concatenate with "

    In Excel, a double quote " starts or ends a text string. If you want to inlude a double quote within a text string, you would start the text string, and then put in a double quote twice, and then end the text string with the double quote:
    =A1&""""&B1
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    06-07-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010, Excel 2007
    Posts
    57

    Re: Concatenate with "

    My result should be LocationList(1, 2)= "(555) 549-6131"

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Concatenate with "

    Alright, so here's what I imagine this setup looks like:
    A1 contains "LocationList(1, 2)"
    B1 contains "(555) 549-6131"

    LocationList(1, 2) (555) 549-6131

    So to get a result your stated result of: LocationList(1, 2)= "(555) 549-6131"
    The formula would be:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-07-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010, Excel 2007
    Posts
    57

    Re: Concatenate with "

    I got the same result with the phone number format stripped - LocationList(1,2) = "5555496131"

    I copy & paste your formula

  6. #6
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Concatenate with "

    excelaron,

    That just means you entered the phone number as a number without formatting in the cell, and then formatted the cell to display the desired format. You'll have to do the same in the formula using the Text() function:
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    06-07-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010, Excel 2007
    Posts
    57

    Re: Concatenate with "

    I twicked =A1&"= "&TEXT(B1,"(###) ###-###0")&""

    Works perfect, thank

    Can't copy and paste, I have different regions and many rows, before I had to do manually

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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