7

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.

2 Answers 2

6

Yes there is a function called getFontColor().

Check the google documentation for more spreadsheet related references.

2

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")

00

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.