Johnny Thunder
Well-known Member
- Joined
- Apr 9, 2010
- Messages
- 693
- Office Version
- 2016
- Platform
- MacOS
Hello,
I am working on a VBA project to break-out a cell that has two names listed into unique individual lines. I will attach a screenshot to elaborate on this.
What I am trying to accomplish is to have a new row entry for each cell in Column A that has a "," followed by a new word.
So using the attached data for example Column A, Row 3 should result in 2 additional rows with all data duplicated and only include 1 of the 3 names from Cell C3 and remove the ",".
Hopefully I am explaining this well.
I am working on a VBA project to break-out a cell that has two names listed into unique individual lines. I will attach a screenshot to elaborate on this.
Excel 2012 | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | Unique Value | State | Column A | Column B | Column C | ||
2 | ABC3 | California | Test1 | Happy | Left | ||
3 | ABC4 | Texas | Test1, Test2, Test3 | Sad | Right | ||
4 | ABC5 | Ohio | Test2 | Tired | Right | ||
5 | ABC6 | North Carolina | Test3, Test4 | Happy | Right | ||
6 | ABC7 | Georgia | Test1 | Tired | Left | ||
7 | ABC8 | Washington | Test1 | Sad | Straight | ||
Sheet1 |
What I am trying to accomplish is to have a new row entry for each cell in Column A that has a "," followed by a new word.
So using the attached data for example Column A, Row 3 should result in 2 additional rows with all data duplicated and only include 1 of the 3 names from Cell C3 and remove the ",".
Hopefully I am explaining this well.