How to extract ad sizes from a string with excel regex

前端 未结 3 1012
野性不改
野性不改 2021-01-24 15:52

I am trying to extract ad sizes from string. The ad sizes are all set standard sizes. So while I\'d prefer to have a regex that looks for a pattern, IE 3 numbers followed by 2 o

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-24 16:32

    This formula could work if it's always 3 characters, then x, and it's always between underscores - adjust accordingly.

    =iferror(mid(A1,search("_???x*_",A1)+1,search("_",A1,search("_???x*_",A1)+1)-(search("_???x*_",A1)+1)),"No match")
    

提交回复
热议问题