1

I have a sheet where I need to split the numbers and text on single cell to 2 columns

https://docs.google.com/spreadsheets/d/1ZaQmWCx2PH6Fhn3RVW9PKpnTv0ML9zAHWzmk3789b04/copy

Please note the data is in single cell and I need to split in 2 columns as shown in the image

enter image description here

The expected outout is

enter image description here

I have tried with =REGEXREPLACE(A796,"[0-9]","")

1
  • Left() and right(), or mid() using find() for the first space. Commented Jun 13, 2021 at 6:44

2 Answers 2

1

You may use 2 formula in 2 different cells for this:

Formula #1:

=REGEXREPLACE(A4,"[[:blank:]].*","")

This finds first space and removes everything after that so that we have only starting numbers left in the result.

Formula #1:

=REGEXREPLACE(A4,"[0-9]+[[:blank:]]+","")

This matches starting 1+ digits followed by 1+ whitespace and removes it so that we only have text after starting numbers.

Sheet Demo

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

0

You can also try- B2

=TEXTJOIN(CHAR(10),False,INDEX(ArrayFormula(SPLIT(SUBSTITUTE(TRANSPOSE(SPLIT(A2,CHAR(10)))," ","@",1),"@")),,1))

C2=

=TEXTJOIN(CHAR(10),False,INDEX(ArrayFormula(SPLIT(SUBSTITUTE(TRANSPOSE(SPLIT(A2,CHAR(10)))," ","@",1),"@")),,2))

enter image description here

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.