Академический Документы
Профессиональный Документы
Культура Документы
Index Description
1. Quick Access Toolbar i Guide to setting up the quick access toolbar in Excel 2007
2. New Functions i Explanation of new worksheet function available in Excel 2007 eg. IFERROR, COUNIFS, SUMIFS
3. Formatting Techniques i Basic formatting - Text alignment, Font size and style, Word wrapping
ii Format Cells dialogue
iii Merge and Unmerged cells
iv Conditional Formatting
vi Data validation combined with conditional formatting Advanced Topic
4. Page and Print Setup i Page break view and page setup
ii Setting the page "header" and "footer"
7. Lookup Function i VLOOKUP exact match, nearest match, common mistakes and problems faced by consultants
ii Advanced lookup functions using INDEX, MATCH and OFFSET
9. Goal Seek dialogue i Using Goal Seek to search for the solution
10. Named Ranges i Naming cells and using names to simplify calculations
ii Dynamic Ranges Advanced Topic
12. Pivot Tables i The difference between Excel 2007 Pivot tables and classic style Pivot tables (Not yet available)
ii Setting up a pivot table in 2007 and understanding the options available (Not yet available)
iii Advanced pivot table functionality (Not yet available )
14. Find & Replace dialogue i Find and Replace options and functionality
ii Use find a replace to modify formatting
iii Use find and replace to modify formulas and references to other workbooks Advanced Topic
16. Iterative and cyclic calculations Not yet available Advanced Topic
Appendix A. Functions list i. List and description of frequently used Excel functions including examples
ii. Using "Text functions" to cure capitalisation disease
Investing time in setting up your Excel 2007 quick access toolbar can significantly reduce
frustration and improve productivity when first making the switch from older versions
The quick access toolbar is a customisable toolbar found above the menus called ribbons
1. Select the "Office button" at the top right hand side of the Excel window
4. Select your favorite commands from the list on the left. To help find your
favorite commands you can sort by the various command categories from the
pull down menu
- "Popular Commands"
Excel 2007 menus, - "Commands Not in the ribbon"
also called ribbons - "All Commands"
- Commands found in the "Home Tab"
etc.
5. Click Add
6. If you would like to remove a command, select it from your list and click "Remove"
1. QuickAccessToolbar 2/30
Excel 2007 Training
You may wish to shift the quick access toolbar below the ribbon.
6. Check the "Show Quick Access Toolbar below the Ribbon" box in options
or
At the end of the quick access toolbar you will find a menu button shaped as a downward facing arrow. When selected you will find a
set of options. Select "Show Above/Below the Ribbon"
You may wish to minimise the ribbon so that it only appears when you have your mouse pointer near it
1. QuickAccessToolbar 3/30
Excel 2007 Training
Excel 2007 has added five new and very useful functions to the Excel function library
Example: How do I prevent Excel returning an error whenever VLOOKUP can not find the search string
Example: returns the average of "Units" where the corresponding value in "Column Beverage" is equal to "Coke"
Excel 2003 Solution - Array formula solution (see section "15. Array formulas")
{=AVERAGE(IF(D45:D49="Coke",E45:E49,""))} 2
Example: if a user had the following Database, how could they sum “Units” where Beverage = “Coke” and Name = “Josh”
Database
Name Beverage Units
Josh Sprite 2
Josh Coke 2
Julia Coke 3
Josh Coke 1
Prue Sprite 1
Excel 2003 Solution - Array formula solution (see section "15. Array formulas")
{=SUM(IF(C2:C17="Apple", IF(D2:D17="One", B2:B17, 0), 0))} 3
The formula is hard to set up correctly, many users do not know about array formulas, and it is harder to read/debug.
COUNTIFS and AVERAGEIFS, also new to Excel 2007, work the same way with the same benefits.
The most regularly used options should be included in the quick access toolbar
Borders
3. Formatting 5/30
Excel 2007 Training
The "Format Cells" dialogue provides quick access to advanced formatting options for selected cells
The Format Cells dialogue can be accessed by right-clicking on the selected area
Orientation
Super BAs
Carolyn
Chloe
Clare
Josh
Text Alignment
Align Left:
Left Indent 1:
Left Indent 2:
Align Right:
Right Indent 1:
Borders
Number Formats
General: 8/08/2008 1:41 The Sample Field is excellent for
Text: =NOW() previewing different category and
Scientific: 3.97E+04 custom formats
Time: 1:41:34 AM
Date: 8/08/2008
Date Custom: 08-Aug-08
3. Formatting 6/30
Excel 2007 Training
Merge & Unmerge are useful when developing forms such as RFI/RFP
Hello Notes
When Merging cells data in the target cells may be lost
When accessing the value of a Merged group, reference the top left
cell of the merged group only. Excel 07' now selects the top left cell
automatically.
3. Formatting 7/30
Excel 2007 Training
Conditional Formatting can be used to add dynamism to formatting in worksheets and forms
Error Checking
Highlight All Numbers less than zero
4
3
-2
-1
0
Formatting Example
Advanced
Formatting Example
3. Formatting 8/30
Excel 2007 Training
Data Validation can be used to prohibit invalid inputs to forms and prompt correct inputs
Example 1
Data validation with prohibitive error alert
Example 2
Data validation with warning only
Example 3
Data validation with conditional formatting
Is your company a distributor?
No
(Yes/No)
How many manufacturers does
your company represent as a fully
authorized distributor?
3. Formatting 9/30
Excel 2007 Training
All Spreadsheet to be handed to clients or sent to suppliers should be formatted for printing like any
deliverable
The easiest way to format a spreadsheet for print is to use the page break
To go to Page Break View: View -> Page Break
To return to Normal View: View -> Normal
Example
For additional shortcuts a good reference for the new Excel 2007 is Microsoft Website:
http://office.microsoft.com/en-us/excel/HP100738481033.aspx?pid=CH100947761033#Other
Excel shortcut and function keys for Microsoft Office Excel 2007
Delete a Row
Select rows to deletes
Application key -> d
Selecting data
Ctrl+Spacebar Select the entire column
Shift+Spacebar Select the entire row
F8 Turn on extending a selection by using the arrow keys
Ctrl+Shift+End Extend the selection to the last used cell on the worksheet (lower-right corner)
Ctrl+Shift+Home Extend the selection to the beginning of the worksheet
Ctrl+Shift + Arrow Key Extend the selection to the last nonblank cell in the same column or row as the
active cell
(Hold Shift) + Arrow Key Extend the selection to include the next row or column
Shift+F8 or hold down CTRL Add another range of cells to the selection; or use the arrow keys to move to the
start of the range you want to add, and then press F8 and the arrow keys to select
the next range
Ctrl +Shift+* This key combination selects the current range around the active cell, the area
defined as the largest rectangle of data surrounded by white space.
Dialogue Boxes
Shift + F7 Brings up Thesaurus
F1 Help
Ctrl + F Displays the Find dialog box
Ctrl + G Displays the GOTO command
Ctrl + F3 Brings up the name Manager
F3 Brings up the Paste Name Dialogue
Standard Actions
Ctrl + S Save
Ctrl + P Print
Ctrl + N New workbook
Ctrl + O Open
Ctrl + C Copy
Ctrl + X Cut
CTRL + V Paste
Ctrl + D Fill down
Ctrl + R Fill right
Ctrl + ` Toggle show formulas option
Logical Expressions are truth test , formed by comparing two values using a comparison operator. The result of the comparison being
TRUE or FALSE
Comparison Operators:
> Greater Than < Less Than
>= Greater Than or equal to <= Less Than or equal to
= Equal to (Logical Equality) <> Not Equal to
Output
Colour Same
If statements can be used combined or "Nested" to facilitate more tests and outcomes
Note: Up to 7 IF statements or up to 256 characters
Logic Trees can be used to plan or explain expressions: Example: Does Colour 1 match any of Colour 2,3, or 4
Colour 1:
Logical Expression 1 BLUE
Colour 2
TRUE FALSE PURPLE
Colour 4
Logical Expression 2 Outcome 3 ORANGE
Colour 3
TRUE FALSE WHITE
Output
Outcome 1 Outcome 2 No Match
Logical Operators can be used to "build up" Logical Expressions to incorporate more than
two values and one comparison operator
Expressions must be built up of pairs of values, with the overall output still Boolean i.e. TRUE or FALSE. Brackets are useful to group the
smaller expressions.
Logical Operators
AND Returns TRUE if all arguments are TRUE (Logical conjunction)
OR Returns TRUE if all any of its arguments are TRUE (Logical disjunction)
NOT Reverses the logic of its arguments (Logical Negation)
r p q
Example 3: Is Colour 1 equal to Colour 2 OR ( Colour 2 equal to Colour 3 and Colour 1 is not black )
Colour 1 Colour 2 Colour 3
BLUE BLUE BLACK
Output
Expression True
Equation:
=IF( OR(C80=D80,(AND(D80=E80,D80<>"BLACK"))),"Expression True","Expression FALSE")
Note: it is not often not necessary to nest operators of the same type. Up to 30 conditions
eg. OR(exp1,(OR(exp2,(OR(exp3,exp4))))) = OR(exp1,exp2,exp3,exp4)
6. IF Statement 12/30
Excel 2007 Training
[range lookup] is an optional argument. If False, Excel looks for an exact match as in the
example above. If no exact match is found Excel returns #N/A. If however, [Range lookup] is
TRUE or omitted and no Exact Match exists, Excel assumes the lookup column appears in
numeric ascending order and looks for the closest value that is less than the lookup value.
Database
Income Tax Rate(1)
$0 - $9,999 $ - 15% Lookup Value: $ 104,000
$10,000 - $29,999 $ 10,000 30% [range lookup] TRUE
$30,000 - $99,999 $ 30,000 34% Column Index: 2
$100,000 and over $ 100,000 40%
Equation:
VLOOKUP(H52,E52:F55,H54,H53)
Output: 40%
i. Closest Value Match Requires Lookup column in ascending order. Hint: use sort
Ascending Type Example
Ascending number -2, -1, 0, 1, 2,
Ascending Dates January - December
Alphabetic A-Z
ii. Watch out for numbers formatted as text. Hint multiply all by 1
Number formatted as Text: 10
Formatted as a Number: 10
Cells are not Equal - Equality: FALSE
iii. If there are more than one exact match. Excel returns the first occurrence, searching from the
top of the lookup column downwards
iv. Two text fields may occasionally appear equal, but the number of spaces before or after the
text may prohibit Vlookup from finding an exact match. The trim function can often resolve
this problem by removing all spaces from text except for single spaces between words.
v. Cannot lookup or use the search function for strings containing forbidden characters eg. "~".
The Filter Tool and Advanced Filter Tools are useful during data categorisation
To activate Autofilter: Data -> Sort Group -> Filter
Select the Range over which you would like to apply the autofilter - this ensures the filter does not end at the
first blank row
Before commencing work on a worksheet with filters, first check to Filter Symbol & Heading Bar
ensure the filter is not active. Row numbers will turn blue and a
filter symbols will appears above columns to which a filter has
been applied.
Avoid using "Freeze Panes" setting when applying autofilters as this function as it can make the location of
the top o the filter confusing.
Autofilters only hide rows. Thus, be careful of copying and pasting data to and from autofiltered ranges. Copy
and Paste functions applied to all hidden rows in Excel 2003, causing problems when categorising data. This
problem has been resolved in Excel 2007 except when using the paste special command.
Please ensure any client using Excel 2003 does not use paste or autofill down with autofilters. Advise
instead to use the drag and copy function.
Do not try to sum or count filtered data using the standard functions. instead use the subtotal command or a
pivot table.
Subtotal Options
Function_num Function_num
(includes hidden values) (ignores hidden values) Function
1 101 AVERAGE
2 102 COUNT
3 103 COUNTA
4 104 MAX
5 105 MIN
6 106 PRODUCT
7 107 STDEV
8 108 STDEVP
9 109 SUM
10 110 VAR
11 111 VARP
Advanced Filter and Remove Duplicates can be used to Select unique values
To activate remove duplicates: Data -> Sort Group -> Remove Duplicates
New to office 2007, Remove duplicates can be applied over multiple rows and columns
8. Autofilter 14/30
Excel 2007 Training
Example Database
Subtotal 265
Sum 232
8. Autofilter 15/30
Excel 2007 Training
Goal seek enables the computation of the input to a problem for which the output is known
To open Goal Seek: Data -> Data Tools Group - > What-If Analysis - > Goal Seek
Solver Parameters
Set Cell The cell containing the formula that calculates the information you seek
To Value The target value - the value for which you want the set cell to equal
By Changing
Cell The input cell that Excel changes - the value you want to know
Example
What sales volume do I need to break even?
Formula
Profit = Revenue - Cost
profit ($19,500.00)
volume 10000
price $3
unit cost 0.45
fixed cost 45000
Intermediary revenue $30,000.00
variable cost 4500.00
Goal Seek Options: Office Button -> Excel Options -> Formulas
Change Accuracy:
"Maximum Change " - Goal seek will solve to an accuracy of "Maximum change" - default of 0.001
meaning accurate to -0.001 -> 0.001
Iterations:
"Maximum Iterations " - For difficult problems the maximum number of iterations may need increasing
to ensure convergence
Limitation: if problem has more than one solution - Goal seek will only find one answer
9. GoalSeek 16/30
Excel 2007 Training
Cell names can be modified using the Name box found next to the formula bar
Names can be managed, changed and deleted using the Name manager
To open the Name Manager: Formulas -> Define Name Group -> Name Manage or Ctrl + F3
To open paste the Paste Name dialogue: Formulas -> Define Name Group -> Use in Formula or F3
Using hyperlinks with named ranges for navigation Click here to go to the ultimate answer
Dynamic Ranges are a simple and effective technique to ensure data updates
are passed through to charts or pivot tables
Dynamic ranges are particularly useful when setting up analytic models where the input data is constantly changing,
regularly updated, uncertain and/or variable in size. Particularly useful in Sourcing Engagements!!!
A dynamic range works by combining the Naming functionality of Excel with the OFFSET and COUNT (or COUNTA)
commands.
Name (All)
Sum of Units
Beverage Total
Coke 6
Sprite 3
Grand Total 9
How it works:
1. Excel can keep track of any new data entries and/or new column fields by counting the number of rows and columns
containing data . Hint : it is possible to count all entries in an entire row or column eg. COUNTA(B:B) or
COUNTA(2:2)
2. The OFFSET command is used to select the database range dynamically by using count to define the width and
height of the range.
Syntax: OFFSET(reference,rows,cols,height,width)
- reference refers to the first cell of the range
- rows and cols defines the number of rows and columns from the reference cell to start the range (typically 0 if
reference is selected as the first cell of the range).
-height and width defines the number of rows and columns that define the range. To set the range as dynamic
count (or counta) are used to select the size of the range
3. To name the range click Formulas -> Define Name Group -> Name Manage
Click New, Choose the Name and select the desired dynamic range using the Offset formula
4. When selecting data for a chart, simply paste the range name in the series box
In Excel 2003, it is necessary to proceed the range name with the file name. This will automatically update when the
file is saved under a new name
5. When using a Named Range to define the Pivot Table database, simply type in the name of the range .
Josh
Clare
Chloe
Carolyn
In the reference field, it is possible to type the desired cell reference or range. Try complex combinations, eg:
"K:K,N:N,10:10,15:15"
Note: References to difference worksheets are proceeded with the worksheet name and an exclamation mark as
follows: 'Worksheet Name'!A1
The Go To Special dialogue allows the quick and easy selection of objects,
comments, or cells with special characteristics or entries.
Precedents
Precedents are the inputs to a formula in the active cell
Dependents
Dependents are cells contain formulas that refer to the active cell
Formula: 1 + 2 = 3
A B C
1 2 3
The find and replace dialogue can be used to assist in many ways, from replacing text, changing
cell formats to locking formula references
Warning! before using "Replace All" save a backup of your worksheet and make sure you set all options correctly
Example 2 - Use Find and Replace to change a formula by locking all cells referring to column C
1 1 =C14 1 =$C$14
2 2 =C15 2 =$C$15
3 3 =C16 3 =$C$16
4 4 =C17 4 =$C$17
5 5 =C18 5 =$C$18
6 6 =C19 6 =$C$19
7 7 =C20 7 =$C$20
Example 3 - Use Find and Replace to change a reference to another worksheet or even workbook
Unfortunately, if you change the name of your reference workbook the link is not updated.
One way to resolve this is to search for the original workbook name within your formulas and replace with the new workbook name
Extension of Example 3
This method can also be used when moving/copying a worksheet from 1 workbook (eg a template) into another workbook. When you copy a worksheet
from 1 workbook to another, all the formulas reference the original workbook. If you want to update all the formulas so they now reference the new
workbook simply do a search for "[oldworkbook.xlsx]" and replace with nothing ""
To check all formulas are updated correctly, toggle the formulas option
Formulas -> Formula Auditing Group -> Show Formulas
CTRL + `
Array formulas act on ranges of cells and can return a result in either a single or range of cells
Array formulas can be recognised by curly braces "{" surrounding the formula
Some useful Excel inbuilt functions can only be implemented as array formulas eg. Frequency, Transpose
When Entering an array formula, you must first select the cell or range of cells you want Excel to place the
formula results. Then, after entering the formula, you must press Ctrl + Shift + Enter
Equation:
{=FREQUENCY(B29:B37,C29:C31)}
Equation:
{=SUM(IF(FREQUENCY(MATCH(B2:B10,B2:B10,0),MATCH(B2:B10,B2:B10,0))>0,1))}
Equation:
{=TRANSPOSE(C33:C36)}
How many units for "Name=Josh " or "Product=Coke" Counting using an OR condition
{=SUM(IF((C48:C52="Josh")+(D48:D52="Coke"),1,0)*E48:E52)} cannot be replicated using the new
8 COUNTIFS function. For this query
the only solution is using an array
How it works
The proportion of the formula (C48:C52="Josh ") creates a Boolean array, the same size as C48:C52. For each
entry of the array that equals "Josh " the array stores the value TRUE, otherwise FALSE. On multiplying the two
Boolean arrays a new array is created essentially representing the AND function. Summing the two Boolean arrays
essentially mimics the OR function.
Excel's function library is categorised into 11 groups with the most commonly used functions listed
below
For a complete listing of all available function, visit Microsoft's website
http://office.microsoft.com/en-us/excel/HP052042111033.aspx#Text%20functions
Logical functions
Lookup and reference functions
Statistical functions
Information functions
Date and time functions
Text functions
Engineering functions
Financial functions
Math and trigonometry functions
External functions Not regularly required by consultants
Database functions Most database functions eg: DCOUNT, DAVERAGE, DSUM have been superseded in functionality made available
through COUNTIFS, AVERAGEIFS, SUMIFS
Logical functions
Function Description
AND Returns TRUE if all of its arguments are TRUE
FALSE Returns the logical value FALSE
IF Specifies a logical test to perform
NOT Reverses the logic of its argument
OR Returns TRUE if any argument is TRUE
TRUE Returns the logical value TRUE
Statistical functions
Function Description
AVERAGE Returns the average of its arguments
AVERAGEA Returns the average of its arguments, including numbers, text, and logical values
COUNT Counts how many numbers are in the list of arguments
COUNTA Counts how many values are in the list of arguments
COUNTBLANK Counts the number of blank cells within a range
COUNTIF Counts the number of nonblank cells within a range that meet the given criteria
FORECAST Returns a value along a linear trend
FREQUENCY Returns a frequency distribution as a vertical array
GROWTH Returns values along an exponential trend
LARGE Returns the k-th largest value in a data set
LINEST Returns the parameters of a linear trend
MAX Returns the maximum value in a list of arguments
MEDIAN Returns the median of the given numbers
MIN Returns the minimum value in a list of arguments
MODE Returns the most common value in a data set
PERCENTILE Returns the k-th percentile of values in a range
PERCENTRANK Returns the percentage rank of a value in a data set
RANK Returns the rank of a number in a list of numbers
SMALL Returns the k-th smallest value in a data set
STANDARDIZE Returns a normalized value
STDEV Estimates standard deviation based on a sample
VAR Estimates variance based on a sample
Information functions
Function Description
CELL Returns information about the formatting, location, or contents of a cell
ERROR.TYPE Returns a number corresponding to an error type
ISBLANK Returns TRUE if the value is blank
ISERR Returns TRUE if the value is any error value except #N/A
ISERROR Returns TRUE if the value is any error value
ISEVEN Returns TRUE if the number is even
ISNA Returns TRUE if the value is the #N/A error value
ISNONTEXT Returns TRUE if the value is not text
ISNUMBER Returns TRUE if the value is a number
ISODD Returns TRUE if the number is odd
ISTEXT Returns TRUE if the value is text
N Returns a value converted to a number
Text functions
Function Description
CHAR Returns the character specified by the code number
CLEAN Removes all nonprintable characters from text
CONCATENATE Joins several text items into one text item
DOLLAR Converts a number to text, using the $ (dollar) currency format
EXACT Checks to see if two text values are identical
FIND, FINDB Finds one text value within another (case-sensitive)
FIXED Formats a number as text with a fixed number of decimals
LEFT, LEFTB Returns the leftmost characters from a text value
LEN, LENB Returns the number of characters in a text string
LOWER Converts text to lowercase
MID, MIDB Returns a specific number of characters from a text string starting at the position you specify
PROPER Capitalizes the first letter in each word of a text value
REPLACE, REPLACEB Replaces characters within text
REPT Repeats text a given number of times
RIGHT, RIGHTB Returns the rightmost characters from a text value
SEARCH, SEARCHB Finds one text value within another (not case-sensitive)
SUBSTITUTE Substitutes new text for old text in a text string
TEXT Formats a number and converts it to text
TRIM Removes spaces from text
UPPER Converts text to uppercase
VALUE Converts a text argument to a number
Engineering functions
Function Description
CONVERT Converts a number from one measurement system to another
Example
=CONVERT(1, "lbm", "kg") Converts 1 pound mass to kilograms
Financial functions
Function Description
ACCRINT Returns the accrued interest for a security that pays periodic interest
ACCRINTM Returns the accrued interest for a security that pays interest at maturity
AMORDEGRC Returns the depreciation for each accounting period by using a depreciation coefficient
AMORLINC Returns the depreciation for each accounting period
DB Returns the depreciation of an asset for a specified period by using the fixed-declining balance method
EFFECT Returns the effective annual interest rate
FV Returns the future value of an investment
NPV Returns the net present value of an investment based on a series of periodic cash flows and a discount rate
PV Returns the present value of an investment
RATE Returns the interest rate per period of an annuity
RECEIVED Returns the amount received at maturity for a fully invested security
XNPV Returns the net present value for a schedule of cash flows that is not necessarily periodic
YIELD Returns the yield on a security that pays periodic interest
Example