假设用户在任何一个excel单元格中一一输入1.234.567,89
或1,234,567.89
或1 234 567,89
,在上述所有情况下,用户应在输出中获得1234567,89
单元格。
答案 0 :(得分:2)
Excel
尝试使用自定义格式的TEXT()
:
=TEXT(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,",",""),".","")," ",""),"[>=100]#\,#0;#")
Google电子表格
尝试使用REGEXREPLACE()
:
=TEXT(REGEXREPLACE(TEXT(A1,"@"),"[ ,.]",""),"[>=100]#\,#0;#")
答案 1 :(得分:0)