Google sheets 错误:IFS要求位置0后的所有参数成对出现

Google sheets 错误:IFS要求位置0后的所有参数成对出现,google-sheets,syntax,google-sheets-formula,ifs,Google Sheets,Syntax,Google Sheets Formula,Ifs,我试图根据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

我试图根据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;
)

我应该更改什么以使其按预期工作?

删除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)

我没有意识到它会影响代码,但是删除它是有效的。非常感谢。