+ Reply to Thread
Results 1 to 5 of 5

help with concatenation formula

  1. #1
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    help with concatenation formula

    Hello. I see this formula for combining numbers in a cell ="("&B2&")"&C2 Two questions: 1) I never understand the purpose of & and the "". WHy Do I need two "" to start off this formula? Also, how can I add a space after the second parentheses?

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: help with concatenation formula

    Add a space after the second parentheses and before the quotation mark, that will give you the space you require. As for the Quotes, the first set tells it to place a () around the number, without it, you wont get the (). The second set tells it to put in the value of cell B2. If you don't have the second set of quotes, it will place &b2& in the () instead of the value.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: help with concatenation formula

    ="("&B2&")"&C2

    ( is text, and you need to wrap all text in "" when used in a formula - plus you are combining that with (potentially) a number in B2

    B1=50
    C2=days

    B
    C
    D
    2
    50
    Days (50)Days

    D2=="("&B2&")"&C2

    To add that space after the 2nd ) just include it inside the ""...
    ="("&B2&") "&C2
    B
    C
    D
    2
    50
    Days (50) Days
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    Re: help with concatenation formula

    Got it. Thanks.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: help with concatenation formula

    you are welcome, thanks for the rep

+ 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. passing a user value from an InputBox into a =concatenation formula as text
    By mcg7@ntrs.com in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-26-2010, 07:30 PM
  2. Formatting a Cell with concatenation Formula
    By cjconnor24 in forum Excel General
    Replies: 3
    Last Post: 01-23-2008, 07:51 AM
  3. Concatenation of a variable inside a formula
    By ksmith99 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-14-2006, 04:14 PM
  4. [SOLVED] formula to apply concatenation to successive rows of data
    By Devo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-24-2006, 12:45 PM
  5. [SOLVED] Converting concatenation formula to text
    By FrigidDigit in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-20-2005, 05:05 AM

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