concatenate or merge cells for every change in a non-blank cell

natforde

New Member
Joined
Aug 26, 2021
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hi - first time poster here! any help greatly appreciated!
I am trying to use excel as a quick way to format a transcript and either concatenate or merge cells to aggregate comments by a speaker, please see below example of data and my first ideas at the logic of trying to resolve:
Column AColumn BColumn c = the output
nataliecomment 1
comment 2comment 1comment 2
othercomment 3
comment 4comment 3comment 4
nataliecomment 5comment 5
othercomment 6comment 6

herei thought i could try and make a colum (colum C) so that if cell a2 is not blank then concatenate from C2 to another cell reference (but here I need a reference for the cell up to the next non blank cell.)

Ideally i would like the final data to look like this:
Column AColumn c (merged for each cell where speaker is natalie)
nataliecomment 1comment 2
othercomment 3comment 4
nataliecomment 5
othercomment 6

does anyone have any suggestions please? happy with formulas or i could try and run VBA but its been a few years - maybe i need a loop in VBA?
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top