Forum Discussion
Conditional Formatting with formula
- Jul 30, 2025
depending on where you live / local setting you may need to use ; instead of , so it might be:
=AND(LEFT($A1;2)="2G"; $C1="KIMBERLEY")
as for 'hard coding' you can use a table on this or another sheet to help define the possible combinations and something like:
=AND(ISNUMBER(XMATCH(LEFT($A1;2); TABLE1[codes])); ISNUMBER(XMATCH($C1; TABLE1[cities])))
In general it works
- matthys6065Jul 30, 2025Copper Contributor
Then I do not know wrong. I tested other formulas and still nothing worked. Is there a setting or something that must be turned on or what?
- m_tarlerJul 30, 2025Bronze Contributor
depending on where you live / local setting you may need to use ; instead of , so it might be:
=AND(LEFT($A1;2)="2G"; $C1="KIMBERLEY")
as for 'hard coding' you can use a table on this or another sheet to help define the possible combinations and something like:
=AND(ISNUMBER(XMATCH(LEFT($A1;2); TABLE1[codes])); ISNUMBER(XMATCH($C1; TABLE1[cities])))
- matthys6065Jul 30, 2025Copper Contributor
Thank you. It was the ;
And thank you for the table suggestion, I will be using that.