Google News
logo
Google Sheets - Interview Questions
How do you filter and sort data in Google Sheets?
Filtering and sorting data in Google Sheets allows you to organize and analyze your data more effectively. Here's how to filter and sort data in Google Sheets:

Filtering Data :
* Select the range of cells containing your data.
* Go to the menu at the top of the screen and click on "Data" > "Create a filter."
* Small filter icons (downward-facing triangles) will appear in the header row of your data range.
* Click on the filter icon in the header of the column you want to filter. A dropdown menu will appear.
* In the dropdown menu, you can:
* Use checkboxes to select specific values to include or exclude.
* Use the "Filter by condition" option to apply custom filter criteria, such as greater than, less than, contains, etc.
* Use the search box to quickly filter for specific values.
* Sort the filtered data if needed.
* Once you've set your filter criteria, click "OK" to apply the filter. Only the rows that meet the specified criteria will be displayed.

Sorting Data :
* Select the range of cells containing your data.
* Go to the menu at the top of the screen and click on "Data" > "Sort range."
* In the "Sort range" dialog box that appears, you can:
* Choose the column you want to sort by from the "Sort by" dropdown menu.
* Choose whether to sort the data in ascending or descending order using the "Sort order" dropdown menu.
* Optionally, select additional columns to sort by, in case of ties.
* Once you've selected your sorting criteria, click "Sort" to apply the sort. The data will be rearranged according to the specified criteria.
Advertisement