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

0
Last updated at Posted at 2025-08-18

項目検証プラグインで、テーブル内項目の重複チェックを行う方法です。
短い計算式で簡単に重複チェックを設定できます。

rex0220 項目検証プラグイン テーブルの重複チェックの更新版

概要

テーブル内の日付・区分・文字列の重複チェックを行います。
日付のエラーメッセージは、改行しないように短くしています。
空欄は、重複チェックの対象外とします。

2025-08-18_17h21_46.png

操作例

2025-08-18_17h29_20.gif

項目検証プラグイン設定

重複チェックする項目に、カスタムチェックを設定します。

2025-08-18_17h23_48.png

2025-08-18_17h24_20.png

2025-08-18_17h24_45.png

2025-08-18_17h25_12.png

// テーブル.日付 DATE
 //* custom check-1:
LET(val,日付,
  cnt,TARRAYIF(AND(val,val=日付),1),
  ARRAY_COUNT(cnt)>1
)
 //* message ja:
"重複"

// テーブル.区分 DROP_DOWN
 //* custom check-1:
LET(val,区分,
  cnt,TARRAYIF(AND(val,val=区分),1),
  ARRAY_COUNT(cnt)>1
)
 //* message ja:
"重複エラー: " & 区分

// テーブル.文字列 SINGLE_LINE_TEXT
 //* custom check-1:
LET(val,文字列,
  cnt,TARRAYIF(AND(val,val=文字列),1),
  ARRAY_COUNT(cnt)>1
)
 //* message ja:
"重複エラー: " & 文字列
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?