Locking or Unlocking Worksheet Cells

To prevent accidental changes to your data, you can lock worksheet cells. When you lock selected cells, you cannot make changes to them until you unlock them. When you lock cells, users can unlock the data and make changes unless you add password protection to the worksheet. For security or confidentiality reasons, you might want to hide formulas from view. If so, you can hide or unhide them using the Protection tab in the Format Cells dialog box.

Lock or Unlock Worksheet Cells

image In Excel, select the cell or range you want to lock or unlock.

image Click the Format menu, and then click Cell.

image Click the Protection tab.

image Select the Locked check box to lock the selection or clear it to unlock it.

image Click OK.

image

Hide or Show Formulas

image In Excel, select the cell or range with the formulas you want to hide or show.

image Click the Format menu, and then click Cell.

image Click the Protection tab.

image Select the Hidden check box to hide formulas or clear it to show formulas.

image Click OK.

image

Protecting Worksheets and Workbooks

To preserve all your hard work—particularly if others use your files—protect it with a password. You can protect a sheet or an entire document. In each case, you’ll be asked to supply a password, and then enter it again when you want to work on the file. Passwords are case sensitive, so be sure to supply your password as it was first entered. If you forget a password, there is no way to open the file, so it’s very important to remember or write down your password(s). Keep your password in a safe place. Avoid obvious passwords such as your name, your company, or your favorite pet.

Protect a Worksheet

image Click the Tools menu, point to Protection, and then click Protect Sheet.

image Select the check boxes for the options you want protected in the sheet.

image Type a password.

image Click OK.

image Retype the password.

image

image Click OK.

Share and Protect a Workbook

image Click the Tools menu, point to Protection, and then click Protect and Share Workbook.

image Select the Sharing with track changes check box.

image Type a password.

image Click OK.

image

image Retype the password.

image Click OK.

Protect a Workbook

image Click the Tools menu, point to Protection, and then click Protect Workbook.

image Select the check boxes for the options you want protected in the sheet.

  • Structure. Select the check box to prevent users from viewing, copying, moving, or inserting worksheets. It also prevents users from recording new macros, displaying data from PivotTable reports, using analysis tools, or creating scenario summary reports.

  • Windows. Select the check box to prevent users from moving, resizing, or closing windows.

image Type a password.

image Click OK.

image Retype the password.

image Click OK.

image
image

Sharing Workbooks

When you’re working with others in a networked environment, you may want to share workbooks you have created. You may also want to share the responsibilities of entering and maintaining data. Sharing means users can add columns and rows, enter data, and change formatting, while allowing you to review their changes. When sharing is enabled, “[Shared]” appears in the title bar of the shared workbook. This type of work arrangement is particularly effective in team situations where multiple users have joint responsibility for data within a single workbook. In cases where multiple users modify the same cells, Office can keep track of changes, and you can accept or reject them at a later date.

Enable Workbook Sharing

image Open the workbook you want to share.

image Click the Tools menu, and then click Share Workbook.

image Click the Editing tab.

image Select the Allow changes by more than one user at the same time check box.

image Click OK.

image

image Click OK again to save your workbook.

image

Did You Know?

You can set file options to prompt to open as read-only. To prevent accidental changes to a document, you can display an alert requesting (not requiring) the user open the file as read-only. A read-only file can be read or copied. If the user makes changes to the file, the modifications can only be saved with a new name.

Change Sharing Options

image Open the workbook you want to share.

image Click the Tools menu, and then click Share Workbook.

image Click the Advanced tab.

image To indicate how long to keep changes, select one of the Track changes options, and then set the number of days, if necessary.

image To indicate when changes should be saved, select one of the Update changes options, and then set a time internal, if necessary.

image To resolve conflicting changes, select one of the Conflicting changes between users options.

image Select one or both of the Include in personal view check boxes.

image Click OK.

image

Creating and Reading a Cell Comment

Any cell on a worksheet can contain a comment—information you might want to share with co-workers or include as a reminder to yourself without making it a part of the worksheet. (Think of a comment as a nonprinting sticky note attached to an individual cell.) A cell containing a comment displays a red triangle in the upper-right corner of the cell. By default, comments are hidden and are displayed only when the mouse pointer is held over a cell with a red triangle.

Add a Comment

image Click the cell to which you want to add a comment.

image Click the Insert menu, and then click Comment.

image Type the comment in the comment box.

image Click outside the comment box when you are finished, or press Esc twice to close the comment box.

