Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cassandra/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 在excel中清除字符串_Regex_Excel_Spreadsheet - Fatal编程技术网

Regex 在excel中清除字符串

Regex 在excel中清除字符串,regex,excel,spreadsheet,Regex,Excel,Spreadsheet,我有以下字符串: CH0012337421_23.10.2002 CH0012337421_07.11.2002 CH0012337421_18.02.2003 CH0012337421_07.03.2003 CH0012337421_30.04.2003 CH0012337421_12.05.2003 US7750431022_19.05.2003 US7750431022_02.06.2003 我想删除之后包含的所有内容 有没有建议如何在excel中轻松解决该任务 我真的很感激你的回答 假

我有以下字符串:

CH0012337421_23.10.2002
CH0012337421_07.11.2002
CH0012337421_18.02.2003
CH0012337421_07.03.2003
CH0012337421_30.04.2003
CH0012337421_12.05.2003
US7750431022_19.05.2003
US7750431022_02.06.2003
我想删除
之后包含的所有内容

有没有建议如何在excel中轻松解决该任务


我真的很感激你的回答

假设所有字符串都包含下划线
,请使用以下公式:

=LEFT(A1,FIND("_",A1)-1)