Excel 文本分割

发布于 2024-07-26 18:57:38 字数 688 浏览 1 评论 0原文

示例

Modified and self-produced (d)

Food packages (d,d,d,d,e,e,d,d,e,d,d)

Other country’s food labels (d)

Using food labels to choose foods for Healthy eating (d)

Measuring cups food models (d)

Food labelling exercise – custom (e) 

Food product promotional pamphlet (d)

It pays to read your grocery label (d)

Old food labels (d)

Self-produced worksheet to help students navigate through reading real packages (e,e)

Products from the kitchen (e)

Grocery store tour – reading labels on foods (d)

本质上我想将括号之间的文本拆分为单独的 Excel 条目。

改装自产|||| (d)

食品包装|||| (d,d,d,d,e,e,d,d,e,d,d)

其他国家的食品标签 |||| (d)

我该如何做这件事?

Sample

Modified and self-produced (d)

Food packages (d,d,d,d,e,e,d,d,e,d,d)

Other country’s food labels (d)

Using food labels to choose foods for Healthy eating (d)

Measuring cups food models (d)

Food labelling exercise – custom (e) 

Food product promotional pamphlet (d)

It pays to read your grocery label (d)

Old food labels (d)

Self-produced worksheet to help students navigate through reading real packages (e,e)

Products from the kitchen (e)

Grocery store tour – reading labels on foods (d)

Essentially I want to split the text between parentheses into separate Excel entries.

Modified and self-produced |||| (d)

Food packages |||| (d,d,d,d,e,e,d,d,e,d,d)

Other country’s food labels |||| (d)

How would I go about doing this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

南巷近海 2024-08-02 18:57:38

如果数据确实在括号中,您可以使用函数进行拆分

要获取括号中的内容,请在 A3 中使用(将数据放在 A1 中)

A3 =RIGHT(A1,LEN(A1)+1-FIND("(",A1,1))

然后您可以通过在 A2 中使用来获取剩下的内容

A2 =LEFT(A1,LEN(A1)-LEN(A3))

您可能还希望放置以下内容围绕公式清理多余的空白字符。

trim()

如果这不适合您,请告诉我。

If the data truly is in parentheses you can use a function to do the split

To get what's in the prarenthes, use in A3 (with your data in A1)

A3 =RIGHT(A1,LEN(A1)+1-FIND("(",A1,1))

Then you can get what's left by using in A2

A2 =LEFT(A1,LEN(A1)-LEN(A3))

You may also wish place the following around the formulas to clean up extra blank characters.

trim()

Let me know if this isn't working for you.

白况 2024-08-02 18:57:38

您是说您希望括号内的每个逗号分隔元素都位于单独的列上吗?

如果是这样,您可以执行以下操作:

  • 将数据粘贴到空白表中。
  • 将所有左括号和右括号替换为逗号。
  • 选择包含所有数据的列,然后选择数据/文本到列。
  • 选择“分隔”,然后选择“逗号”作为分隔符。

Are you saying that you want each comma-delimited element inside the parentheses to each be on a separate column?

If so, you can do this:

  • Paste the data into a blank sheet.
  • Replace all of the left- and right-parentheses with commas.
  • Select the column that has all the data, and then select Data / Text to Columns.
  • Select Delimited, then select Comma as the delimiter.
唯憾梦倾城 2024-08-02 18:57:38

另一种选择是使用数据 - 文本到列并在左括号上拆分。 但是,您将失去左括号,因此它可能不如公式那么好。

Another option is to use Data - Text to Column and split on the open paren. You will lose the open paren, however, so it may not be as good an option as the formula.

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