Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get font color of cell in Google Sheets?

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.

like image 657
Solal Avatar asked Apr 26 '19 16:04

Solal


Video Answer


2 Answers

Yes there is a function called getFontColor().

Check the google documentation for more spreadsheet related references.

like image 82
S Ahmed Avatar answered Sep 28 '22 01:09

S Ahmed


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

like image 40
player0 Avatar answered Sep 28 '22 00:09

player0