Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Regex 删除“;和=+;来自谷歌表单中的单元格_Regex_Google Sheets_Google Sheets Formula_Array Formulas_Substitution - Fatal编程技术网

Regex 删除“;和=+;来自谷歌表单中的单元格

Regex 删除“;和=+;来自谷歌表单中的单元格,regex,google-sheets,google-sheets-formula,array-formulas,substitution,Regex,Google Sheets,Google Sheets Formula,Array Formulas,Substitution,我有像这样的细胞 "Apple" =+Organe +is +good "Mango" 我想删除所有字符,即=和“和+ 尝试了=替换(C3,“+”,“,1),但不起作用 我正在使用Google Sheets,如果您知道应该删除哪些字符以及删除多少字符,则无法使用Excel(在MAC中)使用嵌套替换。请确保输入单元格没有错误: =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,"="," "),"+"," "),"""","") 如果需要排除字母A到Z以及0到9之间的

我有像这样的细胞

"Apple"
=+Organe +is +good
"Mango"
我想删除所有字符,即
=
+

尝试了
=替换(C3,“+”,“,1)
,但不起作用


我正在使用Google Sheets,如果您知道应该删除哪些字符以及删除多少字符,则无法使用Excel(在MAC中)

使用嵌套替换。请确保输入单元格没有错误:

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,"="," "),"+"," "),"""","")

如果需要排除字母A到Z以及0到9之间的数字以外的任何内容,VBA+RegEx将起作用:

尝试:


或者,如果要使用
替换
,则:

=ARRAYFORMULA(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1:A, "=", ), "+", ), """", ))

它不需要像=+文章+写作+服务这样的字符串+dubai@user3415869-该选项在Excel中给出错误,将错误作为参数传递给函数不是一个好的做法。无论如何,请尝试VBA选项或编写字符串,如
'=+article+writing+services+dubai
,这不会是错误,也会起作用字符串开头出现
的原因。谢谢,我不使用excel,我应该标记google sheet vba。它有可能在google sheet vba上工作吗?@user3415869-从未尝试过google sheet vba。但是尝试一下,最坏的情况是它不会工作:D@user3415869-我想这不是你的幸运日。
=ARRAYFORMULA(REGEXREPLACE(A1:A, "[=\+""]", ))
=ARRAYFORMULA(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1:A, "=", ), "+", ), """", ))