For example, the cell contains
5.6
4
5years
6years
How can I make it so it will only keep the digits?
Expected output:
5.6
4
5
6
For example, the cell contains
5.6
4
5years
6years
How can I make it so it will only keep the digits?
Expected output:
5.6
4
5
6
I would use regular expressions for this task.
So for example use the transformation dialog via "Edit cells" => "Transform..." and the GREL Expression:
This will search for decimal like digits in the text and then concatenate (join) the resulting list (array) via whitespace.