I'm working with Google Sheet for healthcare purposes organizing patients lists and endorsement to team issues:

=filter('CASES LIST'!C:R,('CASES LIST'!Q:Q="admission")+('CASES LIST'!Q:Q="pending")+('CASES LIST'!Q:Q="PCI"))

Can I make it shorter like:

=filter('CASES LIST'!C:R,('CASES LIST'!Q:Q="admission"or"pending"or"pci"))

I want to filter the data if it contains either admission, pending or pci.

  • Welcome to Web Applications. Please add a brief description of your search/research efforts as is suggested in How to Ask.
    – Rubén
    Jan 6, 2021 at 2:27

1 Answer 1


Please use the following query formula (adjusting ranges to your needs), instead of the one you already use.

=QUERY({P1:R},"where Col2 matches 'admission|PCI|pending' ",0)

enter image description here

Functions used:

  • Have you tried the solution offered? Did it work for you? If not we should try finding out why. If yes, as per site guidelines when an answer addresses your question, you should accept it and maybe upvote it so others can benefit as well. Jan 6, 2021 at 19:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.