GETONDELIMITER

=GETONDELIMITER(TextString,Delimiter,Number)

TextString
Required, TextString that will be split up.
Delimiter
Optional. Delimiter in double-quotes that will be used to split up the TextString. If omitted, the TextString remains unchanged.
Number
Optional. Sequence Number of the element to get. If omitted, all elements will be given (=same result as SplitOnDelimiter).

GETONDELIMITER: Get the nth element after splitting a text string on a delimiter. If the Number is omitted, all elements will be given.

GeertD

Board Regular
Joined
Dec 22, 2020
Messages
60
Office Version
  1. 365
Platform
  1. Windows
GETONDELIMITER: Get the nth element after splitting a text string on a delimiter. This is the LAMBDA-fied formula from EMT 1736 on the excelisfun YouTube channel.
Excel Formula:
=LAMBDA(TextString,Delimiter,nr,
   INDEX(FILTERXML("<a><b>"&SUBSTITUTE(TextString,Delimiter,"</b><b>")&"</b></a>","//b"),nr)
)
DXLR's LAMBDA.LET Library_v00.07.xlsb
ABCDEF
1The quick brown fox jumps over the lazy dog.Thequick
2quick
3brown
4fox
5jumps
6over
7the
8lazy
9dog.
10
Sandbox_Mr.Excel_2
Cell Formulas
RangeFormula
C1:C9C1=SplitOnDelimiter(A1," ")
E1E1=GetOnDelimiter(A1," ",2)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,461
Messages
6,124,955
Members
449,200
Latest member
indiansth

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