The STYLE() function can be added to an existing formula in a cell. For example, together with the CURRENT function, you can colour a cell depending on its value. The formula =... + STYLE(IF(CURRENT() > 3; &quot; Red &quot; ; &quot; Green &quot; )) applies the cell style &quot; Red &quot; to cells if the value is greater than 3, otherwise the cell style &quot; Green &quot; is applied.
可以将 STYLE() 函数添加到单元格的现有公式中。例如，与 CURRENT 函数一起使用时，您可以根据其值来为单元格上色。对于公式 =...+STYLE(IF(CURRENT() > 3; &quot; Red &quot; ; &quot; Green &quot; ))，如果值大于 3，则为单元格应用单元格样式“红色”，否则将应用单元格样式“绿色”。