You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Excel公式需求:按Col1唯一值校验Col2重复与Col3唯一性规则

Formula Logic Requirement & Test Data

Let’s start by clarifying the core rule we need to implement, then organize your test data into a clean, readable format.

Core Logic

For each unique value in Col1 (which maps to the Bill column in your dataset):

If Col2 (the Ref column) contains duplicate values within the Col1 group, then Col3 (the Ref2 column) should not be unique (meaning duplicates in Col3 are acceptable/expected in this scenario).

Test Data

Here’s your test data structured into a Markdown table for clarity (note: the duplicate Form column is preserved as provided):

BillRefRef2HelpTextFormFormExcptnsExpected Output
123557123Scenario111FALSEFALSE
123589123-1Scenario111FALSEFALSE
123591123-2Scenario121TRUEFALSE
123591123-3Scenario221TRUETRUE
124432124Scenario111FALSEFALSE
124433..................

Quick Scenario Notes

  • Scenario1 (Bill=123, Ref=557/589): These Ref values are unique in the group, so Ref2 must stay unique. The expected FALSE output confirms no rule violation here.
  • Scenario1/2 (Bill=123, Ref=591): This Ref is duplicated. The third row’s Ref2 is still unique in the duplicate Ref subgroup, hence the expected FALSE (violation). The fourth row’s Ref2 pairs with the third to create a non-unique set in the subgroup, so expected TRUE (compliance).

内容的提问来源于stack exchange,提问作者Ansh

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.26 08:40:36