套用一个“如果”语句的整列

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

我有以下IF在单元格中的语句,我想应用到整个列,而不是谷歌的每个细胞表。现在我复制和粘贴相同的代码到每个细胞。如何适用于本我的“我”列,以便该列中的任意单元格有这样的逻辑?我敢肯定有这样做的更简单的方法,但我不擅长用电子表格。

=IF(G:G = "Wipeout", "187.50",
IF(G:G = "Glass Beach", "197.50",
IF(G:G = "Lifeguard Stand 2", "187.50",
IF(G:G = "Misty Bike", "187.50",
IF(G:G = "Sunset Surf", "187.50",
IF(G:G = "Grand Waves", "187.50",
IF(G:G = "Flight", "187.50",
IF(G:G = "Foggy Beach", "187.50",
IF(G:G = "The Cold Shore", "187.50",
IF(G:G = "Palm Tree", "187.50",
IF(G:G = "Pelican", "417.50",
IF(G:G = "Lifeguard Stand", "187.50", ""))))))))))))
if-statement google-sheets array-formulas gs-vlookup
1个回答
1
投票

随着蓝色阵列的命名范围称为qazxsw POI,在第1行(我选择列):

_nr1

给我指示的结果:

=ArrayFormula(iferror(vlookup(G1:G,_nr1,2,),""))

© www.soinside.com 2019 - 2024. All rights reserved.