McGraw-Hill OnlineMcGraw-Hill Higher EducationLearning Center
Student Center | Instructor Center | Information Center | Home
Glossary
Data Files
Buzz in IT
Learning Objectives
Chapter Outline
Prerequisites
Multiple Choice Quiz
Short Answer
True or False
Case Problems
Hands-On Exercises
Feedback
Help Center


Advantage Series MS Office XP Excel 2002
Advantage Series: Microsoft® Excel 2002
Sarah Hutchinson-Clifford
Glen Coulthard

Automating And Extending Excel

Hands-On Exercises

Dave Beauvais, Super User: Using Document Protection

Dave has decided that the time has come to start shopping for an engagement ring for his sweetheart Sally, a fellow Super User. He has been doing some work in Excel to determine what he can afford. In this exercise, Dave will protect his work from accidental changes and protect the document from Sally?s prying eyes. Assume the role of Dave and perform the steps that he identifies.

  1. Open the EX10XTRA01 Excel file and save it to your personal storage location as "Project X".
  2. Because all cells are locked by default, Dave will first unlock the only cells that he thinks he will make changes to in the future.
  3. SELECT: the cell range B2 through B4

    CHOOSE: Format, Cells

    CLICK: the Protection tab

    CLICK: the locked checkbox to clear it

  4. Next, Dave will have to turn on protection for the document
  5. PRESS: Ctrl Key + Home Key to move to the top of the sheet
    CHOOSE: Tools, Protection, Protect Sheet

  6. Ensure that the Protect worksheet and contents of locked cells check box is selected, and then:
    CLICK: OK command button
    Notice that there are no visible characteristics to differentiate a protected worksheet from an unprotected worksheet.
  7. Now, password protect the worksheet so that the user cannot open it without the correct password.
  8. CHOOSE: File, Save As
    CLICK: <a onClick="window.open('/olcweb/cgi/pluginpop.cgi?it=gif:: ::/sites/dl/free/0072470941/26807/ECh10_acq_Image3.gif','popWin', 'width=NaN,height=NaN,resizable,scrollbars');" href="#"><img valign="absmiddle" height="16" width="16" border="0" src="/olcweb/styles/shared/linkicons/image.gif"> (0.0K)</a> in the toolbar area
    CHOOSE: General Options

  9. As Sally knows how to quickly hack Office documents with short, easy passwords, Dave creates a difficult password.
  10. SELECT: Password to Open text box

    TYPE: 4D@ve'sEyesOnly

    CLICK: OK command button

  11. Excel will ask you to confirm the password
  12. TYPE: 4D@ve'sEyesOnly

    CLICK: OK command button

  13. Finish the save operation and close the document.

Data File: ex10xtra01.xls (17.0K)


Waxing Nostalgic Records: Creating a Lookup

