错误:IFS期望位置0之后的所有参数成对出现

问题描述 投票:0回答:1

我试图根据A2的值引用一个单元格,但是当我使用以下代码时,出现#N / A错误。我的Google不是英语的,所以我不知道确切的翻译,但这是关于IFS函数,要求位置0之后的所有参数成对出现。

这是当前代码的样子。

=IFS(
$A2="[Greater Flask of the Vast Horizon]"; G2;
$A2="[Greater Flask of the Undertow]"; G3;
$A2="[Greater Flask of Endless Fathoms]"; G4;
$A2="[Greater Flask of the Currents]"; G5;
$A2="[Potion of Empowered Proximity]"; G6;
$A2="[Potion of Focused Resolve]"; G7;
$A2="[Superior Battle Potion of Intellect]"; G8;
$A2="[Superior Battle Potion of Agility]"; G9;
$A2="[Superior Battle Potion of Strength]"; G10;
$A2="[Superior Battle Potion of Stamina]"; G11;
$A2="[Potion of Unbridled Fury]"; G12;
$A2="[Superior Steelskin Potion]"; G13;
$A2="[Potion of Wild Mending]"; G14;
$A2="[Abyssal Healing Potion]"; G15;
)

我应该进行哪些更改以使其按预期工作?

google-sheets syntax google-sheets-formula ifs
1个回答
0
投票

G15之后删除逗号/分号:

=IFS(
 $A2="[Greater Flask of the Vast Horizon]"; G2;
 $A2="[Greater Flask of the Undertow]"; G3;
 $A2="[Greater Flask of Endless Fathoms]"; G4;
 $A2="[Greater Flask of the Currents]"; G5;
 $A2="[Potion of Empowered Proximity]"; G6;
 $A2="[Potion of Focused Resolve]"; G7;
 $A2="[Superior Battle Potion of Intellect]"; G8;
 $A2="[Superior Battle Potion of Agility]"; G9;
 $A2="[Superior Battle Potion of Strength]"; G10;
 $A2="[Superior Battle Potion of Stamina]"; G11;
 $A2="[Potion of Unbridled Fury]"; G12;
 $A2="[Superior Steelskin Potion]"; G13;
 $A2="[Potion of Wild Mending]"; G14;
 $A2="[Abyssal Healing Potion]"; G15)
© www.soinside.com 2019 - 2024. All rights reserved.