[英]Apply an 'if' statement to an entire column
I have the following IF statements in a cell that I want to apply to the entire column, rather than each Google Sheets cell.我在一个单元格中有以下 IF 语句,我想将其应用于整个列,而不是每个 Google 表格单元格。 Right now I am copying and pasting the same code to each cell.
现在我正在将相同的代码复制并粘贴到每个单元格。 How do I apply to this my 'I' column so that any cell in that column has this logic?
我如何应用到我的“我”列,以便该列中的任何单元格都具有此逻辑? I'm sure there's easier ways of doing this but I'm not good with spreadsheets.
我敢肯定有更简单的方法可以做到这一点,但我不擅长电子表格。
=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", ""))))))))))))
I am not sure if you have gotten the solution that you require but it would be good to have shared the data you need help with.我不确定您是否已获得所需的解决方案,但最好能共享您需要帮助的数据。 I know that if it is the same function for an entire column, you can apply it to the first cell and then click and drag to apply to the remaining - click and drag to apply a copy across a group of cells.
我知道如果整列都是相同的 function,您可以将其应用于第一个单元格,然后单击并拖动以应用于其余单元格 - 单击并拖动以在一组单元格中应用副本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.