79. Filter Data That You Want to See
77 Import Data into a Calc Database 78 Sort Calc Database Data 75 Create a Calc Database 80 Compute Table Totals and Subtotals Databases can grow to be enormous. Without some way to filter the data, finding what you want is tedious. Calc's Find and Replace command works well enough to locate values that you want to find, but by being able to apply a filter to your database, you can actually hide data that does not currently interest you without removing that data from your database. When you're done with the filtered data, you can easily return to the full database view.Calc supports two kinds of filters, both of which are related:
- AutoFilter filters, where you specify values to filter by
- Standard dialog box filters, where you can specify a range of values to filter by
A Calc database filter where you select from a list of values to filter by and view.60 Format Cells ; for more information on deleting cells, see 64 Edit Cell Data .
1. | Request a Standard Filter Once you define your data range, you can request a filter by selecting Data, Filter, Standard Filter . Calc displays the Standard Filter dialog box. |
2. | Specify the Filter Criteria Select from the Field Name dialog box. All the fields defined by the data range's column names will appear when you open the Field Name list box. Select a condition in the Condition list box, such as an equal sign or less-than sign, and then enter a quantity (you can also click the Value list box's down arrow to see a list of possible values) stating what you want to filter by. For example, if you enter UnitsPrice, <, and 9.99, you are requesting that you only want to see the products that are priced less than $9.99. [View full size image] ![]() |
3. | Remove the Filter To restore your data to its original state once you've viewed, printed, stored, or saved the filtered data, select Data, Filter, Remove Filter to remove the filter and return your complete data range to your spreadsheet. |
4. | Use the AutoFilter To use the AutoFilter feature, select Data, Filter, AutoFilter. Arrows appear to the right of each field name.When you click one of the field name arrows, a list of values opens to display all possible unique values in that field, with scrollbars if needed to display the entire list. When you select any value in that list, Calc immediately filters on that value, displaying only those records that match that criteria. For example, if you click the UnitsInStock field name arrow and select 12 , only the products with an inventory of 12 will appear in the list.Once you create the filter, you can print, sort, save, or copy the filtered data and return to the full database by selecting Data, Filter, AutoFilter once again to remove the check mark next to the command. |