如何在excel 2007中编写单元格以删除包含2个项目的单元格的第二项 [英] How do you prgram a cell in excel 2007 to remove the second item of a cell that contains 2 items

查看:76
本文介绍了如何在excel 2007中编写单元格以删除包含2个项目的单元格的第二项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何编写excel 2007中的单元格来删除包含2个项目的单元格的第二项。例如,一个单元格有Sylvester Stallone,你想删除Sylvester,只留下Stallone在单元格中。





谢谢

How do you program a cell in excel 2007 to remove the second item of a cell that contains 2 items.For instance, a cell has Sylvester Stallone, you want to remove Sylvester leaving just Stallone in the cell.


Thanks

推荐答案

假设Sylvester Stallone在Cell A1中,然后插入这个公式Cell B1:

Assuming "Sylvester Stallone" is in Cell A1, then insert this formula Cell B1:
=LEFT(A1,SEARCH(" ",A1,1)-1)



Cell B1将显示Sylvester



如果您不想在A1中看到Sylvester Stallone,则可以隐藏A列。


Cell B1 will display "Sylvester"

If you do not want to see "Sylvester Stallone" in A1, you can hide column A.


这篇关于如何在excel 2007中编写单元格以删除包含2个项目的单元格的第二项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