我正在尝试使用计算字段返回“整体可能性”字段中的值。总体似然字段返回的值取决于“发生可能性”和“不利影响的可能性”字段中选择的值。这些值由用户根据应该计算“总体可能性”字段来选择。 下面的公式得到验证,但不会返回任何值。逻辑运算符的结构方式是否存在问题?请指教;
IF(
OR(
AND(
[Likelihood of Occurrence]=VALUEOF([Likelihood of Occurrence],"Almost Certain"),
[Likelihood of Adverse Impacts]=VALUEOF([Likelihood of Adverse Impacts],"Rare")
),
AND(
[Likelihood of Occurrence]=VALUEOF([Likelihood of Occurrence],"Likely"),
[Likelihood of Adverse Impacts]=VALUEOF([Likelihood of Adverse Impacts],"Rare")
),
AND(
[Likelihood of Occurrence]=VALUEOF([Likelihood of Occurrence],"Likely"),
[Likelihood of Adverse Impacts]=VALUEOF([Likelihood of Adverse Impacts],"Unlikely")
),
AND(
[Likelihood of Occurrence]=VALUEOF([Likelihood of Occurrence],"Possible"),
[Likelihood of Adverse Impacts]=VALUEOF([Likelihood of Adverse Impacts],"Unlikely")
),
AND (
[Likelihood of Occurrence]=VALUEOF([Likelihood of Occurrence],"Possible"),
[Likelihood of Adverse Impacts]=VALUEOF([Likelihood of Adverse Impacts],"Possible")
),
AND(
[Likelihood of Occurrence]=VALUEOF([Likelihood of Occurrence],"Unlikely"),
[Likelihood of Adverse Impacts]=VALUEOF([Likelihood of Adverse Impacts],"Likely")
),
AND(
[Likelihood of Occurrence]=VALUEOF([Likelihood of Occurrence],"Unlikely"),
[Likelihood of Adverse Impacts]=VALUEOF([Likelihood of Adverse Impacts],"Possible")
),
AND(
[Likelihood of Occurrence]=VALUEOF([Likelihood of Occurrence],"Rare"),
[Likelihood of Adverse Impacts]=VALUEOF([Likelihood of Adverse Impacts],"Likely")
),
AND(
[Likelihood of Occurrence]=VALUEOF([Likelihood of Occurrence],"Rare"),
[Likelihood of Adverse Impacts]=VALUEOF([Likelihood of Adverse Impacts],"Almost Certain")
)),
[Overall Likelihood]=VALUEOF([Overall Likelihood],"Possible"),
IF(
OR(
AND(
[Likelihood of Occurrence]=VALUEOF([Likelihood of Occurrence],"Almost Certain"),
[Likelihood of Adverse Impacts]=VALUEOF([Likelihood of Adverse Impacts],"Unlikely")
),
AND(
[Likelihood of Occurrence]=VALUEOF([Likelihood of Occurrence],"Almost Certain"),
[Likelihood of Adverse Impacts]=VALUEOF([Likelihood of Adverse Impacts],"Possible")
),
AND(
[Likelihood of Occurrence]=VALUEOF([Likelihood of Occurrence],"Likely"),
[Likelihood of Adverse Impacts]=VALUEOF([Likelihood of Adverse Impacts],"Possible")
),
AND(
[Likelihood of Occurrence]=VALUEOF([Likelihood of Occurrence],"Likely"),
[Likelihood of Adverse Impacts]=VALUEOF([Likelihood of Adverse Impacts],"Likely")
),
AND(
[Likelihood of Occurrence]=VALUEOF([Likelihood of Occurrence],"Possible"),
[Likelihood of Adverse Impacts]=VALUEOF([Likelihood of Adverse Impacts],"Likely")
),
AND (
[Likelihood of Occurrence]=VALUEOF([Likelihood of Occurrence],"Possible"),
[Likelihood of Adverse Impacts]=VALUEOF([Likelihood of Adverse Impacts],"Almost Certain")
),
AND(
[Likelihood of Occurrence]=VALUEOF([Likelihood of Occurrence],"Unlikely"),
[Likelihood of Adverse Impacts]=VALUEOF([Likelihood of Adverse Impacts],"Almost Certain")
)),
[Overall Likelihood]=VALUEOF([Overall Likelihood],"Likely"),
IF(
OR(
AND(
[Likelihood of Occurrence]=VALUEOF([Likelihood of Occurrence],"Almost Certain"),
[Likelihood of Adverse Impacts]=VALUEOF([Likelihood of Adverse Impacts],"Likely")
),
AND(
[Likelihood of Occurrence]=VALUEOF([Likelihood of Occurrence],"Almost Certain"),
[Likelihood of Adverse Impacts]=VALUEOF([Likelihood of Adverse Impacts],"Almost Certain")
),
AND(
[Likelihood of Occurrence]=VALUEOF([Likelihood of Occurrence],"Likely"),
[Likelihood of Adverse Impacts]=VALUEOF([Likelihood of Adverse Impacts],"Almost Certain")
)),
[Overall Likelihood]=VALUEOF([Overall Likelihood],"Almost Certain"),
IF(
OR(
AND(
[Likelihood of Occurrence]=VALUEOF([Likelihood of Occurrence],"Possible"),
[Likelihood of Adverse Impacts]=VALUEOF([Likelihood of Adverse Impacts],"Rare")
),
AND(
[Likelihood of Occurrence]=VALUEOF([Likelihood of Occurrence],"Unlikely"),
[Likelihood of Adverse Impacts]=VALUEOF([Likelihood of Adverse Impacts],"Unlikely")
),
AND(
[Likelihood of Occurrence]=VALUEOF([Likelihood of Occurrence],"Rare"),
[Likelihood of Adverse Impacts]=VALUEOF([Likelihood of Adverse Impacts],"Possible")
)),
[Overall Likelihood]=VALUEOF([Overall Likelihood],"Unlikely"),
IF(
OR(
AND(
[Likelihood of Occurrence]=VALUEOF([Likelihood of Occurrence],"Unlikely"),
[Likelihood of Adverse Impacts]=VALUEOF([Likelihood of Adverse Impacts],"Rare")
),
AND(
[Likelihood of Occurrence]=VALUEOF([Likelihood of Occurrence],"Rare"),
[Likelihood of Adverse Impacts]=VALUEOF([Likelihood of Adverse Impacts],"Rare")
),
AND(
[Likelihood of Occurrence]=VALUEOF([Likelihood of Occurrence],"Rare"),
[Likelihood of Adverse Impacts]=VALUEOF([Likelihood of Adverse Impacts],"Unlikely")
)),
[Overall Likelihood]=VALUEOF([Overall Likelihood],"Rare")
)
)
)
)
)
答案 0 :(得分:1)
在值列表字段中设置值时,请使用:
VALUEOF([Overall Likelihood],"Possible")
而不是:
[Overall Likelihood]=VALUEOF([Overall Likelihood],"Possible")
希望这有帮助!