image

Read a Comment

image Position the mouse pointer over a cell with a red triangle to read its comment.

image Move the mouse pointer off the cell to hide the comment.

image To show all comments, click the View menu, and then click Comment.

image To navigate and work with comments using buttons on a toolbar, click the View menu, point to Toolbar, and then click Reviewing to display it.

image

Editing and Deleting a Cell Comment

You can edit, delete, and even format cell comments just as you do other text on a worksheet. If you are working with others online, they may want to delete a comment after reading it. You might want to format certain comments to add emphasis. You can use formatting buttons—such as Bold, Italic, Underline, Font Style, Font Color, or Font Size—on the Font panel or Formatting toolbar. When you no longer need a comment, you can quickly delete it.

Edit a Comment

image Select the cell that you want to remove.

image Click the Edit Comment button on the Reviewing toolbar.

  • You can also Control-click the cell containing the comment, and then click Edit Comment.

image Make your changes using common editing tools, such as the Delete key, as well as the Font panel and Formatting toolbar buttons.

image

image Press Esc twice to close the comment box.

Delete a Comment

image Select the cell that you want to remove.

image Click the Delete Comment button on the Reviewing toolbar.

  • You can also Control-click the cell containing the comment you want to delete, and then click Delete Comment.

image

Tracking Changes

As you build and fine-tune a workbook—particularly if you are sharing workbooks with co-workers—you can keep track of all the changes that are made at each stage in the process. The Track Changes feature makes it easy to see who made what changes and when, and to accept or reject each change, even if you are the only user of a worksheet. When you or another user applies the Track Changes command to a workbook, the message “[Shared]” appears in the title bar of the workbook to alert you that this feature is active. To take full advantage of this feature, turn it on the first time you or a co-worker edits a workbook. Then, when it’s time to review the workbook, all the changes will be recorded. You can review tracked changes in a workbook at any point. Cells containing changes are surrounded by a blue border, and the changes made can be viewed instantly by moving your mouse pointer over any outlined cell. When you’re ready to finalize the workbook, you can review each change and either accept or reject it.

Turn On Track Changes

image Click the Tools menu, point to Track Changes, and then click Highlight Changes.

image Select the Track changes while editing check box.

image Select the When, Who, or Where check box. Click an associated list arrow, and then select the option you want.

image Select the Highlight changes on screen check box.

image To list changes on a new worksheet, select the List changes on a new sheet check box.

image Click OK.

image

image Make changes in worksheet cells.

Column and row indicators for changed cells appear in red. The cell containing the changes has a blue outline.

image To view tracked changes, position the mouse pointer over an edited cell.

image

Accept or Reject Tracked Changes

image Click the Tools menu, point to Track Changes, and then click Accept or Reject Changes. If necessary, click OK in the message box.

image If you want, change tracking, and then click OK to begin reviewing changes.

image

image If necessary, scroll to review all the changes, and then click one of the following buttons:

  • Click Accept to make the selected change to the worksheet.

  • Click Reject to remove the selected change from the worksheet.

  • Click Accept All to make all of the changes to the worksheet after you have reviewed them.

  • Click Reject All to remove all of the changes to the worksheet after you have reviewed them.

image Click Close.

image

See Also

See “Protecting a Worksheets and Workbooks” on page 322 for information on protecting a shared workbook.

Comparing and Merging Workbooks

For one reason or another, multiple users may maintain identical workbooks. At some point, you’ll want to integrate their data into one master workbook, known as the template. First, though, you need to compare the data to identify the differences between the worksheets. Excel can electronically combine the entries, which ensures the integrity of your data. When merging workbooks, all the workbooks must be identical to the file into which the data is being merged. To distribute copies of a workbook and merge the changes into the original, the workbooks must have sharing, change tracking, and change history turned on and use a different file names.

Merge Workbook Data

image Open the shared workbook that you want to merge.

image Click the Tools menu, and then click Merge Workbooks.

image Click OK to save the workbook, if necessary.

image Select the files you want merged with the active file.

To select more than one workbook to merge, press and hold Control, and then click other files.

image Click OK.

image

image Click the Save button.

image Click the Tools menu, point to Track Changes, and then click Accept or Reject Changes.

image Select the When check box, click the list arrow, and then click Not Yet Reviewed.

image Clear the Who and Where check boxes.

image Click OK.

image

image Click the buttons to accept or reject changes, and then click Close.

image

