Forum Discussion
aigr_pt
May 06, 2021Copper Contributor
how to create a function that uses two colour criteria to generate text
Hi! I need help creating a function that returns text by giving a combination of two colors. For example, if I pick two cells, one red and one green, I want to get BAD. If both cells are gree...
- May 06, 2021
What Sergei writes...
Let's say a cell is green if the value is >=5 and red if it is <5
You can use the formula
=IF(AND(cell1>=5, cell2>=5), "GOOD", "BAD")
HansVogelaar
May 06, 2021MVP
Are the colors set manually or are they the result of conditional formatting?
aigr_pt
May 06, 2021Copper Contributor
Hi there!
They resolt from condicional formatting
They resolt from condicional formatting
- HansVogelaarMay 06, 2021MVP
What Sergei writes...
Let's say a cell is green if the value is >=5 and red if it is <5
You can use the formula
=IF(AND(cell1>=5, cell2>=5), "GOOD", "BAD")
- aigr_ptMay 06, 2021Copper Contributorit doesn't work... 😞
- HansVogelaarMay 06, 2021MVP
- SergeiBaklanMay 06, 2021Diamond Contributor
If so you don't need VBA to pick-up colors, logic of conditional formatting could be used in formula.