如何获取 Google 表格中单元格的字体颜色?

How to get font color of cell in Google Sheets?

是否可以在 Google 表格中获取单元格的字体颜色?

我找到了一个使用 getBackground() 获取背景颜色的脚本。但是,我找不到文本颜色的任何内容。

是的,有一个函数叫做 getFontColor()

查看 google documentation 以获得更多与电子表格相关的参考。

获取此插件:https://chrome.google.com/webstore/detail/c

然后您可以使用简单的 IF 逻辑来获取颜色名称:

=IF(COUNTFONTCOLOR("A1", "A1")=1, "red")