Asking “What If” with Goal Seek

Excel’s powerful functions make it easy to create powerful formulas, such as calculating payments over time. Sometimes, however, being able to make these calculations is only half the battle. Your formula might tell you that a monthly payment amount is $2,000, while you might only be able to manage a $1,750 payment. Goal Seek enables you to work backwards to a desired result, or goal, by adjusting the input values.

Create a “What-If” Scenario with Goal Seek

image Click any cell within the list range.

image

image Click the Tools menu, and then click Goal Seek.

image Click the Set Cell box, and then type the cell address you want to change.

You can also click the Collapse Dialog button, use your mouse to select the cells, and then click the Expand Dialog button.

image Click the To Value box, and then type the result value.

image Click the By Changing Cell box, and then type the cell address you want Excel to change.

You can also click the Collapse Dialog button, use your mouse to select the cells, and then click the Expand Dialog button.

image Click OK.

image

image Review the goal seek status, and then click OK.

image

Creating Scenarios

Because some worksheet data is constantly evolving, the ability to create multiple scenarios lets you speculate on a variety of outcomes. For example, the marketing department might want to see how its budget would be affected if sales decreased by 25 percent. Although it’s easy enough to plug in different numbers in formulas, Excel allows you to save these values and then recall them at a later time. The ability to create, save, and modify scenarios means a business will be better prepared for different outcomes to avoid economic surprises.

Create and Show a Scenario

image Click the Tools menu, and then click Scenarios.

image Click Add.

image Type a name that identifies the scenario.

image Type the cells you want to modify in the scenario, or click the Collapse Dialog button, use your mouse to select the cells, and then click the Expand Dialog button.

image If you want, type a comment.

image Click OK.

image

image Type values for each of the displayed changing cells.

image Click OK.

image

image Click Close.

image

Did You Know?

You can show a scenario.Click the Tools menu, click Scenarios, select the scenario you want to see, click Show, and then click Close.

You can create a scenario summary report.Click the Tools menu, click Scenarios, click Summary, click the Scenario Summary option, and then click OK. A scenario summary worksheet tab appears with the report.

Exporting Data

In cases where you don’t need the data you are using from another source to be automatically updated if the source data changes, the most expedient way to get the data is to copy and paste it. In cases where you want to copy data from one program to another, you can convert the data to a format that the other program accepts.

Export Excel Data Using Copy and Paste

image Select the cell or range that you want to copy.

image Click the Copy button on the Standard toolbar.

image Open the destination file, or click the program’s taskbar button if the program is already open.

image Click to indicate where you want the data to be copied.

image Click the Paste button on the Standard toolbar.

image Click the Paste Options button, and then click the option you want.

image

Export an Excel File to Another Program Format

image Open the file from which you want to export data.

image Click the File menu, and then click Save As.

image Type a name or use the one provided.

image Click the Format drop-down, and then click the file format you want.

image

image Click Save.

Analyzing Data Using a PivotTable

When you want to summarize information in a lengthy list using complex criteria, use the PivotTable to simplify your task. Without the PivotTable, you would have to manually count or create a formula to calculate which records met certain criteria, and then create a table to display that information. Once you determine what fields and criteria you want to use to summarize the data and how you want the resulting table to look, the Pivot Table Wizard does the rest. You can quickly update a PivotTable report using the PivotTable toolbar, which appears whenever a PivotTable is active. When you do want to add new data, Excel makes it easy by allowing you to drag data fields to and from a PivotTable. You can also change field settings to format a number or show the data in a different form. The field settings include functions such as Sum, Count, Average, Max, and Min.

Create a PivotTable Report

image Click any cell within the list range.

image Click the Data menu, and then click PivotTable Report.

image If using the list range, click the Microsoft Office Excel List or Database option.

image Click Next to continue.

image If the range does not include the correct data, click the Collapse Dialog button. Drag the pointer over the list range, including the field names, to select a new range, and then click the Expand Dialog button.

image Click Next to continue.

image

image Click the New sheet option or the Existing sheet option, and then specify the location of the existing sheet.

image Click Finish.

image

image Drag fields from the Field List to areas on the PivotTable Report.

image

Update a PivotTable Report

image Make any necessary change(s) in the worksheet where your list range resides.

image If necessary, select a different worksheet, and then click any cell in the PivotTable Report.

image Click the Refresh Data button on the PivotTable toolbar, or click the Data menu, and then click Refresh Data.

image

