For a certain table, I want to determine if the string "CCCC" is contained within elements of column C. Normally, I would expect to use Contains(:C, "CCCC").
然而,在這種情況下,C 列並非簡單的一列。我需要判斷當 C 列按 A 列和 B 列的值分組後,C 列中是否存在“CCCC”,並且需要逐行進行此檢查。
When I asked a generative AI, it suggested Group(:A,:B)&Contains(:C,"CCCC"), but this approach didn't work. Currently, I'm stuck with the following JSL script that didn't yield the desired result:
If(
Group(:A,:B)&Contains(:C,"CCCC"),1,
0
)
如果您能提供範例表格以及預期結果,通常會使提供協助更加快速方便。
我不確定這是否是您想要的(r 是結果列)。

Col Max(Contains(:Column 3, "CCCC") > 0, :Column 1, :Column 2)
第 1 列和第 2 列是分組列,第 3 列包含字串。
感謝您一直以來的支持。
問題已解決。
我為自己的固執感到後悔。我希望能夠從這個社群中汲取豐富的知識!非常感謝!