Sample Excel 2007 Advanced Manual Usa
Sample Excel 2007 Advanced Manual Usa
Advanced Level
E
PL
M
SA
Excel 2007 Advanced - Page 2
No part of this document may be copied without written permission from Cheltenham Courseware unless produced
under the terms of a courseware site license agreement with Cheltenham Courseware.
All reasonable precautions have been taken in the preparation of this document, including both technical and non-
technical proofing. Cheltenham Courseware and all staff assume no responsibility for any errors or omissions. No
warranties are made, expressed or implied with regard to these notes. Cheltenham Courseware shall not be
responsible for any direct, incidental or consequential damages arising from the use of any material contained in this
document. If you find any errors in these training modules, please inform Cheltenham Courseware. Whilst every effort
is made to eradicate typing or technical mistakes, we apologise for any errors you may detect. All courses are
updated on a regular basis, so your feedback is both valued by us and will help us to maintain the highest possible
standards.
E
FOR TRAINING, SAMPLE, or similar, then it cannot be used as part of a training course, and is made available
purely for content and style review. This is to give you the opportunity to preview our courseware, prior to making a
purchasing decision. Sample versions may not be re-sold to a third party.
PL
This document may only be used under the terms of the license agreement from Cheltenham Courseware.
Cheltenham Courseware reserves the right to alter the licensing conditions at any time, without prior notice. Please
see the site license agreement available at: www.cheltenhamcourseware.com.au/agreement
Contact Information
Australia / Asia Pacific / Europe (ex. UK) / Rest of the World
Email: [email protected]
Web: www.cheltenhamcourseware.com.au
M
USA / Canada
Email: [email protected]
Web: www.cheltenhamcourseware.com
UK
Email: [email protected]
Web: www.cctglobal.com
SA
Cheltenham Courseware
Affordable - Customizable - Unbeatable
Contact Details:
UK/Ireland: www.cctglobal.com
USA/Canada: www.cheltenhamcourseware.com
Australia/Rest of the world: www.cheltenhamcourseware.com.au
1995-2007 Cheltenham Courseware Pty. Ltd. Phone: 1300 852 204 Fax: 1300 852 206
Email: [email protected] Internet: http://www. cheltenhamcourseware.com.au
Excel 2007 Advanced - Page 3
FUNCTIONS ......................................................................................................................................................... 5
Excel 2007 Functions .......................................................................................................................................5
Getting help about using a particular function ............................................................................................... 6
Using date and time functions: TODAY .........................................................................................................8
Using date and time functions: DAY ...............................................................................................................9
Using date and time functions: MONTH ........................................................................................................9
Using date and time functions: YEAR ............................................................................................................9
Using mathematical functions: SUMIF .........................................................................................................10
Using mathematical functions: ROUND .......................................................................................................13
Using statistical functions: COUNT...............................................................................................................14
Using statistical functions: COUNTA ............................................................................................................15
Using statistical functions: COUNTIF ...........................................................................................................16
Using text functions: PROPER ......................................................................................................................16
E
Using text functions: UPPER .........................................................................................................................17
Using text functions: LOWER ........................................................................................................................18
Using text functions: CONCATENATE.........................................................................................................18
Using financial functions: FV .........................................................................................................................20
PL
Using financial functions: NPV ......................................................................................................................22
Using financial functions: PMT ......................................................................................................................25
Using financial functions: PV .........................................................................................................................27
Using financial functions: RATE ....................................................................................................................29
Using lookup and reference functions: HLOOKUP ....................................................................................31
Using lookup and reference functions: VLOOKUP ....................................................................................34
Using logical functions: IF .............................................................................................................................. 37
Using logical functions: AND .........................................................................................................................40
Using logical functions: OR ............................................................................................................................40
M
Using logical functions: ISERROR ................................................................................................................41
Using database functions: DSUM .................................................................................................................42
Using database functions: DMIN...................................................................................................................45
Using database functions: DMAX .................................................................................................................48
Using database functions: DCOUNT ............................................................................................................51
Using nested functions ...................................................................................................................................54
SA
E
PL
M
SA
Functions
E
• Clicking on the AutoSum icon will display commonly used functions, such as
Sum and Average.
PL
M
SA
• Clicking on the Insert Function icon will display the Insert Function dialog
box, which allows you to easily locate a particular function.
E
•
PL
To see a list of all available functions, click on the down arrow next to the
Select a category section of the Insert Function dialog box, and select All.
M
SA
E
• This will display the Functions Arguments dialog box for the IF function.
PL
M
SA
• Click on help on this function (bottom-left within the dialog box). This will
display help relevant to that function.
E
PL
M
• Take a quick look at the help available and the close the dialog box.
• Click on cell B3. To have Excel automatically insert the current date into a cell,
select the cell and enter the following into the cell:
=TODAY()
• Press the Enter key and the current date will be displayed within the cell.
=DAY(B3)
• Press the Enter key. You will notice that the current day of the month is
displayed:
E
•
PL
Using date and time functions: MONTH
Click on cell B5 and enter the following function:
=MONTH(B3)
M
• Press the Enter key. You will notice that the current month is displayed:
SA
=YEAR(B3)
• Press the Enter key. You will see that the current year will be displayed:
E
Using mathematical functions: SUMIF
• Open a workbook called Function SUMIF.
• The SUMIF sums the values within a range that meet specified criteria. In this
case, we want to see the total value of all sales, where the salesperson earned
•
over 6000 a month.
PL
First, we would need to click on the cell in which we wish the result of our
function to be displayed, in this case cell C14.
Click on the Formulas tab and from within the Function Library group click on
the Math & Trig button. From the drop down list displayed, click on the SUMIF
function, as illustrated.
M
SA
E
PL
M
• The Function Arguments dialog box is displayed.
SA
E
•
•
PL
To select the range you would use the mouse to select the cells D4:D10.
In the Criteria section of the dialog box, we would enter >6000. The screen
should now resemble the illustration:
M
SA
• Clicking on the OK button would display the result within the active cell. You
can see the actual function displayed in the Function Bar:
E
•
• PL
First, click on the cell C4 and press the Del key to delete the cell contents.
Click on the Formulas tab and from within the Function Library group click on
the Math & Trig button. From the drop down list displayed, click on the
ROUND function, as illustrated.
M
SA
E
• In the Number section of the dialog box, enter the formula C2/C3.
• In the Num_digits section of the dialog box, enter 0.
•
PL
Click on the OK button and you will see the following:
M
• Save your changes and close the workbook.
SA
=COUNT(C5:C8)
• The result will appear in cell C9. Use the normal drag and drop techniques to
copy this function to cells D9 and E9. The results should be as illustrated:
E
Using statistical functions: COUNTA
• Open a workbook called Function COUNTA. This sheet contains examination
•
results and grades.
letter-grade types:
=COUNTA(C5:C8)
PL
Click on cell C9 and enter the following function to count each of the three
The result will appear in cell C9. Use the normal drag and drop techniques to
copy this function to cells D9 and E9. The results should be as illustrated:
M
SA
• You can drag this function across the range D9:E9 and the table will look like
this.
E
Using statistical functions: COUNTIF
• Open a workbook called Function COUNTIF. This sheet contains examination
results and grades.
•
•
each student earned:
=COUNTIF(C5:C8,"A")
PL
Click on cell C9 and enter the following function to count the number of "A's"
Use the normal drag and drop techniques to copy this function to cells D9 and
E9. The results should be as illustrated:
M
SA
=PROPER(B2)
E
• Save your changes and close the workbook.
=UPPER(B2)
SA
• When you press the Enter key, you will see the text as illustrated:
• To convert the text to lower-case lettering, click on cell B5 and enter the
following function:
=LOWER(B2)
• When you press the Enter key, you will see the text as illustrated:
E
•
PL
Save your changes and close the workbook.
M
Using text functions: CONCATENATE
• Open a workbook called Function CONCATENATE.
• Click on cell B5.
• Click on the Formulas tab and from within the Function Library group click on
the Text button. From the drop down list displayed, click on the
SA
E
•
PL
Click within the Text1 section of the dialog box and then click on cell A1.
• Click within the Text2 section of the dialog box and then click on cell A2.
• Click within the Text3 section of the dialog box and then click on cell A3.
• Click within the Text4 section of the dialog box and then click on cell A4.
• Click on the OK button, and you will the see result as illustrated:
E
Using financial functions: FV
• Open a workbook called Function FV. This contains data relating to the
following scenario. Let's say we have a lump sum of 2500 and we want to
invest this in a bank that is paying out 6% interest. We will invest a further 150
•
•
Click on cell C10.
PL
monthly. We want to know how much the account will be worth after three
years. We can enter the following information into a worksheet.
Click on the Formulas tab and from within the Function Library group click on
the Financial button. From the drop down list displayed, click on the FV
function, as illustrated.
M
SA
E
•
•
•
PL
Click within the Rate section of the dialog box and then click on cell C3.
Click within the Nper section of the dialog box and then click on cell C4.
Click within the Pmt section of the dialog box and then click on cell C5. Then
prefix the value with a minus sign (-).
• Click within the Pv section of the dialog box and then click on cell C6. Then
M
prefix the value with a minus sign (-).
• Click within the Type section of the dialog box and then click on cell C7.
SA
• When you click on the OK button your will see the result as illustrated:
E
•
Open a workbook called Function NPV. This contains data relating to the
following scenario. We are going to make an investment that will pay 4000 up
front and in the following two years will provide an annual income of 3000 and
M
2000. We will assume an annual discount rate of 5% percent.
• Click on cell B11.
• Click on the Formulas tab and from within the Function Library group click on
the Financial button. From the drop down list displayed, click on the NPV
function, as illustrated.
SA
E
• PL
The Function Arguments dialog box will be displayed
M
SA
Click on the Rate section of the dialog box, and then click on cell C4.
• Click on the Value 1 section of the dialog box, and then click on cell C5, as this
is an upfront, initial payout, prefix this amount with a minus (-) sign.
• Click on the Value 2 section of the dialog box,
and then click on cell C6.
E
•
PL
When you click on the OK the result should be as illustrated:
M
SA
NOTE: If you do not get a result as below, it may be because you forgot the
minus symbol in front of C5.
E
PL
M
• The Function Arguments dialog box will be displayed.
SA
E
•
•
•
PL
Click within the Rate section of the dialog box and enter C4/12.
Click within the Nper section of the dialog box and then click on cell C5.
Click within the Pv section of the dialog box and then click on cell C6:
M
SA
E
Using financial functions: PV
• Open a workbook called Function PV. In this example, we are considering
purchasing an insurance annuity that will payout 500 at the end of every month
•
•
Click on cell C8. PL
for the next 25 years. We will assume a rate of 5% (i.e. x 0.05).
Click on the Formulas tab and from within the Function Library group click on
the Financial button. From the drop down list displayed, click on the PV
function, as illustrated.
M
SA
E
•
•
rate on a monthly basis).
PL
Click in the Rate section of the dialog box and enter C4/12 (to calculate the
Click in the Nper section of the dialog box and enter C5*12 (to account for the
length of the term in months).
• Click in the Pmt section of the dialog box and then click on cell C6:
M
SA
• When you click on the OK button, you will see the following:
E
• Save your changes and close the workbook.
•
•
Click on cell A8.
PL
Open a workbook called Function RATE. In this example, we will calculate the
rate for a loan of 7,000, spread over 4 years (48 months), with a monthly
payment of 150.
Click on the Formulas tab and from within the Function Library group click on
the Financial button. From the drop down list displayed, click on the RATE
function, as illustrated.
M
SA
E
•
•
PL
Click in the Nper section of the dialog box and then click on cell A3.
Click in the Pmt section of the dialog box and then click on cell A4. Then prefix
the value with a minus sign (-).
• Click in the Pv section of the dialog box and then click on cell A5.
M
SA
E
• Save your changes and close the workbook.
PL
Using lookup and reference functions: HLOOKUP
• Open a workbook called Function HLOOKUP. This example shows how you
can use two values to lookup a value in a table. The function looks for the
package type in row 1 of the table and then returns the mailing cost in the
appropriate mailing type row:
M
SA
E
PL
M
• The Function Arguments dialog box will be displayed:
SA
E
•
•
•
PL
Click on the Lookup_value section of the dialog box, then click on cell C2.
Click on the Table_array section of the dialog box,
and then select the cell range B8:E11.
Click on the Row_index_num section of the dialog box,
and then click on cell C3:
M
SA
• When you click on the OK button, you will see the following. Notice the formula
in cell C5:
E
• Try entering other values in cell C2 (i.e. b or c).
• Try entering other values in cell C3 (i.e. 1, 3 or 4).
• Save your changes and close the workbook.
•
•
•
Click on cell B3.
PL
Using lookup and reference functions: VLOOKUP
Open a workbook called Function VLOOKUP.
Click on the Formulas tab and from within the Function Library group click on
the Lookup & Reference button. From the drop down list displayed, click on
M
the VLOOKUP function, as illustrated.
SA
E
PL
M
SA
E
•
•
PL
Click in the Lookup_value section of the dialog box and then click on cell A3.
Click in the Table_array section of the dialog box and then select the cell range
A7:C10.
• Click in the Col_index_num section of the dialog box
M
and then enter 2:
SA
E
• Click on cell C3 and enter the following:
•
=VLOOKUP(A3,A7:C10,3)
PL
You will see the following. Try entering different values into cell A3, such as
Medium or Large:
M
SA
E
• The Function Arguments dialog box will be displayed:
PL
M
SA
• Click on the Logical_test section of the dialog box and enter B3>500.
• Click on the Value_if_true section of the dialog box and enter B3*5%.
E
• PL
When you press the OK button, you will see the following. As the value in cell
B3 is less than 500, the discount value is zero:
M
SA
• Copy the formula in cell C3 to cells C4:C6 using the typical fill handle technique.
• You will see the following. As you can see where the sales value is above 500,
a discount value is displayed:
=IF(AND(B3>50,C3>50),$F$2,$F$3)
• When you press Enter you should see the following, as the candidate scored
less than 50 in the first part of the examinations:
E
•
PL
Copy the formula in cell D3 to the cell range D4:D6 and you will see the
following:
M
SA
• The only person to get more than 50 in both parts of the examination is Anora,
who is the only person to pass the entire examination.
• Save your changes and close the workbook.
=IF(OR(B3>75,C3>75),$F$2,$F$3)
• When you press Enter you should see the following, as the candidate scored
less than 75 in both parts of the examination:
E
• Copy the formula in cell D3 to the cell range D4:D6 and you will see the
following:
PL
M
SA
• The only person to get less than 75 marks in either part of the examination is
Elliot, who is the only person to not pass the entire examination.
• Save your changes and close the workbook.
=D2/E2
• We have used the ISERROR function in cell B6 to pick up the fact that this cell
contains an error, using the syntax:
E
=ISERROR(B2)
•
•
Click on cell D14.
PL
Open a workbook called Function DSUM. In this example, we will sum up the
total value of all sales people whose sales are above their sales targets.
Click on the Formulas tab and from within the Function Library group click on
the Insert Function button.
M
SA
• This will display the Insert Function dialog box. Use the Category control to
display Database functions.
E
•
PL
Select the DSUM function and click on the OK button.
M
SA
E
•
•
•
PL
Click on the Database section of the dialog box and then select cells A7:C12.
Click on the Field section of the dialog box and enter “Sales”.
Click on the Criteria section of the dialog box and then select cells B4:B5.
M
SA
E
•
Open a workbook called Function DMIN. In this example, we will use the
DMIN function to see what the lowest sales figure of any of our sales people is.
M
• Click on cell D14.
• Click on the Formulas tab and from within the Function Library group click on
the Insert Function button.
SA
• This will display the Insert Function dialog box. Use the category control to
display Database functions.
E
•
PL
Select the DMIN function and click on the OK button.
M
SA
E
•
•
•
PL
Click on the Database section of the dialog box and then select the cell range
A7:C12.
Click on the Field section of the dialog box and then click on cell C7.
Click on the Criteria section of the dialog box and then select the cell range
C8:C12.
M
SA
• When you click on the OK button, you will see the result, as illustrated:
E
• Save your changes and close the workbook.
•
PL
Open a workbook called Function DMAX. In this example, we will use the
DMAX function to see what the highest sales figure of any of our sales people is.
Click on cell D14.
• Click on the Formulas tab and from within the Function Library group click on
M
the Insert Function button.
SA
• This will display the Insert Function dialog box. Use the category control to
display Database functions.
E
•
PL
Select the DMAX function and click on the OK button.
M
SA
E
•
•
•
PL
Click on the Database section of the dialog box and then select the cell range
A7:C12.
Click on the Field section of the dialog box and then click on cell C7.
Click on the Criteria section of the dialog box and then select the cell range
C8:C12:
M
SA
• When you click on the OK button, you will see the result, as illustrated:
E
• Save your changes and close the workbook.
PL
Using database functions: DCOUNT
• Open a workbook called Function DCOUNT. In this example, we have a
number of sales people, and their target sales should be above 20. We wish to
use the DCOUNT function to show the sales people who are above target sales.
• Click on cell D14.
M
• Click on the Formulas tab and from within the Function Library group click on
the Insert Function button.
SA
• This will display the Insert Function dialog box. Use the category control to
display Database functions.
E
•
PL
Select the DCOUNT function and click on the OK button.
M
SA
E
•
•
•
PL
Click within the Database section of the dialog box and then select cells
A7:C12.
Click within the Field section of the dialog box and then click on cell C7.
Click within the Criteria section of the dialog box and then select cells B4:B5:
M
SA
E
• Save your changes and close the workbook.
=IF(AVERAGE(B3:B6)>25,SUM(B3:B6),0)
SA
• Once you have entered this formula, use drag and drop to copy this formula to
cell C13. The result should be as illustrated.
• Sales for the North region exceeded their targets, (i.e. the average is over 25)
so in cell B13 you see the sales summed, while in cell C13, you see a 0 figure
as sales for the South region were below an average of 25:
E
• Save your changes and close the workbook.
PL
M
SA
PMT(rate,nper,pv,fv,type)
E
Where:
PL
Nper: This is the total number of loan payments.
Pv: This is the ‘present value’, (principal) or the total amount that a series of
future payments is worth now.
Fv: This is the ‘future value’, or a total amount you want to have after the last
payment is made. If Fv is not specified, then it will default to 0 and thus the
M
future value of the loan is 0.
Type: This can be either 0 or 1 and donates when payments are due (i.e. at the
end of the period or at the start or each period).
SA
=PMT(B5/12,C17,-C16):
E
• PL
To construct the data table we need to first select the following area of the
worksheet:
M
SA
• Click on the Data tab and from within the Data Tools group click on the What-
If Analysis button. Select the Data Table command from the popup.
E
•
PL
We need to click within the Column input cell text box of this dialog box, and
click on the input cell, i.e. cell B5, as indicated:
M
SA
E
•
PL
Save your changes and close the workbook.
• Open a workbook called Two input data table. Note the use of the PMT
function in cell B4:
SA
=PMT(C18/12,C17,-C16)
E
• PL
To ask a two input, what-if question we first have to select the relevant data, as
illustrated:
M
SA
• Click on the Data tab and from within the Data Tools group click on the What-
If Analysis button. Select the Data Table command from the popup.
E
•
•
cell C17.
PL
Click on the section of the dialog box called Row input cell, and then click on
Click on the section of the dialog box called Column input cell, and then click
on cell C18:
M
SA
• When you click on the OK button, the what-if values will be inserted, as
illustrated below:
E
• PL
Save your changes and close the workbook.
M
SA
Creating a PivotTable
• Open a workbook called Pivot table. This contains the data from which you
wish to create your pivot table:
E
PL
M
• Click within the body of the data.
• Click on the Insert tab and from within the Tables group click on the
PivotTable icon.
SA
E
• Click on the OK button to create your pivot table.
•
PL
Dropping data into the Pivot Table
Your screen will now look like this.
M
SA
• You will see a PivotTable Field List (on the right of your screen) which helps
you perform common tasks. As you can see in the above illustration, the
PivotTable Field List is launched automatically when you create your Pivot
Table. Let's put it to use.
• From within the PivotTable Field List, click on the Sales Person field.
E
• PL
You should see it is displayed within the Row Labels section (bottom-right).
M
SA
• From within the PivotTable Field List, click on the Customer field.
E
• Drag the Customer item into the part of the Pivot Table labeled “Column
Labels”.
PL
M
SA
• From within the PivotTable Field List, click on the Total value field.
• You should see it displayed within the part of the Pivot Table labeled “Values”.
E
• When you have finished, the table should be as illustrated. As you can see, it is
a very powerful way of extracting and summarizing data:
PL
M
SA
• Click on the Pivot Table Data worksheet tab (Sheet 1), so that your original
table of data is displayed.
• Make some changes, such as in this case change the value within cell D4, and
change the value from 1 to 10:
E
• PL
Click on the worksheet tab containing your Pivot Table (Sheet4), and you may
notice that the Pivot Table has not been updated to take account of your
changed data:
M
SA
• If necessary click on the PivotTable Tools tab in the ribbon which will display
Pivot Table related items.
• From within the Data group of the ribbon, click on the Refresh icon and the
table will update to take account of your changed data.
E
• Your screen should now look like this.
PL
M
SA
• While depressing the Ctrl key we then need to click on cell A16 (the cell
containing the text Rowan).
• When you release the Ctrl key, both items should remain selected.
E
•
PL
Right click over the selected cells and from the popup menu displayed select the
Group command.
M
SA
• The screen will then change to display the grouped results, as illustrated:
E
PL
M
SA
Scenarios
E
PL
• The cell E3 contains the formula =C3*D3%
M
• The cell E4 contains the formula =C4*D4%
• The cell E5 contains the formula =C5*D5%
• The cell E6 contains the formula =C6*D6%
• The cell E7 contains the formula =SUM(E3:E6)
• The cell C7 contains the formula =SUM(C3:C6)
SA
• Select the cells that you wish to change, in this case the range D3:D6.
E
• Click on the Data tab and from within the Data Tools group click on the What-
If Analysis button. From the drop down list displayed, select the Scenario
Manager command.
PL
M
SA
• If no previous scenarios have been created you will see the following dialog box:
E
•
PL
Click on the Add button and the Add Scenario dialog box is displayed:
M
SA
• Enter a name for the scenario you are about to create. In this case enter the
name Staff Low into the Scenario name text box and then click on the OK
button.
E
•
PL
The percentage rise in staff costs is located in cell D4 and we need to change
the contents of this cell. In the dialog box enter a low value, i.e. 2.5 in the text
box, next to $D$4.
M
SA
• Click on the OK button and you will be returned to the main Scenario Manager
dialog box, as illustrated:
E
•
PL
Next we will add a second scenario where staff cost increases are low, but
energy costs increases are high. Click on the Add button and enter the name
for the next scenario, in this case Staff Low Energy High:
M
SA
• Click on the OK button, and change the two cells in the Scenario Values dialog
box as illustrated.
E
• Click on the OK button. You will be returned to the main Scenario Manger
dialog box.
PL
M
SA
Showing a scenario
• We have set up two scenarios. To see the effect of one of these scenarios,
select the scenario from the main Scenario Manager dialog box.
• In this case, we have selected Staff Low Energy High.
E
•
PL
Viewing an alternative scenario
In this case, select the Staff Low scenario from the Scenario Manager and
click on the Show button. The data will change as illustrated:
M
SA
E
This will display the Scenario Summary dialog box:
PL
M
• Make sure that the Scenario summary button is selected, and click on the OK
button. The summary will be automatically formatted and displayed, as
illustrated:
SA
E
•
PL
Save your changes and close the workbook.
M
SA
Auditing
E
• Click on cell F15.
•
•
Formulas tab).
PL
Click on the Trace Precedents icon (within the Formula Auditing group of the
• Click on this icon again, and you will see the following:
E
• Click on this icon again, and you will see the following. As you can see each
PL
time your click on this icon, you go “one layer back”:
M
SA
• Click on the Remove Arrows icon (within the Formula Auditing group of the
Formulas tab).
E
PL
M
• Click on the Trace Dependents icon again and you will see the following:
SA
E
• PL
You see the results of the calculations, rather than the formula displayed. Press
CTRL + ` (grave accent), the table will then look like this.
M
SA
TIP: If this does not work, you may be pressing the wrong keys. Click on the
Undo icon and try again after carefully examining your keyboard.
• Pressing this keyboard shortcut again will toggle back to showing the effects of a
formula rather that the formula itself.
• Close the workbook without saving your changes.
Adding comments
• Open a workbook called Comments.
• Select cell D8. Click on the Review tab and within the Comments group, click
on the New Comment icon.
E
•
PL
Enter your text in the Note box, in this case “This is a provisional figure”:
M
SA
Displaying comments
• Move your mouse and hover over the cell containing the comment - after a short
pause the comment will be displayed. There will be a small red marker in the
top right-hand corner of the cell to indicate that it contains a comment:
Removing comments
• Right click on the cell containing the comment you want to delete.
E
• From the shortcut menu displayed, select the Delete Comment command.
PL
M
SA
• The small red marker in the top right-hand corner of the cell disappears.
• Click on the Undo icon to reverse this effect, before continuing.
Editing comments
• Right click on the cell containing the comment you want to edit.
• From the shortcut menu displayed, select the Edit Comment command.
E
PL
M
• Edit the text in the Note box, in this case, add your name to the end of the
comment.
• Click outside the box when finished.
• Save your changes and close the workbook.
SA
Macros
E
• Click on the Popular button and then select the Show Developer tab in the
Ribbon check box.
PL
M
• Click on the OK button to close the dialog box. You will now see the Developer
tab displayed, as illustrated.
SA
E
PL
M
• Enter a name for the macro in the Macro name text box, in this case call it
Orientation.
SA
• The default description is displayed in the Description text box, and contains
the date and user name. Change this to say, “Changes from portrait to
landscape orientation".
• In the Shortcut key section of the dialog box, enter k as the keyboard shortcut.
E
• You need to decide where the macro will be stored. Click on the down arrow to
PL
the right of the Store macro in section of the dialog box. Your choices are:
M
SA
If you are using Excel 2007 on Windows XP then the Personal.xlsb workbook is
saved in the following folder and started automatically when you start Excel:
If you are using Excel 2007 on Windows Vista then the Personal.xlsb workbook
is saved in the following folder and started automatically when you start Excel:
This Workbook:
If you select this option then the macro will be saved within the workbook you
are working on, but will not be available within other workbooks.
• In this case click on the Store Macro in drop down and select the Personal
Macro Workbook option (which will make the macro available within all your
Excel workbooks).
E
click on the Orientation icon. From the drop down list, select Landscape.
PL
M
• To stop recording, click Developer tab and from within the Code group click on
the Stop Recording icon.
SA
• The macro has now been recorded and stored within the workbook.
• Press Ctrl+F2 which is the keyboard shortcut to view the worksheet in Print
Preview mode. Your worksheet will be displayed in Landscape mode, because
you set it to landscape when you recorded the macro.
E
• Press the Esc key to return to the normal view.
• Manually reset the page orientation, by clicking on the Page Layout tab and
PL
from within the Page Setup group clicking on the Orientation icon. From the
drop down list, select Portrait. Press Ctrl+F2 to verify the page orientation,
and then press the Esc key to return to your normal view.
M
SA
• Press the keyboard shortcut to run your macro, in this case Ctrl+k. You should
find that if you view the worksheet in Print Preview mode that it changes to
Landscape view.
• Save your changes and close the workbook and then close Excel. You may see
the following dialog box, if so click on the Yes button.
E
• Click on the Developer tab and from within the Code group of the Ribbon, click
on the Macro Security button.
PL
• This will display the Trust Center. Within the Macro Settings click on the
M
Enable all macros setting and click on the OK button to close the dialog box.
SA
• Close Excel.
• You will see the Excel Options dialog box displayed. Make sure that the
Customize button is selected (down the left side of the dialog box). Click on
E
the down arrow to the right of the Choose commands from section, and from
the drop down list select Macros (as illustrated).
PL
M
SA
• You should see the Orientation macro within the left section of the dialog box.
• Select this macro and the click on the Add button. You will now see this macro
displayed within the right section of the dialog box.
• Click on the OK button and you should see the macro displayed as an icon
within the Quick Access Toolbar, as illustrated.
E
• PL
Changing the Quick Access Toolbar Macro icon
Right click on the Macro icon and you will see a popup menu.
M
• Click on the Customize Quick Access Toolbar command. When the Excel
Options dialog box is displayed, select the macro within the right section of the
SA
dialog box.
• This will display the Modify Button dialog box. Select an icon that you want to
use. In this case select the smiling face icon, and then click on the OK button to
close the dialog box.
E
PL
M
SA
• Click on the OK button to close the Excel Options dialog box. You will see the
new icon displayed within the Quick Access Toolbar as illustrated.
E
Raising your macro security level
• Click on the Developer tab and from within the Code group of the Ribbon, click
on the Macro Security button.
PL
M
• This will display the Trust Center. Within the Macro Settings click on the
Disable all macros with notification setting and click on the OK button to
close the dialog box.
SA