如何在 Google 表格中自动将一行拆分为不同的行?
How to automatically split one row into different rows in Google Sheets?
我正在尝试根据其内容将 Google 工作表中的一行拆分为不同的行。这是一个例子:
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
如何使用脚本或任何其他工具执行此操作?
=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 工作表中的一行拆分为不同的行。这是一个例子:
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
如何使用脚本或任何其他工具执行此操作?
=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), "♥")), "♦")))