简体   繁体   中英

Remove last character from first word in excel

I need to remove the last character from first word in excel.

For example I have the cell B1 with "Teas from Spain" and I need cell A1 to be "Tea from Spain".

Thank you

Use Replace:

=REPLACE(B1,FIND(" ",B1&" ")-1,1,"")

在此处输入图片说明

Try this in A1:

=LEFT(B1;FIND(" ";B1)-2)&MID(B1;FIND(" ";B1);999)

It should work like below:

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM