+ Reply to Thread
Results 1 to 5 of 5

Concatenate cells and add text

  1. #1
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,177

    Concatenate cells and add text

    I cant quite get this, I have 4 cells in one row (a selection and can be any row), I need to string the values together and add some simple text.
    Example:
    Assume row 1 and columns A, B, C, D.

    496 | 6d7 | Minor | Ø.375 +/-.010
    What I need this to read as one long string:
    #496, 6d7, Minor, Ø.375 +/-.010
    Adding the text in Red.

    Column A may be a single digit or up to 10 digits in length.
    Once the string is configured I want to copy it and manually paste in another application. If the string is placed any where else in the worksheet for formatting, it can be deleted after the copy/paste or macro end.

    As always, help is appreciated.
    Last edited by Rick_Stanich; 02-10-2009 at 01:54 PM.
    Regards

    Rick
    Win10, Office 365

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Concatenate cells and add text

    Hello Rick,

    This macro will take the active cell and the next three cells to right of it and add the "#,,," text in red, to the cell below the active cell. Using your example, if you select A1 then the macro will concatenate B1, C1, and D1, add the text, color it, and save the result in A2. You can change the macro to save it anywhere you like.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,177

    Re: Concatenate cells and add text

    Thank you Leith, this should get me going just fine

  4. #4
    Registered User
    Join Date
    05-06-2007
    Posts
    29

    Smile Re: Concatenate cells and add text

    Rick
    You can do this without using macro also.
    just put this forumula in D1

    Please Login or Register  to view this content.
    and this formula will result into required ans you are looking for

    Suhas
    Last edited by Leith Ross; 02-10-2009 at 06:12 PM. Reason: Added Code Tags

  5. #5
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,177

    Re: Concatenate cells and add text

    Thank you Suhas

+ 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