Al Lincoln uses a price guide to determine how much to charge for rare records. He has transferred this price guide to an Excel workbook. He now wants to create an easy form to look up how much to charge for a record. Assume the role of Al and perform the steps that he identifies.

  1. Open the EX10XTRA02 Excel file and save it to your personal storage location as "Record Lookup".
  2. After familiarizing yourself with the contents of the "lookup" worksheet, name the lookup table on the "guide" worksheet
  3. CLICK: Guide tab
    SELECT: cell range from A2 to D5673
    CLICK: in the Name box
    TYPE: albums
    PRESS: Enter key
    Your worksheet should now resemble figure 10.1.
  4. Figure 10.1

    yadda

    <a onClick="window.open('/olcweb/cgi/pluginpop.cgi?it=gif:: ::/sites/dl/free/0072470941/26807/ECh10_acq_Image5.gif','popWin', 'width=NaN,height=NaN,resizable,scrollbars');" href="#"><img valign="absmiddle" height="16" width="16" border="0" src="/olcweb/styles/shared/linkicons/image.gif"> (10.0K)</a>

  5. Next, sort the entire table by title.
    CHOOSE: Data, Sort
    Choose to sort by title and click the OK command button.
  6. You now enter lookup formulas into the Lookup worksheet. To begin:
    CLICK: Lookup tab
    SELECT: cell B4
    TYPE: =vlookup(
    CLICK: Insert Function button (<a onClick="window.open('/olcweb/cgi/pluginpop.cgi?it=gif:: ::/sites/dl/free/0072470941/26807/ECh10_acq_Image6.gif','popWin', 'width=NaN,height=NaN,resizable,scrollbars');" href="#"><img valign="absmiddle" height="16" width="16" border="0" src="/olcweb/styles/shared/linkicons/image.gif"> (0.0K)</a> )
    The Function Arguments dialog box appears.
  7. To specify the lookup value:
    CLICK: Dialog Collapse button (<a onClick="window.open('/olcweb/cgi/pluginpop.cgi?it=gif:: ::/sites/dl/free/0072470941/26807/ECh10_acq_Image7.gif','popWin', 'width=NaN,height=NaN,resizable,scrollbars');" href="#"><img valign="absmiddle" height="16" width="16" border="0" src="/olcweb/styles/shared/linkicons/image.gif"> (0.0K)</a> ) for the Lookup_value text box
    CLICK: cell B3
    CLICK: Dialog Expand button (<a onClick="window.open('/olcweb/cgi/pluginpop.cgi?it=gif:: ::/sites/dl/free/0072470941/26807/ECh10_acq_Image8.gif','popWin', 'width=NaN,height=NaN,resizable,scrollbars');" href="#"><img valign="absmiddle" height="16" width="16" border="0" src="/olcweb/styles/shared/linkicons/image.gif"> (0.0K)</a> )
  8. To complete the Function Arguments dialog box:
    SELECT: Table_array text box
    TYPE: albums
    PRESS: Tab key
    TYPE: 4 in the Col_index_num text box.
  9. Test the VLOOKUP function:
    SELECT: cell B3
    TYPE: a day in the life
    PRESS: Enter key
    The worksheet should have updated as shown in figure 10.2.
  10. Figure x

    VLOOKUP results

    <a onClick="window.open('/olcweb/cgi/pluginpop.cgi?it=gif:: ::/sites/dl/free/0072470941/26807/ECh10_acq_Image10.gif','popWin', 'width=NaN,height=NaN,resizable,scrollbars');" href="#"><img valign="absmiddle" height="16" width="16" border="0" src="/olcweb/styles/shared/linkicons/image.gif"> (3.0K)</a>

  11. On your own, enter a formula into cell B2 that will return the artist for the desired title. ( Hint: The information is in column 2 of the lookup table.)
  12. Test the lookup by entering some of the following titles
  13. TITLE

    ARTIST

    RETAIL PRICE

    Afternoon

    Afterglow

    $28.35

    Long Ago

    After Tea

    $9.23

    Little Boy

    Action

    $9.91

  14. Save the worksheet and close.

Data Files: ex10xtra02 (117.0K)


Saganaki Motors Computer Help Desk: Importing Text

Richard has agreed to help create an employee roster. Since he already has all of the employees in address book, he exported the address book to the text file EX10XTRA03.txt. He will now import this text into Excel and format it. Assume the role of Richard and perform the steps that he identifies.

  1. Download and save the EX10XTRA03.txt file to your personal storage location.
  2. Open Excel and ensure that no workbooks are open in the application window.
  3. To import a text file:
    CHOOSE: File, Open
  4. Using the Look in drop-down list box, select the Advantage student data files location. Then, do the following:
    CLICK: down arrow attached to the Files of type drop-down list box
    SELECT: Text Files from the list
    DOUBLE-CLICK: EX10XTRA03
    As shown in Figure 10.3, Excel launches the Text Import Wizard.
  5. Figure 10.3

    Text Import wizard

    <a onClick="window.open('/olcweb/cgi/pluginpop.cgi?it=gif:: ::/sites/dl/free/0072470941/26807/ECh10_acq_Image11.gif','popWin', 'width=NaN,height=NaN,resizable,scrollbars');" href="#"><img valign="absmiddle" height="16" width="16" border="0" src="/olcweb/styles/shared/linkicons/image.gif"> (10.0K)</a>

  6. The first line in the text file displays a title. Therefore, in Step 1 of the wizard, specify that you want to start the import at row 2.
  7. In Step 2 of the wizard, set the delimiter to comma..
  8. For the remaining steps in the wizard, accept the default selections:
    CLICK: <a onClick="window.open('/olcweb/cgi/pluginpop.cgi?it=gif:: ::/sites/dl/free/0072470941/26807/ECh10_acq_Image12.gif','popWin', 'width=NaN,height=NaN,resizable,scrollbars');" href="#"><img valign="absmiddle" height="16" width="16" border="0" src="/olcweb/styles/shared/linkicons/image.gif"> (1.0K)</a>
  9. To finish converting the text file into a workbook, save the file as "Roster" to your personal storage location. ( Hint: Ensure that you change the file type to Microsoft Excel Workbook.)
  10. Sort the table by last name.
  11. Apply the "List 2" AutoFormat style to improve the appearance of the worksheet.
    The worksheet should now appear similar to figure 10.4

Figure 10.4

"Roster" worksheet

<a onClick="window.open('/olcweb/cgi/pluginpop.cgi?it=gif:: ::/sites/dl/free/0072470941/26807/ECh10_acq_Image13.gif','popWin', 'width=NaN,height=NaN,resizable,scrollbars');" href="#"><img valign="absmiddle" height="16" width="16" border="0" src="/olcweb/styles/shared/linkicons/image.gif"> (11.0K)</a>

Data File: ex10xtra03 (0.0K)





McGraw-Hill/Irwin