Querying notebook databases
After creating a criteria table, setting up search formulas, queries, or wildcards, and creating search output cells, you can query notebook databases. For information about query preparation, see “Preparing queries for searching notebook databases.”
Using the query function, you can highlight specific records in a notebook database. You can also copy records from the notebook database to output cells on your spreadsheet. In addition, you can use search criteria to delete records from the notebook database.
To highlight specific records in a notebook database |
1.
|
|
Click Tools Data tools Notebook query.
|
2.
|
|
Select the database cells using the Range picker .
|
3.
|
|
Select the criteria table using the Range picker .
|
4.
|
|
Click Locate.
|
•
|
|
Pressing Esc returns you to the Notebook data query dialog box.
|
•
|
|
To select database cells in another open notebook, use standard linking syntax. For example, typing [DATA]A1..Z50 specifies cells A1..Z50 in the notebook called DATA.
|
To copy notebook database records to output cells |
1.
|
|
Click Tools Data tools Notebook query.
|
2.
|
|
Select the database cells using the Range picker .
|
3.
|
|
Select the criteria table using the Range picker .
|
4.
|
|
Select the row of the output cells which contains the field names using the Range picker .
|
5.
|
|
Click one of the following buttons:
|
•
|
Extract — copies all records matching the specified criteria to the output cells
|
•
|
Extract unique — copies only unique records matching the specified criteria to the output cells; duplicate entries are ignored
|
•
|
|
To select database cells in another open notebook, use standard linking syntax. For example, typing [DATA]A1..Z50 specifies cells A1..Z50 in the notebook called DATA.
|
To delete specific records from a notebook database |
1.
|
|
Click Tools Data tools Notebook query.
|
2.
|
|
Select the database cells using the Range picker .
|
3.
|
|
Select the criteria table using the Range picker .
|
4.
|
|
Click Delete.
|
•
|
|
Records below the deleted records move up to fill in the empty rows. Use caution when doing this unless you are certain you want to remove the records.
|
•
|
|
To select database cells in another open notebook, use standard linking syntax. For example, typing [DATA]A1..Z50 specifies cells A1..Z50 in the notebook called DATA.
|
•
|
|
Records that have been accidentally deleted can be restored using the Undo command.
|
•
|
|
You can use the delete function in conjunction with the highlight function, allowing you to see the records that match your search before they are deleted.
|