简体   繁体   中英

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

I would like to Print 'time' by skipping 'stop'. Any Excel Formula to achieve this ask.

More examples:
Iam@here@for@the@first@time@stop -> time
Iam@here@stop -> here
Iam@here@for@the@stop -> the
Iam@here@for@the@first@stop -> first

Thanks in adv. Alax

If you have it, you can use

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

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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