Search code examples
regexgoogle-sheetsfiltergoogle-sheets-formulaconditional-formatting

Filtering google sheets column to show cells ending with one of several values


I need to filter column A to see which cells end with values like .com/,.org/,.co.uk/, etc

Instead of filtering by "text ends with" dozens or hundreds of times, is there a way to combine all of these into one custom formula?


Solution

  • try this custom formula for:

    • filter view
    • conditional formatting
    • data validation

    =REGEXMATCH(A1, ".com/$|.org/$|.co.uk/$")
    

    0