+ Reply to Thread
Results 1 to 2 of 2

Combining rows based on previous column duplicate data

  1. #1
    Registered User
    Join Date
    03-08-2024
    Location
    Romania
    MS-Off Ver
    2019
    Posts
    1

    Lightbulb Combining rows based on previous column duplicate data

    Hi,

    I'm a bit of an Excel noob, so I hope I'm able to express myself clearly.

    I'm working with a large dataset of TV show transcripts. Column A ('speaker') has the names of the characters, and column B ('line') has the lines they speak. Column A 'speaker' has duplicate values, while column B 'line' has unique values.

    I want to merge rows that have duplicate values in column A 'speaker', with the values in column B 'line' being combined in the order they appear with a space (' ') as the delimiter, but only if they are consecutive.

    To show what I mean, I've attached an Excel file with 'before' and 'after' sheets.

    As you can see, you have the duplicate values (e.g 'Leslie Knope') appearing again in column A if they follow another name, so they're not all merged together.

    Is there any way to do it automatically? Thanks so much!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Combining rows based on previous column duplicate data

    Welcome to the forum.

    Proposed solution.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. Removing rows based on duplicate data in one column
    By Jenish91 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-01-2023, 11:32 AM
  2. [SOLVED] use formulas or power query to add/duplicate linked rows with data based on column
    By loganpmgoa in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-14-2019, 01:46 PM
  3. Combining Duplicate Columns with the different data in their rows
    By cleefred in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-21-2013, 10:42 AM
  4. [SOLVED] Combining rows with both unique and duplicate data
    By CNFlora in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-22-2013, 05:09 PM
  5. Replies: 7
    Last Post: 10-12-2012, 10:26 PM
  6. Combining data in duplicate rows; Excel 2010
    By jpanside in forum Excel General
    Replies: 2
    Last Post: 01-25-2012, 09:28 AM
  7. Combining Rows With Duplicate Data
    By Jaricketts in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-08-2010, 01:21 PM

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