0

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.

1
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:

1
  • 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. – marikamitsos Jan 6 at 19:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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