Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I filter my search in a column on google sheet which collects data from a form?

I would like to perform a multi criteria search of data in a column- contains data of check boxes(more than one option chosen).

For a clearer picture of what I am trying to do, screenshot below is a question in a form

enter image description here

Data from the form are saved in sheets like below,

enter image description here

So my concern here is if I would like to search/filter for the rows that contain "Commercial", the rows with Commercial,Engineering doesn't show up. That's definitely not an effective search.

Any advise on how can I go about this issue is kindly appreciated. If

like image 719
lily Avatar asked Mar 10 '15 08:03

lily


People also ask

How do I add a filter to one column in Google spreadsheet?

Here's how to filter your data in Google Sheets. To get started, highlight the cells in your sheet that you'd like to filter. Next click Data > Create a Filter, or click the Filter button in the toolbar. You will now see the filter icon in the top cell of every column in the cells you selected.

How do I search only one column in Google Sheets?

Google Sheet Searches We recommend using the Specific range search function in the “Find and Replace” menu if you need to search in specific columns, rows, fields, ranges, or a combination of the mentioned. For a simple search, just use the Ctrl+F shortcut.


1 Answers

Let's say you have your form in the response sheet in columns A to P, with the multiple choice in col D. If you want to filter your data on the word 'Commercial' you can either do:

=filter(A2:P, regexmatch(A2:P, "Commercial"))

or use query():

=query(A2:P, "select * where B contains 'Commercial' ")

Note: depending on your locale you may have to change the commas to semi-colons in order for the formulas to work.

I hope that helps ?

like image 148
JPV Avatar answered Oct 12 '22 14:10

JPV