Microsoft KB Archive/107463

= Works 2.0: How to Parse Data in the Spreadsheet or Database =

Article ID: 107463

Article Last Modified on 9/25/2003

-

APPLIES TO


 * Microsoft Works 2.0 Standard Edition
 * Microsoft Works 2.0a

-



This article was previously published under Q107463



SUMMARY
To parse data in the Spreadsheet or Database module, you can copy the data into the Word Processor module and use the Replace command.



MORE INFORMATION
For example, let's assume you have a database that looks as follows   Name             Phone -

Mary Jones      (909)555-1111 Joe Smith       (909)555-1234 and you want it to look as follows:   Name          Area Code    Phone -   -

Mary Jones   909          555-1111 Joe Smith    909          555-1234 In this example, the parentheses will be removed from the area code and a tab will replace the right parenthesis. This will allow the area code to display as a positive number in a different column.

To modify this database to look like the second example:

 Open the spreadsheet or database in list view. Highlight the entire Phone column. From the Edit menu, choose Copy. From the Edit menu, choose Insert Row/Column (spreadsheet) or Record/Field (database). If you are in a database, choose Field Name from the Edit menu, type Area Code, and choose OK to name the field. From the File menu, choose Create New File, and then choose Word Processor. From the Edit menu, choose Paste. The phone numbers will appear in the new Word Processor document.</li> From the Select menu, choose Replace.

<ol style="list-style-type: lower-alpha;"> In the Find What box, type ( .</li> Do not select the Replace With box (it should be blank).</li> Choose the Replace or Replace All button. Choose OK when it is completely finished replacing the parenthesis.</li></ol>

IMPORTANT: Before performing the next step, make sure the cursor is at the beginning of the document.</li> From the Select menu, choose Replace.

<ol style="list-style-type: lower-alpha;"> In the Find What box, type ) .</li> In the Replace With box, type ^t . The ^t is the special character for a tab mark.</li> . Choose the Replace or Replace All button. Choose OK when it is completely finished replacing the parenthesis with a tab mark.</li></ol> </li> From the Select menu, choose All.</li> From the Edit menu, choose Copy.</li> Choose the name of the original spreadsheet or database file from the Window menu.</li> Place your cursor in the first cell of the Area Code column (inserted in step 4).</li> From the Edit menu, choose Paste. The phone numbers will now be separated into the new format as shown above.</li></ol>

<div class="references_section">