+ Reply to Thread
Results 1 to 4 of 4

Joining text with some conditions

  1. #1
    Registered User
    Join Date
    05-06-2018
    Location
    Croatia
    MS-Off Ver
    Office 365
    Posts
    7

    Joining text with some conditions

    Hi, I have a problem with joining text - little bit complicated. Please take a look at attached file.

    Let's say there is Main data column which repeats same values, sometimes 3 sometimes 5,6 or more times. Each entry has its own subdata value.

    My goal is to join all subdata in one cell, depending on main data.

    I have tried with TEXTJOIN but I would need to adjust Main data range every single time (sometimes it is 3 cells, sometimes 5,6 or more).

    Any idea on how to automate it? At the end I need to merge and center it, it would be a big bonus if it could be automated too depending on number of main data cells.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    08-07-2019
    Location
    Bristol, England
    MS-Off Ver
    2011
    Posts
    4

    Re: Joining text with some conditions

    =concentate(A2,” “,A3,” “,A4)

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Joining text with some conditions

    Is this an approach you could use?

    After populating the formulae in columns E & F, then filtering for the value 1 in column E you have a list of the final sentences.

    Copy those and paste as values to somewhere for your final list.
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Contributor
    Join Date
    12-13-2013
    Location
    Calgary,AB,Canada
    MS-Off Ver
    2016,O365
    Posts
    236

    Re: Joining text with some conditions

    E2=IF(MATCH(A2,A:A,)=ROW(),TEXTJOIN(" ",,IF($A$2:$A$200=A2,$B$2:$B$200,"")),"") press control+shift+enter keys to 执行。 then copy down.

+ 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. [SOLVED] Joining text with conditions
    By KClem in forum Excel General
    Replies: 6
    Last Post: 06-10-2017, 02:01 PM
  2. joining text into one cell
    By justexcel-lent in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 4
    Last Post: 04-08-2014, 10:43 AM
  3. Joining Text at a specified point!
    By leapyleigh in forum Excel General
    Replies: 1
    Last Post: 05-12-2008, 08:52 PM
  4. Joining text in columns
    By yorkshirekid in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-23-2006, 02:18 PM
  5. Joining text strings
    By nh1234 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-27-2006, 05:11 PM
  6. Joining Text from two Cells into One
    By Juan in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-24-2006, 09:41 PM
  7. Joining Text in 2 Columns
    By inktec in forum Excel General
    Replies: 2
    Last Post: 01-25-2006, 08:40 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