I've been searching for a way to change a cell value (e.g. "Text" if cell color is red) based on another cell color?
Is there a way to do this?
I know there's a way to change a cell color based on cell value, but I want the opposite way,
anyone have idea? be it a script or formula
There is something like this in Google appscript, not sure if any direct formula is also available in spreadsheet, but here it is:
I colored A1 cell of Sheet1 as Red i.e. #ff0000 and then got the color using the following code:
Output
So, you just have to check
if(color == "#ff0000")
(or code of any color you want) and then set values.EDIT
Here is the code that will fulfill your requirements. I have also added the comments so that you can develope it further.