Forum Discussion

matthys6065's avatar
matthys6065
Copper Contributor
Jul 29, 2025
Solved

Conditional Formatting with formula

Hi, I hope everyone is doing well. =AND(LEFT($A1,2)="2G", $C1="KIMBERLEY") Can someone please help me with this formula, it keeps giving me an error and I do not know whats wrong with it. I want t...
  • m_tarler's avatar
    m_tarler
    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])))

Resources