image To add or remove a field in a PivotTable, position the pointer over the field that you want to add to or remove from the PivotTable, and then drag the field on the PivotTable to add the field or drag it off the PivotTable to remove the field.

Change Field Settings in a PivotTable Report

image Select the field you want to change.

image Click the Field Settings button on the PivotTable toolbar.

image Make the necessary changes to the field.

image Click OK.

image

Consolidating Data

In some cases, you’ll want to consolidate data from different worksheets or workbooks into one workbook, rather than simply linking the source data. For instance, if each division in your company creates a budget, you can pull together, or consolidate, the totals for each line item into one company-wide budget. If each divisional budget is laid out in the same way, with the budgeted amounts for each line item in the same cell addresses, then you can very easily consolidate the information without any retyping. If data in individual workbooks change, the consolidated worksheet or workbook will always be correct.

Consolidate Data from Other Worksheets or Workbooks

image Open all the workbooks that contain the data you want to consolidate.

image Open or create the workbook that will contain the consolidated data.

image Select the destination range.

image

image Click the Data menu, and then click Consolidate.

image Click the Function list arrow, and then select the function you want to use to consolidate the data.

image Type the location of the data to be consolidated, or click the Collapse Dialog button, and then select the cells to be consolidated.

Did You Know?

You can include all labels. Make sure you select enough cells to accommodate any labels that might be included in the data you are consolidating.

image Click the Expand Dialog button.

image

image Click Add to add the reference to the list of consolidated ranges.

image Repeat steps 6 through 8 until you have listed all references to consolidate.

image Select the Create links to source data check box.

image Click OK.

image
image

Did You Know?

You can consolidate worksheets even if they are not laid out identically. If the worksheets you want to consolidate aren’t laid out with exactly the same cell addresses, but they do contain identical types of information, select the Top Row and Left Column check boxes in the Consolidate dialog box so that Excel uses labels to match up the correct data.

You can arrange multiple documents.Use the Window menu to move between documents or to arrange them so they are visible at the same time.

Linking Data

A link can be as simple as a reference to a cell on another worksheet, or it can be part of a formula. You can link cells between sheets within one workbook or between different workbooks. Cell data to be linked is called the source data. The cell or range linked to the source data is called the destination cell or destination range. If you no longer want linked data to be updated, you can easily break a link. Create links instead of making multiple identical entries; it saves time and ensures your entries are correct.

Create a Link Between Worksheets or Workbooks

image Select the cell or range that contains the source data.

image Click the Copy button on the Standard toolbar.

image Click the sheet tab where you want to link the data.

image Select the destination cell or destination range.

image Click the Paste button on the Standard toolbar.

image Click the Paste Options button, and then click Link Cells.

image

Break a Link

image Click the cell containing the linked formula you want to break.

image Click the Copy button on the Standard toolbar.

image Click the Edit menu, and then click Paste Special.

image Click the Values option.

image Click OK.

image
image

Did You Know?

You can include a link in a formula and treat the linked cell as one argument in a larger calculation. Enter the formula on the formula bar, and then select a cell in the worksheet or workbook you want to link. A cell address reference to a worksheet is =tab name!cell address (=Orders!A6). A cell reference to a workbook is =’[workbook name.xls]tab name’!cell address (=’[Product Orders.xls]Orders’!A6).

You can arrange worksheet windows to make linking easier. To arrange open windows, click the Window menu, click Arrange, and then click the option for the window arrangement you want.

Getting Query Data from a Database

If you have data in a database, you can use functions in Excel to retrieve data from a table in a database. To retrieve the data, you can select or create a data source, build a query to create a link to the data, and optionally, create a filter to limit the information. When you select or create a data source, you need to identify the database type and then connect to it. To build a query, you can use the Query wizard to step you through the process, or you can manually create a query the same way you do in a database. Before you can create a query, you need to first install the required ODBC (Open Database Connectivity) driver, such as ODBC for Access. You can also retrieve data from other sources. If you use the same table in a database for data, you can define and save the data source for use later.

Define a New Data Source

image Click the Data menu, point to Get External Data, and then click New Database Query.

  • If an alert appears indicating that no ODBC drivers are installed on your computer, click Go to page to display the Mactopia Web site, where you can access links to install the data source drivers you want.

image Click the User DSN, System DSN, or File DSN tab.

image Click Add.

image Select a driver for the data source that you want to set up.

image Click Finish.

image

