Ordening tekstcells into the right kolom

Copper Contributor

Hello,

 

Im trying to automate ordering my excel sheet based on the text in the cell. 

For example,

 

Daan123_0-1676637364736.png

 

All the cells are placed in the wrong kolom. What I want is that the cells are placed (automatically) in the correct kolom like this: 

 

Daan123_1-1676637614530.png

 

How can i manage this? (it seems so easy :) )

Thanks!

 

 

3 Replies

@Daan123 That's not easy at all. How would Excel know what's a name, a color or a fruit? In which group would you put "Orange", for instance?

 

 

@Riny_van_Eekelen Valid point. And if the cells where fixed? For example, when the "Colour" column can only be blue and red and the "Name" column can only be Ben and Luke? 

 

From this:

Daan123_0-1676641375532.png

 

To this:

Daan123_1-1676641467703.png

 or maybe

Daan123_3-1676641596872.png

 

@Daan123 Then I would use Power Query. Attached is a quick-and-dirty solution.