如何在 Google 表格中自动将一行拆分为不同的行? [英] How to automatically split one row into different rows in Google Sheets?
本文介绍了如何在 Google 表格中自动将一行拆分为不同的行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试根据内容将 Google 表格中的一行拆分为不同的行.举个例子:
I'm trying to split one row in Google Sheets into different rows depending on its content. Here's an example:
Name | Ticker | Categories
Bitcoin | BTC | currency; store-of-value; trust layer; smart contracts; cross-industry
Ripple | XRP | currency; cross-industry
进入:
Name | Ticker | Categories
Bitcoin | BTC | currency
Bitcoin | BTC | store-of-value
Bitcoin | BTC | trust layer
Bitcoin | BTC | smart contracts
Bitcoin | BTC | cross industry
Ripple | XRP | currency
Ripple | XRP | cross-industry
如何使用脚本或任何其他工具执行此操作?
How can I do this using a script or any other tools?
推荐答案
=ARRAYFORMULA(TRIM(SPLIT(TRANSPOSE(SPLIT(QUERY(TRANSPOSE(QUERY(TRANSPOSE(
IF(IFERROR(SPLIT(C1:C, ";"))<>"", "♥"&A1:A&"♦"&B1:B&"♦"&
IFERROR(SPLIT(C1:C, ";")), )),,999^99)),,999^99), "♥")), "♦")))
这篇关于如何在 Google 表格中自动将一行拆分为不同的行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文