ASPLIT

=ASPLIT(ar,d)

ar
required.column array
d
required.string or number delimiter

ASPLIT splits a column array by delimiter.

Xlambda

Well-known Member
Joined
Mar 8, 2021
Messages
860
Office Version
  1. 365
Platform
  1. Windows
ASPLIT splits a column array by delimiter, calls AUNQSRT. Proves the point of how simple a complicated task could be with the help of other lambda tools.
Excel Formula:
=LAMBDA(ar,d,
    LET(a,TRIM(ar),
        s,SEQUENCE(,MAX(LEN(a))),
        x,IFERROR(SEARCH(d,d&a,s),""),
        y,IFERROR(SEARCH(d,a&d,s),""),
        m,AUNQSRT(x,),n,AUNQSRT(y,),
        z,IFERROR(TRIM(MID(a,m,n-m)),""),
        IF(ISERROR(--z),z,--z)
    )
)
LAMBDA 5.0.xlsx
ABCDEFGHI
1r66, , -1.86,.73r66-1.860.73
2,a ,23, a , b23a23ab23
35,5,4,55545
4%, &5, 2,wow%&52wow
5
6r66-1.860.73
7a23ab23
85545
9%&52wow
10
11r66
12aab23
13
14%&5wow
15
16-1.860.73
1723
185545
192
20
21set↓in asc. order
22
232 -1.5 .6-1.50.62
24.are ,you ·good,you.are·good
25·are .you ,sure,sure.you·are
260 !% a0!%a
27
28
29dbl;transposewill;do;the trickdbltranspose
30willdothe trick
31
ASPLIT post
Cell Formulas
RangeFormula
D1:H4D1=ASPLIT(A1:A4,",")
D6:G9D6=AFILTER(D1#,,)
D11:F14D11=AFILTER(D1#,-1,)
D16:G19D16=AFILTER(D1#,1,)
D23:F26D23=AUNQSRT(ASPLIT(A23:A26," "),1)
D29:F30D29=ASPLIT(TRANSPOSE(A29:B29),";")
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,948
Messages
6,175,575
Members
452,652
Latest member
eduedu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top