Professional Documents
Culture Documents
CC Excel Course Manual 6628adb6d0d23
CC Excel Course Manual 6628adb6d0d23
wallstreetprep.com
EXCEL CRASH COURSE
Welcome to Excel
• This crash course is designed to teach you how to use Excel 2010, 2013, and 2016.
• This self-paced course starts by assuming you have never used Excel before and quickly
progresses through Excel’s most useful and powerful features, such that even Excel “power
users” will benefit from the middle to late drills.
• If you find the beginning chapters to be too basic, feel free to fly right through them until
you get to the chapters that reflect your Excel knowledge.
them.
Almost everything that can The best way to learn these Initially, learning all of the
be done in Excel using a shortcuts is to literally useful shortcuts will be
mouse can also be done disconnect the mouse from frustrating, but it is
using the keyboard your computer and work absolutely worth the time to
shortcuts. Accordingly, this through this Excel module learn. The more shortcuts
Excel module has been using only the keyboard. If you know, the more efficient
developed around keyboard you do this, you will come you will be in Excel.
shortcuts. out of this program a more
efficient Excel user.
• As you go through the discussion of each • Don’t worry if certain icons or tab
section of the Excel spreadsheet, take the contents may not make sense right
time to explore it in the Excel file – open now; we’ll cover many in the
up each tab (when appropriate), scroll up subsequent chapters.
and down the worksheet, etc. – to get a
• And of course, use your keyboard, not
better idea of the makeup of Excel. The
your mouse, as your navigation guide.
first step in mastering Excel is to gain
familiarity with its various features and
functions and where to find them.
Before proceeding to the next slide,
open up a blank Excel file.
Worksheets
Rows Columns
1. Press Alt or F10 and the appropriate letter associated with each tab. Once you are in a
specific tab, press the appropriate letter associated with a specific feature or task. This
option will work for all commands. For example, open a new blank Excel file by
hitting Alt F N.
2. Many commands have alternate shortcuts using the Ctrl, Shift, Alt, or Function buttons (or
a combination of two out of the four, typically). For example, we could have also opened a
new file by hitting Ctrl N – these types of shortcuts you just have to commit to memory, but
it is worth it.
• Many Excel features (Open file, Save file, Print file, etc.) are located in the File tab.
• Excel also has alternative keyboard shortcuts (using Ctrl) for many of these features.
• Open a file:
• Alt F O
• Ctrl O
• Save a file:
• Alt F S
• Ctrl S
• Print a file:
• Alt F P
• Ctrl P
Licensed to Pranav Suresh. Email address: prnvsuresh@gmail.com
Within each of the eight main tabs
you will find all of Excel’s features,
logically grouped by commands.
For example, under the Home tab,
all commands related to Font are
grouped together.
• Background color
• Text/cell alignment
• Changing currency,
decimal, percent formats
Excel Basics
• We are now ready to delve further into Excel contents through some basic Excel exercises, a
series of progressive steps building off one another.
• Excel can be mastered only through practice, and the following exercises provide such
hands-on application. As you go through this chapter, make sure to replicate the steps in
your own Excel file.
• While the first step in mastering Excel is to gain familiarity with its various features and
functions and where to find them, the second step is finding the most efficient way to use
them. Accordingly, try repeating certain commands introduced in each step multiple times
to get them “under your belt.”
• As you go through the various steps, resist the initial temptation to use a mouse. Use the
Excel shortcuts list to help you.
• When using keyboard shortcuts involving Alt, you can Most commands involving
press each key and let go; that is, you do NOT need to hold Alt are shortcuts to the
down the Alt key as you press the F and A keys. commands and functions
inside the eight default Main
• You can think of the above ‘Save As’ shortcut as consisting Tabs.
of the following three distinct steps (do each of them
For example, a keyboard
slowly to see what happens):
shortcut to ‘Save As’ a file is
• Press Alt (and let go) – Activates the Main Tabs Alt F A (File > Save As).
• Press F (and let go) – Opens the Office Button menu
• Press A (and let go) – Brings up the ‘Save As’ screen
1. Within the worksheet you just opened, without the mouse, using only the arrow keys on
your keyboard, go to B2 and type in the text ‘Revenues’ and hit the down arrow key on the
keyboard in order to exit the cell and move to the next cell down (cell B3).
2. In cell B3, type in the text ’Cost of Goods Sold’ and again, hit the down arrow key to move
down to cell B4.
4. Again, using the arrow keys move to cell C1 and type ’2005’.
Notice how the text in column B was cut off when we input The following shortcuts also work
data into column C – it’s because the text in column B is too
long, so we need to widen Column B. Operation In Excel
2. If you want a column to have a certain width, press Alt H O Column width
W and enter the desired width (Excel’s default column Alt O C W
selection
width setting is 8.43).
Auto-fit row height Alt O R A
3. Analogously, to expand a desired row, press Shift Spacebar,
and then press Alt H O A to auto-fit the row height. Row height selection Alt O R E
• Copy the formula in cell C4 and paste it into cells D4 through F4: press the up-arrow key to
hover over cell C4 and press Ctrl C (shortcut for Copy). Now, holding down the Shift button,
use the right arrow key to highlight cells D4 through F4.
• Now hit Ctrl V (shortcut for Paste). Notice that Excel automatically pasted the formulas –
not the output – through all the cells, and as we moved the formula into columns to the right
of column C, the cells that are being referenced in the formulas also moved to the right.
• Press Ctrl Page Down to go from Sheet1 to Sheet2 within the workbook and create the
following matrix without using the mouse. Remember the following:
• Auto-fit the width of Column B.
• Copy and paste the formulas across the appropriate cells in row 4 – by using the Shift
Right Arrow key (not the mouse!)
• Within the Number tab, hit the Tab key and scroll
down the category menu to the ‘Number’ category.
• Copy and Paste the row and column headers from Sheet2 into Sheet3.
• In cell C2, press = then holding the Ctrl key press Page Up until you reach Sheet1. Within Sheet1, use the
arrow keys to hover over cell C2.
• Press the + key (Shift =) and then hit Ctrl Page Down to go to Sheet2 and then again, using the arrow keys
hover over C2. Your edit box should now have the following formula inside: =Sheet1! C2+Sheet2! C2.
• Hit Enter. Notice that once you hit enter, Excel takes you back to Sheet3, where it has added up C2 from both
Sheet1 and Sheet2.
• Now hit Ctrl C to copy this cell and using shift and the arrow keys, hover over the cell input range (C2:F3) and
then hit Ctrl V to paste.
• Calculate the gross profit in row 4 as you did in both earlier exercises.
• Format the cell range as you did in the last exercise using the ‘Format Cells’ menu.
Licensed to Pranav Suresh. Email address: prnvsuresh@gmail.com
Paste Special
• Paste special can be quite powerful and can do things Paste Special Formats is the equivalent of the
you may not have expected - much more on this in the paintbrush icon:
next section.
1. Open a new blank workbook (Ctrl N) and then switch back to Sheet3 of the existing
workbook (Ctrl Tab)
2. Move from Sheet3 to Sheet2 and back to Sheet3 by using the appropriate keyboard
shortcuts:
• Move left: Ctrl Page Up
• Move right: Ctrl Page Down
1. Still within Sheet3, highlight all the cells in the worksheet by pressing Ctrl A.
2. Move Sheet3 to precede Sheet1 in the workbook by pressing Alt H O M, and hit Enter.
3. Change the zoom size to 75% by pressing Alt W Q, (or Alt V Z) selecting 75% with the
arrow keys and hit Enter.
4. Change the zoom size back to your default size by pressing Alt W Q again, and selecting the
original zoom size and hit Enter.
Formatting &
Navigation
To Freeze Panes
To Split Panes:
1. Go to cell C4 and hit F2. F2 is the command that puts you “inside” a cell.
2. Within cell C4, press Shift Left Arrow until ‘C3’ is highlighted.
3. Hit Shift Ctrl Left Arrow and you’ll notice that C2 is instantly highlighted. Notice that it is
a similar idea to editing outside cells: Shift Arrow Keys highlight characters one at a time,
while Shift Ctrl Arrow Keys highlight contiguous ranges of characters within the cell.
4. Now hit Backspace to delete the highlighted region, and while still within the cell hit Esc
to cancel everything we have done so far. Within cells, the Esc key is very useful when you
will be working with complex worksheets because it cancels unintended cell entries.
• Now try to add cell C6 by typing + and using the • Shows the components of the
arrow keys – you’ll find that you are stuck – hit formula you created earlier
F2 again to get “unstuck” and then use the • Puts you inside a cell and
Arrow Keys enables you to navigate through
it to edit the existing cell data
• Pressing F2 again activates the cursor and
enables you to move to different cells, Pressing the F2 key twice:
worksheets, and even other open Excel files (you • Activates the cursor and enables
should see a dotted border when you move to you to move to different cells,
any of these locations) in order to insert worksheets, and even other
additional formula components into the original open Excel files
cell’s pre-existing formula (C4 in our example)
Licensed to Pranav Suresh. Email address: prnvsuresh@gmail.com
Drill – Deleting and Clearing Cell Data
• You can delete the contents of a cell simply by hitting Delete on an active cell.
• Important! Hitting delete does NOT delete the formatting in the cell – this is retained, so
next time you type a number into that cell, it will retain the formatting of the originally
deleted data. It also won’t delete a comment that may exist in the cell. So how do your truly
delete a cell?
• With your cursor on the desired cell, hit Alt H E (Home Tab Right Arrow Clear). From a
dropdown menu, choose the appropriate action:
• (Alt H E) A = Clears ALL contents of the cell (values, formulas, and format)
• (Alt H E) F = Clears the FORMAT of the cell only
• (Alt H E) C = Clears the CONTENTS of the cell only (same as hitting Delete)
• (Alt H E) M = Clears the COMMENTS of the cell only
Licensed to Pranav Suresh. Email address: prnvsuresh@gmail.com
Drill – Right and Down Fills
• Still in Sheet3, go to cell E4 and insert a comment that reads “Gross Profit was negative this
year due to a strategic restructuring undertaken by the company” by typing Shift F2.
• To edit an existing comment, go to the relevant cell and press Shift F2.
• Remember to apply
formatting as in the original
exercise using only the
keyboard.
• Let’s say we want to add a row below operating costs for non-operating costs. To do this, go
to any cell in the row below operating costs (Row 6) and press Alt I R, or highlight the row
below operating costs by pressing Shift Spacebar, and then press Ctrl Shift + to insert the
new row. A new row will appear.
• Input the new data as shown below and modify the net profit calculation accordingly.
Remember to format appropriately for inputs (paste special formats may be helpful here).
Insert row
Recalculate
as shown.
as shown.
• We now add a column for 2004. To do this, go to any cell in column C and press Alt I C, or
highlight column C by pressing Ctrl Spacebar and then insert the column by pressing Ctrl
Shift +. Insert the new data as shown by copying (Ctrl C) and pasting (Ctrl V) the formulas
in rows 4 and 7, and hard-inputting blue cells as shown in the screenshot here.
• Back in Sheet2, highlight the cell range B1:G7, copy it (Ctrl C), and paste only the formulas
(not the formatting) into B13:G20 by pressing Alt E S F. Now hit Ctrl Z to undo the paste
and paste only the formatting (not the formulas) into B13:G20 by pressing Alt E S T.
• In addition to pasting specific combinations of formulas, formats, and values, the paste special feature
allows users to operate on multiple values in exactly the same way.
• Suppose you have a list of dollar prices (see below) quoted to you in thousands, but you wish to see them
quoted in ones (e.g., you want to convert $450 to $450,000).
• In another cell, enter the number 1000. Copy this cell, then highlight your list of prices. Press Alt E S M.
This will multiply each dollar price on your list by 1000.
• It allows users to convert a vertical list of data into a horizontal list of data, and vice versa.
• Using the same set of data as in the prior slide, highlight the vertical list of prices.
• Move your cursor outside of the list range (to cell C3 in our case). Press Alt E S E. Your list of
prices should now be listed horizontally on a single row.
• Deleting names will cause errors in cells that reference the name
• When you copy and paste a cell containing a formula from one cell to another, Excel
automatically shifts the cells being referenced in the formula.
• Sometimes, this is not desirable. That is why Excel allows you to anchor cells.
• Anchoring (or “Fixing”) cells that are being referenced in a formula tells Excel that even if
you copy the formula to another cell, the cells in the formula that are anchored should not
change.
• We want to have Excel stay on cell C11 to calculate the pretax income. Anchoring cells allows us to do this
without having to manually change formulas in each cell.
There is often a need to hide rows and columns (for formatting and presentation purposes, or
simply because the data in those columns is old and need not be shown all the time).
To group columns:
To group rows:
• Grouping columns and rows through the steps • In larger spreadsheets, you can easily forget
mentioned in the previous slide allows users to which columns and rows you have hidden. Just
group any number of desired columns and rows as importantly, it also makes it difficult for
and is therefore very useful way to hide data that another person to audit your Excel analysis, so
users would still like to have, but not necessarily stick with grouping.
show to others.
• You have already learned one way to • Hitting Ctrl [ on a cell will highlight the
audit formulas: simply go to a desired cell precedent cell(s) – keep hitting Ctrl [ and
and hit the F2 key. Excel will highlight (in it will take you to the next precedent, and
different colors) all the cell components on an on.
of an existing formula present in that cell.
• Hitting Ctrl ] on a cell will do the same
thing but for dependent cells.
• Now let’s say you want to determine what average absolute gross profit was from 2005-
2008. Excel has a built-in average function that calculates the average of a range of selected
cells or numbers.
Error Reason
Formula treated as text Forgetting the equal sign (=) at the start or inserting a space before the
equal sign of the formula is treated by Excel as text
##### When the column is not wide enough to fit the data in a cell, You must
widen the cell to fix the error (Alt H O I)
• The IF function returns one value if a condition you specify evaluates to TRUE and another
value if it evaluates to FALSE.
x Criteria
y Output if criteria evaluates to true
z Output if criteria evaluates to false
• Excel allows users to combine (or "concatenate") cells with a text string in them with other
text strings, creating one text string by using the "&" function.
• The difference is that EDATE returns the exact date, x months from the start date.
Licensed to Pranav Suresh. Email address: prnvsuresh@gmail.com
Cell Contents as Criteria in IF Statements, ISNUMBER, and ISTEXT
• A surprisingly useful criteria used in IF statements, is a test of whether a cell has anything
in it.
• For example, the IF statement =IF(C1,C2,C3) would see if there is anything in cell C1, and if
there was, it would output C2, otherwise C3.
• Two functions that do something similar are the ISNUMBER and ISTEXT function, both
typically embedded within an IF statement, and test whether there is a number or text
inside a cell, respectively.
• DATE(year,month,day) is a
function that combines distinct
year, month, and day elements into
a valid date function in Excel.
Lookup Functions
& Data Tables
Some of the most useful functions in Excel are functions that allow you to locate data stored in
large tables. HLOOKUP and VLOOKUP are the most popular functions for performing this type of
data extraction.
• =HLOOKUP( look up value, table range, row number) searches for a value in the top row of a table
or an array of values, and then returns a value in the same column from a row you specify in the table
or array.
• Use HLOOKUP when your comparison values are located in a row across the top of a table of
data, and you want to look down a specified number of rows.
• =VLOOKUP(lookup value, table range, column number) searches for a value in the leftmost column of
a table, and then returns a value in the same row from a column you specify in the table or array.
• Use VLOOKUP when your comparison values are located in a column to the left of a table of data,
and you want to look across (and to the right) a specified number of columns.
Range lookup
• H/VLOOKUP have an optional
fourth argument called range
lookup. If range lookup is omitted
or TRUE, an approximate match
to the lookup value is returned. If
the range lookup is FALSE, an
exact match is returned. When
lookup value is text or numbers in
non-ascending order, the FALSE
range lookup is often preferred.
• Although less popular than HLOOKUPs and VLOOKUPs, Excel also offers several other data
extraction functions that are often a better fit for solving certain types of data extraction
problems.
• OFFSET returns a cell value or range of cell values that is a specified number of rows and
columns from a cell or range of cells. Syntax: =OFFSET(reference,rows,cols,height,width).
• INDEX returns a value from a specified row and column from within a table or range.
Syntax: =INDEX(array,row_num,column_num).
• The MATCH function returns the relative position (number) of an item in an array that
matches specified lookup value. Syntax:
=MATCH(lookup_value,lookup_array,match_type).
• It does NOT return the value within the cell itself (as opposed to the HLOOKUP and
VLOOKUP functions).
• It does NOT return the value within the cell itself (as opposed to the HLOOKUP and
VLOOKUP functions).
1. To create a dropdown menu, with the cell where you want your drop-down menu active, open the data
validation form (Alt D L).
2. Within the Settings tab, select list from the dropdown menu.
3. Within the ‘Source:’ field, identify a contiguous cell range containing the data you want to include in your
dropdown, and hit OK and you should see your dropdown menu appear (note: it only appears when you
are on the active cell).
• Data tables allow us to examine a piece of output data – such as a company’s EPS –
and how it is impacted by changes in input variables such as revenues and gross margin
assumptions.
• Often used for sensitivity analysis (i.e. EPS’s sensitivity to changes in gross profit margin)
and is used widely by analysts to illustrate a range of possible output values.
1. Referenced output variable from your analysis into the bottom left corner of the data table.
2. Input the input assumptions in the row above and one cell to the right of the output reference.
3. Highlight the entire range (including the output variable) and hit (Alt D T); the Data Table dialog
will appear.
• Row input cell: Reference the input variable from the model.
• Column input cell: Not needed.
• Same as vertical data table but allows for 2 inputs instead of one.
• Output variable must be referenced from the model into the top left corner of the data table.
Mathematical
Functions
• =SUMPRODUCT(array1,
array2,array3, ...)
multiplies corresponding
components in two or
more arrays, and returns
the sum of those products.
• Interestingly,
multiplying a TRUE (or
FALSE) by another
TRUE (or FALSE) also
has the effect of
converting it into a 1 or
0, respectively.
• A lesser know feature of SUMPRODUCT is the ability to embed criteria directly into the arrays.
• For example, we can directly calculate proceeds on options that have an exercise price less than the share
price so you no longer need to calculate option proceeds for each tranche:
• We have 2 criteria – the options # and the exercise price per tranche, which is multiplied against a
TRUE or FALSE criteria for each exercise tranche.
• Tranche 1 evaluates to TRUE, so Excel multiplies the TRUE by the Tranche 1 exercise price, and then
by the # of options.
• Tranche 2 & 3 evaluate to FALSE, and become 0 when multiplied by the exercise prices.
• =SUMIF(range, criteria, sum range) adds the cells specified by a given criteria.
• Criteria can either be hardcoded which requires quotation marks as you see below, or a
direct cell reference (which would not need quotes around it).
• Same as SUMIF but can handle multiple criteria and sum ranges.
AVERAGEIF and AVERAGEIFS are identical to SUMIF and SUMIFS but instead of
summing, this function averages the data in the range.
• ABS
• CEILING
• FLOOR
• COMBIN
• ROUND
• ROUNDUP
• ROUNDDOWN
• MIN and MAX functions are used frequently in financial analysis. A classic use in financial
modeling is to use a max function to prevent a revolving credit line balance from dipping
below 0 when there is a cash shortfall.
• COUNTIF: =COUNTIF(range, criteria) counts the number of items in the range that satisfy a
specific criteria – similar to the SUMIF function.
• COUNTIFS: =COUNTIF(range1, criteria1, range2, critera2) allows for multiple criteria – similar
to the SUMIFs function.
• Syntax: =PV(rate, nper, pmt, fv, type) where: rate Interest rate per period
fv Future value
pv Present value
Text Functions
MID FIND
PROPER SUBSTITUTE
UPPER REPLACE
• In the illustration, we
first sort by industry,
and then by market cap,
and create a subtotal for
each industry.
• To remove individual
filters, click on the filter
icon and ‘Clear filter.’
(cont’d)
1. Drag ‘Property Type’
to COLUMNS.
• To see counts of properties by REIT and Region instead of sum of all their property values,
all you need to do is change the Value Field Settings of the field in VALUES.
• The Field Settings enables you to show outputs in a variety of different ways.
• In this illustration we
present property values
for each REIT and Region
as a % of the total.
Using Excel to
Solve Problems
ü Use Excel
ü Incorporate what you learned
Using LAMBDA to
Create Custom Functions
Appendix:
Recording Macros &
Custom Formatting
• Excel also enables users with no programming knowledge to write Macros using Excel’s
intuitive macro recorder, which essentially watches what you do visually in Excel and
converts it into a programming script.
• Of course, having a computer programming background can definitely help power charge
your macros because Excel enables you to write these Macros using programming scripts
• The goal of this brief treatment of macros is to introduce you to the macro recorder and give
you just a sliver for vast capabilities of using macros in Excel.
Before we begin, make sure that you see the Developer tab in the ribbon.
wallstreetprep.com
Licensed to Pranav Suresh. Email address: prnvsuresh@gmail.com