Virtual column subtract first 4 or 5 numbers and first space

Hi,

We have data in column [Ordre] that comes in two varieties. 4 numbers and space, and 5 numbers and space.

3234 Nasa academy 22

22456 Space force 11

Iโ€™d like to sort by โ€œNasa academy 22โ€ and โ€œSpace force 11โ€ with a virtual column.

Iโ€™ve tried for hours and managed to get it working somehow, but with a comma and space (", Nasa academy 22")

Split([Ordre],trim(text(index(SPLIT([Ordre]," โ€œ),1))&โ€ "))

There must be a cleaner way to do this. Any ideas?

Solved Solved
0 2 81
1 ACCEPTED SOLUTION

Please try

TRIM(RIGHT([Ordre],LEN([Ordre])-5))

View solution in original post

2 REPLIES 2

Please try

TRIM(RIGHT([Ordre],LEN([Ordre])-5))

Thank you so much Suvrutt! This works very good and is much more elegant.

EDIT: Iโ€™d also like to point out that much of my problems came from the fact that sorting does not update in browser unless you do a hard refresh.

Top Labels in this Space