如何使用3个字符分离器创建单独的数字列?
我正在尝试将Excel中的数据列分开,其中第二列中的数字以下是“ - ”。数据看起来像这样:
Cabin-Fever - 28,315
CANBRICKYYJ - 11
Capstone - 170,049
CB Brick Builds - 41
CCX-Custom-Works - 53
使用公式“ = - mid(a1,find(“ - ”,a1)+3,len(a1))“我可以将数字移至第二列(谢谢,Scott!) ,但原始列保留了数字。我想从A列中删除破折号和数字,并且只有B中的数字。最终结果看起来像:
A B
Cabin-Fever 28,315
CANBRICKYYJ 11
Capstone 170,049
CB Brick Builds 41
CCX-Custom-Works 53
谢谢!
I am trying to separate a column of data in Excel, with the numbers following the " - " in a second column. The data looks like this:
Cabin-Fever - 28,315
CANBRICKYYJ - 11
Capstone - 170,049
CB Brick Builds - 41
CCX-Custom-Works - 53
Using the formula "=--MID(A1,FIND(" - ",A1)+3,LEN(A1))" I can move the numbers to a second column (thank you, Scott!), but the original column retains the numbers. I would like to remove the dash and numbers from column A, and have only the numbers in column B. The end result would look like:
A B
Cabin-Fever 28,315
CANBRICKYYJ 11
Capstone 170,049
CB Brick Builds 41
CCX-Custom-Works 53
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
则可以使用这些公式
如果要删除空白,
装饰是可选的。 = trim(左(a2,find(“ - ”,a2)-1))
= trim(右(a2,len(a2)-find(“ - ”,a2)-1)))
或
=左(a2,查找(“ - ”,a2)-1)
=右(a2,len(a2)-find(“ - ”,A2)-1)
You can use these formulas
trim is optional if there is empty spaces you want to remove.
=TRIM(LEFT(A2,FIND(" - ",A2)-1))
=TRIM(RIGHT(A2,LEN(A2)-FIND(" - ",A2)-1))
or
=LEFT(A2,FIND(" - ",A2)-1)
=RIGHT(A2,LEN(A2)-FIND(" - ",A2)-1)