madhuchelliah
Board Regular
- Joined
- Nov 22, 2017
- Messages
- 226
- Office Version
- 2019
- Platform
- Windows
Hello Folks, Greetings for the day. I have repeated data in the A column. But the equivalent values in the C column is different. I want to combine all the data into single cell in the D column if the data is not repeated in A column then the same data should be retained from C column to D column. While combining the data should be separated by comma and a space (, ). Data in the D column is the expected result. Please go through the example below for more clarity. Thank you.
<tbody>
</tbody>
A | B | C | D |
1A | XXXXX, YYYYY | XXXXX, YYYYY, ZZZZ | |
1A | ZZZZZ | ||
1B | AAAAA | AAAAA | |
1C | BBBBB | BBBBB | |
5A | CCCCC | CCCCC, DDDDD | |
5A | DDDDD | ||
10 | EEEEE | EEEEE, FFFFF, GGGGG, HHHHH | |
10 | FFFFF | ||
10 | GGGGG | ||
10 | HHHHH | ||
15A | IIIII | IIIII | |
15B | JJJJJ | JJJJJ | |
20 | KKKK, LLLLL | KKKKK, LLLLL, MMMMM | |
20 | MMMM |
<tbody>
</tbody>