Home > Forum Home > Developing and Auditing Analytical Models > Concatenate Comments for Rows Above Each Record ID | Share |
Forum Topic | Post Reply Login |
Concatenate Comments For Rows Above Each Record Id | Rate this: (3/5 from 1 vote) |
Unfortunately my strengths do not lie in VBA for Excel. But I have a problem which needs resolving using a macro because this spreadsheet scenario happens often. I have three columns (Record ID, Comment, Results). The Results column is added to capture concatenation of the Comments column. Using VBA, I want to concatenate Comments for each Record ID in the Results column on the row for that Record Id where the rows above have no Record Id. This should happen for each row where a Record ID exists and continue for the length of the spreadsheet until it finds the last row with a Record ID and should stop after concatenating its results. Can anyone help? Record ID Comment Results I am a fish. 1 I am a dolphin. I am a fish.I am a dolphin. 2 I like gravy. I like gravy Blue sky. Red shirt. Green grass. 3 Yellow sun. Blue sky.Red shirt.Green grass.Yellow sun. Little pink 4 houses for you and me. Little pink houses for you and me. | ||
Michaniker | ||
Posted by Michaniker on |
Replies - Displaying 1 to 2 of 2 | Order Replies By: Most Recent | Chronological | Highest Rated |
Rate this: (3/5 from 1 vote) VBA Code:
Enjoy! | ||
Excel Business Forums Administrator | ||
Posted by Excel Helper on |
Rate this: (3/5 from 1 vote) | |
Michaniker | |
Posted by Michaniker on |
Displaying page 1 of 1 |
Find relevant Excel templates and add-ins for Concatenate Comments for Rows Above Each Record ID in the Excel Business Solutions Directory |