Another way. Try array-entering this in B2 and fill down.
Formula:
=MID(A2,1,MATCH(TRUE,ISERROR(--MID(A2,ROW(INDIRECT("1:"&LEN(A2))),1)),0)-1)
If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
Then in C2 array-entered again.
Formula:
=RIGHT(A2,MATCH(TRUE,ISERROR(--MID(A2,1+LEN(A2)-ROW(INDIRECT("1:"&LEN(A2))),1)),0)-1)
|
A |
B |
C |
1 |
Data |
Left |
Right |
2 |
5 ---- 56 |
5 |
56 |
3 |
34 ----- 67 |
34 |
67 |
4 |
99 ----- 125 |
99 |
125 |
Bookmarks