从句子中提取前四个单词

时间:2014-10-30 21:58:59

标签: string excel excel-formula substring worksheet-function

给出一个句子,例如:

  

快速的棕色狐狸跳过懒狗

Excel公式会提取前四个单词?:

  

快速的棕色狐狸

1 个答案:

答案 0 :(得分:2)

请尝试:

=LEFT(SUBSTITUTE(A1," ","|",4),FIND("|",(SUBSTITUTE(A1," ","|",4)))-1)