如何使用3个字符分离器创建单独的数字列?

发布于 2025-02-10 05:33:13 字数 478 浏览 0 评论 0原文

我正在尝试将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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

岁月蹉跎了容颜 2025-02-17 05:33:13

则可以使用这些公式

如果要删除空白,

装饰是可选的。 = 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)

Here is the example

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文