Search code examples
regexgoogle-sheetsbooleanlogicmatch

Logic Test to fins the True or false for set format


I need to write a logic test to one of my tasks I need to get True only Have Number like XX.YYYY.

  • X - Need to be 8 (So then I need XX Only 88)
  • Y - Need to be 0 to 9 and Only Exception is first Y can be C like C123 or C987
  • Any Space also becomes False

Sample Sheet


Solution

  • use:

    =INDEX(REGEXMATCH(B8:B19&"", "^88\.[0-9Cc]\d{3}$"))
    

    enter image description here