简体   繁体   English

从选定的 Ms Excel 单元格中查找最后出现的值

[英]Find last occurance of a Value from a selcted Ms Excel Cells

I have data like below with delimiter @我有如下带有分隔符@的数据

Iam@here@for@the@first@time@stop Iam@here@for@the@first@time@stop

I would like to Print 'time' by skipping 'stop'.我想通过跳过“停止”来打印“时间”。 Any Excel Formula to achieve this ask.任何 Excel 公式来实现这个要求。

More examples:更多示例:
Iam@here@for@the@first@time@stop -> time Iam@here@for@the@first@time@stop -> 时间
Iam@here@stop -> here Iam@here@stop -> 这里
Iam@here@for@the@stop -> the Iam@here@for@the@stop -> 的
Iam@here@for@the@first@stop -> first Iam@here@for@the@first@stop -> 首先

Thanks in adv.谢谢你的建议。 Alax阿拉克斯

If you have it, you can use如果你有它,你可以使用

=FILTERXML("<t><s>" & SUBSTITUTE(A20,"@","</s><s>") & "</s></t>","//s[last()-1]")

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM