如何检索由特殊字符串分隔的单元格的最后一个字符串

How to retrieve last string of a cell delimited by a special string

如何从 Google 文档中的以下行(单元格)中获取 Value 1Value 2Value 3

XYZ1 --> XYZ2 --> Value 1                   
XYZ3 --> XYZ4 --> XYZ5 --> Value 2          
XYZ6 --> Value 3                            

如果您的示例值在 A 列中,此公式是否如您所愿:

=ArrayFormula(IFERROR(RIGHT(A:A,LEN(A:A)-SEARCH("|",SUBSTITUTE(A:A,"-->","|",(LEN(A:A)-LEN(SUBSTITUTE(A:A,"-->","")))/LEN("-->")))-LEN("-->"))))