简体   繁体   中英

Excel - Delimiter: Text to columns grouped by value

I have the following column and I am trying to separate the texts into columns by value:

red
red, blue
blue, green
red, blue, green
blue
green

However, when I use the ordinary text to column function I get the following:

red
red     blue
blue    green
red     blue     green
blue
green

I would like the text to be separated into columns and grouped by value:

red
red     blue
        blue     green
red     blue     green
        blue
                 green

Is there a way I can do this?

Thanks!

You can do it by creating a condition check for each text and then using if statement on the condition check.

Please find the solution to your sample problem:

解决方案

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM