Get the value between the brackets

后端 未结 4 1753
感情败类
感情败类 2021-01-12 05:02

I have a column with some stuff that looks like the following string: V2397(+60)

How do I get the value between the brackets? In this case the +60

4条回答
  •  一生所求
    2021-01-12 05:39

    Use InStr to get the index of the open bracket character and of the close bracket character; then use Mid to retrieve the desired substring.

    Using InStr$ and Mid$ will perform better, if the parameters are not variants.

提交回复
热议问题