Home > Mobile >  How to split a column with percentages and words
How to split a column with percentages and words

Time:09-13

I need to clean a column of data which contains the percentage coverage of different materials. I would like to split the columns into e.g. '30% water | 20% grass | 20% coarse', so that each percentage of a material is in a different column.

Is there a formula for achieving this? Possibly by adding spaces between the % and following words first?

Subset of the columns I wish to split into E.g. 30% water | 20% grass | 20% coarse dirt

CodePudding user response:

I managed it without difficult formula.

Just type some examples like i did in column C (2 or 3 examples) then mark all the cells and choose Flash Fill.

Do for each column.

Last column you can clean with this formula:

=IF(ISNUMBER(SEARCH("%";E3));E3;"")

enter image description here

CodePudding user response:

You could use Power Query, it just takes a few seconds...

enter image description here

enter image description here

enter image description here enter image description here

enter image description here

This you can copy and paste it where you want. Then you can delete the Query if you don't need it anymore, or you can update it when new values are added to your original table.

enter image description here

  • Related