+ Reply to Thread
Results 1 to 4 of 4

Merge text withing a given area into one cell

  1. #1
    Forum Contributor
    Join Date
    04-30-2010
    Location
    Denmark
    MS-Off Ver
    Office 365
    Posts
    215

    Merge text withing a given area into one cell

    Hello all

    Im wondering if there is an easy vba way to merge text withing a given area into one cell, with a specifiec delimiter. Pretty much the opposite of the Text to Columns function. Like the below example:
    MergeCells.png

    I need it to be generic, as there are only 3 columns in this example, but in my actual data I have more than 100 columns and thousands of rows in the given area.

    Really hoping someone have a solution for this and appreciate any help

    Best regards
    Imbizile
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Merge text withing a given area into one cell

    How about
    =TEXTJOIN(H$2,1,A2:E2)

  3. #3
    Forum Contributor
    Join Date
    04-30-2010
    Location
    Denmark
    MS-Off Ver
    Office 365
    Posts
    215

    Re: Merge text withing a given area into one cell

    That was just what I was looking for - thanks so much

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Merge text withing a given area into one cell

    You're welcome & thanks for the feedback.

+ 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. TEXT formatting withing single quote
    By Gajjo_Boss in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 12-18-2018, 08:53 AM
  2. TEXT formatting withing single quote
    By Gajjo_Boss in forum Excel General
    Replies: 0
    Last Post: 12-15-2018, 05:12 AM
  3. Find a string withing cell range and return cell number
    By visak in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-16-2015, 09:19 PM
  4. [SOLVED] How to sum variable cell range withing array?
    By Fibpie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-31-2014, 09:43 PM
  5. [SOLVED] Possible to search for a substring withing a string of text which is an exact match?
    By Urugmo88 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-07-2014, 04:09 AM
  6. If cell is active (text in cell) print area (A1:?52) Please see code I think I am Close
    By Jeff up North in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-18-2013, 06:27 PM
  7. Text box or Cell area updating
    By munkee in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-11-2009, 08:03 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