image Follow the wizard to create a new data source; steps vary depending on the data source.

  • Name, DSN Type, Description

  • Click Choose, navigate to the folder with the database you want to use, select it, and then click Choose.

image Click Continue, and then click Done.

image

image Click Cancel or select a data source, and then click OK to create a query.

image

Create a Database Query

image Click the Data menu, point to Get External Data, and then click New Database Query.

image Click the User DSN, System DSN, or File DSN tab.

image Click the name of the data sources you want to use.

  • To select another database, select the source, click Configure, and then follow the instructions to change it.

image Click OK.

image

image Create the query using techniques from the data source.

In Microsoft Query for Access, for example, drag tables into Query View, select the fields from which you want to get data, and then specify the sort and filter criteria you want. Click Query View to display the data.

image

image Click Return Data to continue back in Excel.

image Click the Existing sheet option, and then specify a cell location, or click the New sheet option. If you want to create a PivotTable, click the PivotTable report option.

image Click OK.

image
image

The data from the data source appears in your worksheet.

Getting Query Data from the Web

If you have data on the Web, you can retrieve it by using a query. You can create your own (see previous page) or use/modify one provided by Office 2008. The queries are located in the following folder: Microsoft Office 2008:Office:Queries. The sample queries include: MSN MoneyCentral Currencies, MSN MoneyCentral Major Indices, and MSN MoneyCentral Stock Quotes.

Import Web Data Using a Query

image Open the workbook in which you want to insert text data.

image Click the Data menu, point to Get External Data, and then click Run Saved Query.

image Click the Where drop-down, and then select the folder where the query is located.

image Select the query file you want.

image Click Get Data.

image

image Click the Existing sheet option, and then specify a cell location, or click the New sheet option. If you want to create a PivotTable, click the PivotTable report option.

image Click OK to continue.

image

image Enter a parameter value. To enter multiple values, separate them with commas.

image Click OK.

image
image

Did You Know?

You can create refreshable Web queries. If you want to analyze Web data in a worksheet, you can use the Copy and Paste commands to bring the data from a Web page into the worksheet. The Paste Options button allows you to keep the data as it is or make it refreshable on the Web. As the data changes on the Web, you can use the Refresh button to quickly update it.

Getting Data from a FileMaker Pro Database

If you have data in a FileMaker Pro (version 5.0 - 9.0) database, you can import it directly into Excel. In addition to the database file, you must also have the appropriate version of FileMaker Pro installed on your computer along with Excel. Excel uses the FileMaker Pro Import Wizard to step you through the process of importing your data. After you complete the import, you will probably need to resort your data.

Import Data from a FileMaker Pro Database

image Open the workbook in which you want to insert text data.

image Click the Data menu, point to Get External Data, and then click Import from FileMaker Pro.

  • You can also click the File menu, click Import, click the FileMaker Pro database option, and then click Import.

image Navigate to and select the database file you want to import.

image Click Choose.

image

FileMaker Pro starts, the database opens, and the FileMaker Pro Import Wizard appears.

image In Step 1, click the Layouts or Tables drop-down, select a layout or table, select each field in the Available fields list, and then click Add to import these fields.

image To change the import order, click the field, and then click the up or down button.

image Click Next to continue.

image

image In Step 2, specify the criteria you want to filter (remove) out data from the FileMaker Pro database.

image Click Finish.

image Click the Existing sheet option, and then specify a cell location, or click the New sheet option.

image Click OK.

image

Getting Text Data

If you have data in a text file, you can either open the file using the Open command on the Office menu, or you can import the text file as an external data range using the From Text button on the Data tab. There are two commonly used text file formats to store data that you can import in Excel: Tab delimited text (.txt) and Comma separated values text (.csv). When you open a .txt file, Excel starts the Import Text Wizard. When you open a .csv file, Excel opens the file using current default data format settings.

Import a Text File

image Open the workbook in which you want to insert text data.

image Click the Data menu, point to Get External Data, and then click Import Text File.

  • You can also click the File menu, click Import, click the Text file or CSV file option, and then click Import.

image Click the Enable drop-down, and then click Text Files or CSV Files.

image Click the Where drop-down, and then select the folder where the text file is located.

image Click the text file you want to import.

image Click Get Data.

image

image If the file is a text file (.txt), Excel starts the Import Text Wizard. Step through the wizard (3 steps), and then click Finish.

image

image Click the Existing worksheet option, and then specify a cell location, or click the New worksheet option.

image Click OK.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset