标签: string excel excel-formula substring worksheet-function
给出一个句子,例如:
快速的棕色狐狸跳过懒狗
Excel公式会提取前四个单词?:
快速的棕色狐狸
答案 0 :(得分:2)
请尝试:
=LEFT(SUBSTITUTE(A1," ","|",4),FIND("|",(SUBSTITUTE(A1," ","|",4)))-1)