+ Reply to Thread
Results 1 to 4 of 4

macro to combine text and text/value in cell

  1. #1
    Registered User
    Join Date
    08-03-2012
    Location
    washington
    MS-Off Ver
    Excel 2007
    Posts
    3

    macro to combine text and text/value in cell

    In a new cell I want to be able to click one button and have any cells i select show up in the following format;

    "[data 1]" or like "[data 2]" or like "[data 3]"

    Im not sure how to make the quotation marks appear. It also needs to be for any amount of data from cells in one column. Any macro suggestions would be helpful!

    Example: If i select these 5 data points in one column

    10
    11f
    245366-b
    4
    11

    i need something like this to show up in another cell: "10" or like "11f" or like "245366-b" or like "4" or like "11"

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127

    Re: macro to combine text and text/value in cell

    Does this do the trick?

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-03-2012
    Location
    washington
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: macro to combine text and text/value in cell

    this works great! thanks!
    is there an easy way to get the

    or like

    off of the last number for the macro? i can always just delete it too.. so its not big deal.

  4. #4
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127

    Re: macro to combine text and text/value in cell

    I hadn't even noticed that. Try this modified code (you should never have to manual deletions! We're trying to save time here!!):

    Please Login or Register  to view this content.

+ 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