Is it possible to get the font color of a cell in Google Sheets?
I have found a script for getting the colour of the background using getBackground()
. However, I can't find anything for text colour.
Yes there is a function called getFontColor() .
Check the google documentation for more spreadsheet related references.
get this addon: https://chrome.google.com/webstore/detail/c
and then you can use easy IF
logic to get the color name:
=IF(COUNTFONTCOLOR("A1", "A1")=1, "red")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.