0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

rex0220 計算式プラグイン 文字列からテーブルセットその2

Posted at

計算式プラグインで、複数の文字列からテーブルに値をセットしてみます。

概要

複数の文字列項目にセットしたカンマ区切りの値からテーブル内項目に値をセットします。
"AA,BB,CC,DD" の文字列から、テーブルの区分Aに "AA","BB","CC","DD" をセット
"XX,YY,ZZ" の文字列から、テーブルの区分Bに "XX","YY","ZZ" をセット

2025-05-29_13h51_31.png

操作例

2025-05-29_13h56_18.gif

計算式プラグイン設定

テーブル入力Aとテーブル入力Bから文字列の配列を作成し、TABLE_DATA 関数でテーブルデータに組み立てます。

2025-05-29_13h52_14.png

OPTION: 

// テーブル SUBTABLE
LET(
  va, SPLIT(テーブル入力A,",",1),
  vb, SPLIT(テーブル入力B,",",1),
  rcount, MAX(ARRAY_COUNT(va),ARRAY_COUNT(vb)),
  TABLE_DATA(ARRAY_FOR(rcount, idx,
      DIC(
        "区分A", ARRAY_GET(va, idx),
        "区分B", ARRAY_GET(vb, idx)
      )
  ))
)

// テーブル.区分A SINGLE_LINE_TEXT
// テーブル.区分B SINGLE_LINE_TEXT
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?