Excel PPT - Board Infinity
Excel PPT - Board Infinity
ANALYTICS WITH
EXCEL
What is Microsoft Excel?
Microsoft Excel is a spreadsheet program that is used to record and analyse numerical data.
∙ Think of a spreadsheet as a collection of columns and rows that form a table. Alphabetical letters are
usually assigned to columns and numbers are usually assigned to rows.
∙ The point where a column and a row meet is called a cell.
∙ The address of a cell is given by the letter representing the column and the number representing a row.
Let's illustrate this using the following image.
Understanding the Ribbon
The ribbon provides shortcuts to commands in Excel. A command is an action that the user performs. An
example of a command is creating a new document, printing a documenting, etc. The image below shows
the ribbon used in Excel 2013
Understanding the Worksheet
A worksheet is a collection of rows and columns. When a row and a column meet, they form a cell. Cells are
used to record data. Each cell is uniquely identified using a cell address. Columns are usually labelled with
letters while rows are usually numbers.
A workbook is a collection of worksheets. By default, a workbook has three cells in Excel. You can delete or
add more sheets to suit your requirements. By default, the sheets are named Sheet1, Sheet2 and so on and
so forth. You can rename the sheet names to more meaningful names i.e. Daily Expenses, Monthly Budget,
etc.
Data Types in Excel:
A better definition of a data type is a data storage format that can contain a specific type or range of values
Format Cells:
∙ Excel cell format option is used for changing the appearance of number without any changes in number.
∙ To formatting the cells there are five tabs in Format Cells. By using this, we can change the date style,
time style, Alignments, insert the border with different style, protect the cells, etc.
∙ We can find this option with right click of the mouse. After right-clicking, pop-up will appear, and then we
need to click on Format Cells or we can use shortcut key Ctrl+1 on our keyboard.
Number Tab:
∙ Excel number format used for changing the formatting of number cells in decimals, providing the
desired format, in terms of number, dates, converting into percentage, fractions, etc.
∙ Basis the requirement, any data type can be formatted accordingly in the number tab.
You can also use the Increase Font Size and Decrease Font Size commands or enter a custom font
size using your keyboard.
To change the font colour:
1. Select the cell(s) you want to modify.
2.Click the drop-down arrow next to the Font Color command on the Home tab. The
Color menu will appear.
3. Select the desired font color. A live preview of the new font color will appear as you hover the
mouse over different options. In our example, we'll
choose Green.
Text alignment
By default, any text entered into your worksheet will be aligned to the bottom-left of a cell, while any
numbers will be aligned to the bottom-right. Changing the alignment of your cell content allows you to
choose how the content is displayed in any cell, which can make your cell content easier to read.
Left align: Aligns content to the left border of the cell
Centre align: Aligns content an equal distance from the left and right borders of the cell
In our example below, we'll modify the alignment of our title cell to create a more polished look and further
distinguish it from the rest of the worksheet.
2.Click the drop-down arrow next to the Borders command on the Home tab. The
Borders drop-down menu will appear.
3.Select the border style you want to use. In our example, we will choose to display
All Borders
4. The selected border style will appear.
You can draw borders and change the line style and colour of borders with the Draw Borders
tools at the bottom of the Borders drop-down menu.
Format Painter
One of the most powerful tools in Excel is the ability to apply specific formatting for text and
numbers. Instead of displaying all cell content in exactly the same way, you can use formatting to
change the appearance of dates, times, decimals, percentages
(%), currency ($), and much more.
In our example, we'll change the number format for several cells to modify the way dates are
displayed.
Cell references in Excel are very important. Understand the difference between relative, absolute and
mixed reference.
Relative Reference
By default, Excel uses relative references. See the formula in cell D2 below. Cell D2 references
(points to) cell B2 and cell C2. Both references are relative.
1. Select cell D2, click on the lower right corner of cell D2 and drag it down to cell D5.
Cell D3 references cell B3 and cell C3. Cell D4 references cell B4 and cell C4. Cell D5 references cell B5
and cell C5. In other words: each cell references its two neighbours on the left.
Absolute Reference
See the formula in cell E3 below.
1. To create an absolute reference to cell H3, place a $ symbol in front of the column letter and row
number ($H$3) in the formula of cell E3.
2. Now we can quickly drag this formula to the other cells.
The reference to cell H3 is fixed (when we drag the formula down and across). As a result, the
correct lengths and widths in inches are calculated.
Mixed Reference
Sometimes we need a combination of relative and absolute reference (mixed reference).
1. See the formula in cell F2 below.
2. We want to copy this formula to the other cells quickly. Drag cell F2 across one cell, and
look at the formula in cell G2.
Do you see what happens?
The reference to the price should be a fixed
reference to column B. Solution: place a $
symbol in front of the column letter ($B2) in
the formula of cell F2. In a similar way,
when
we drag cell F2 down, the reference to the
reduction should be a fixed reference to
row 6. Solution: place a $ symbol in front of
the row number (B$6) in the formula of cell
F2.
Note: we don't place a $ symbol in front of the row number of $B2 (this way we allow the
reference to change from $B2 (Jeans) to $B3 (Shirts) when we drag the formula down). In a
similar way, we don't place a $ symbol in front of the column letter of B$6 (this way we allow the
reference to change from B$6 (Jan) to C$6 (Feb) and D$6 (Mar) when we drag the formula
across).
3. Now we can quickly drag this formula to the other cells. The references to column B and row
6 are fixed.
Navigations using Excel:
Enter moves the cursor down. Shift+ Enter moves the cursor up. Tab moves
the cursor to the right.
Shift + Tab moves it back to the left.
The Home key moves the cursor to the beginning of the current row in column A.
Ctrl + Shift + Arrow Key selects the data till the last cell in which data is there, in the direction of
Arrow key
Ctrl + Arrow Key Moves the active cell to the last cell with data in appropriate direction
Excel allows you to copy content that is already entered into your spreadsheet and paste that
content to other cells, which can save you time and effort.
4. Click the Paste command on the Home tab, or press Ctrl+V on your keyboard.
5. The content will be pasted into the selected cells.
To cut and paste cell content:
Unlike copying and pasting, which duplicates cell content, cutting allows you to move content
between cells.
2. Click the Cut command on the Home tab, or press Ctrl+X on your keyboard.
3. Select the cells where you want to paste the content. The cut cells will now have a dashed box
around them.
4. Click the Paste command on the Home tab, or press Ctrl+V on your keyboard.
5. The cut content will be removed from the original cells and pasted into the selected cells.
2. Click, hold, and drag the fill handle until all of the
cells you want to fill are selected.
3. Release the mouse to fill the selected cells.
To continue a series with the fill handle:
Sorting Data
Let’s say you had the spreadsheet above and wanted to sort by price. This process is fairly
simple. You can either highlight the whole column or even click on the first cell in the
column to get started. Then you will:
The filter feature applies a drop-down menu to each column heading, allowing you
to select specific choices to narrow a table.
Using the above example, let’s say you wanted to filter your table by Company
and Salesperson. Specifically, you want to find the number of sales Dylan
Rogers made to Eastern Company.
As you can see, Excel offers a variety of sorting and filtering tools to help you refine your data
and keep it organized
Text to Columns
To separate the contents of one Excel cell into separate columns, you can use the 'Convert Text to Columns
Wizard'. For example, when you want to separate a list of full names into last and first names.
1. Select the range with full names.
Note: if you don't want users to access the items on Sheet2, you can hide Sheet2. To achieve this, right
click on the sheet tab of Sheet2 and click on Hide.
2. On the first sheet, select cell B1.
3. On the Data tab, in the Data Tools group, click Data Validation.
Note: to copy/paste a drop-down list, select the cell with the drop-down list and press CTRL
+ c, select another cell and press CTRL + v.
7. You can also type the items directly into the Source box, instead of using a range
reference.
Note: this makes your drop-down list case sensitive. For example, if a user types yes, an
error alert will be displayed.
Conditional Formatting
Conditional formatting in Excel enables you to highlight
cells with a certain colour, depending on the cell's
value.
Top/Bottom Rules
To highlight cells that are above average,
execute the following steps.
1. Select the range A1:A10.
2. On the Home tab, in the Styles group, click Conditional Formatting.
5. Click OK.
Result. Excel calculates the average (42.5)
and formats the cells that are above this
average.
Aggregate
Functions:
SUM
MAX:
COUNT:
COUNTA:
AVG:
CONDITIONALS:
IF:
IF with OR:
IF with AND:
A simple nested IF
A nested IF is just two more IF statements in a formula, where one IF statement appears inside the
other.
To illustrate, below I've extended the original pass/fail formula above to handle "incomplete" results
by adding an IF function, and nesting one IF inside the other:
IFERROR:
SUMIFS:
SUMIFS is a function to sum cells that
meet multiple criteria. SUMIFS can be
used to sum values when adjacent cells
meet criteria based on dates, numbers,
and text. SUMIFS supports logical
operators (>,<,<>,=) and wildcards (*,?) for
partial matching.
SUMIF:
COUNTIFS:
The Excel COUNTIFS function returns the
count of cells that meet one or more
criteria. COUNTIFS can be used with
criteria based on dates, numbers, text, and
other conditions. COUNTIFS supports
logical operators (>,<,<>,=) and wildcards
(*,?) for partial matching.
AVERAGEIF:
The Excel AVERAGEIF function computes
the average of the numbers in a range that
meet the supplied criteria. The criteria for
AVERAGEIF supports logical operators
(>,<,<>,=) and wildcards (*,?) for partial
matching.
AVERAGEIFS:
The Excel AVERAGEIFS function calculates
the average of numbers in a range that meet
one or more supplied criteria. The criteria in
AVERAGEIFS supports logical operators
(>,<,<>,=) and wildcards (*,?) for partial
matching.
DATE AND TIME FUNCTIONS
Date Function:
Today Function:
NOW function
NOW() function returns the current date and time.
DateValue Function:
TEXT Function:
Day Function:
MONTH function
MONTH (serial_number) function in
Excel returns the month of a specified
date as an integer ranging from 1
(January) to 12 (December).
For example:
=MONTH(A2) - returns the month of a
date in cell A2.
=MONTH(TODAY()) - returns the
current month.
YEAR Function:
EOMONTH function
EOMONTH(start_date, months) function returns the last day of the month a given number of months
from the start date.
WEEKDAY
DATEDIF function:
EDATE function
EDATE(start_date, months) function returns the serial number of the date that is the specified number of months
before or after the start date.
For example:
=EDATE(A2, 5) - adds 5 months to the date in cell A2.
=EDATE(TODAY(), -5) - subtracts 5 months from today's date.
WORKDAY function
WORKDAY (start_date, days, [holidays]) function returns a date N workdays before or after the start date. It
automatically excludes weekend days from calculations as well as any holidays that you specify.
This function is very helpful for calculating milestones and other important events based on the standard working
calendar.
For example, the following formula adds 45 weekdays to the start date in cell A2, ignoring holidays in cells B2:B8:
=WORKDAY(A2, 45, B2:B85)
WORKDAY.INTL function
WORKDAY.INTL(start_date, days, [weekend], [holidays]) allows calculating a date N number of workdays in the
future or in the past with custom weekend parameters.
For example, to get a date 20 workdays after the start date in cell A2, with Monday and Sunday counted as
weekend days, you can use either of the following formulas:
=WORKDAY.INTL(A2, 20, 2, 7) or
WORKDAY.INTL(A2, 20, "1000001")
NETWORKDAYS function
NETWORKDAYS(start_date, end_date, [holidays]) function returns the number of weekdays between two
dates that you specify. It automatically excludes weekend days and, optionally, the holidays.
For example, the following formula calculates the number of whole workdays between the start date in A2 and
end date in B2, ignoring Saturdays and Sundays and excluding holidays in cells C2:C5:
=NETWORKDAYS(A2, B2, C2:C5)
NETWORKDAYS.INTL function
NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays]) returns the number of weekdays
between two dates, but lets you specify which days should be counted as weekends.
Here is a basic NETWORKDAYS formula:
=NETWORKDAYS(A2, B2, 2, C2:C5)
The formula calculates the number of workdays between the date in A2 (start_date) and the date in B2
(end_date), excluding the weekend days Sunday and Monday (number 2 in the weekend parameter), and
ignoring holidays in cells C2:C5.
Lookup Functions - Vlookup:
VLOOKUP is an Excel function to lookup and retrieve data from a specific column in table.
VLOOKUP supports approximate and exact matching, and wildcards (* ?) for partial matches.
The "V" stands for "vertical". Lookup values must appear in the first column of the table, with
lookup columns to the right.
Hlookup:
HLOOKUP is an Excel function to lookup and retrieve data from a specific row in table. The "H" in
HLOOKUP stands for "horizontal", where lookup values appear in the first row of the table, moving
horizontally to the right. HLOOKUP supports approximate and exact matching, and wildcards (* ?)
for finding partial matches.
INDEX and MATCH
Use INDEX and MATCH in Excel instead of using VLOOKUP and HLOOKUP. To perform advanced
lookups, you'll need INDEX and MATCH.
Match
The MATCH function returns the position of a value in a given range. For example, the MATCH function
below looks up the value 53 in the range B3:B9.
Explanation: 53 (first argument) found at position 5 in the range B3:B9 (second argument). In this
example, we use the MATCH function to return an exact match so we set the third argument to 0.
Index
The INDEX function below returns a specific value in a one-dimensional range.
Explanation: the INDEX function returns the 5th value (second argument) in the range E3:E9 (first argument).
Index and Match
Replace the value 5 in the INDEX function (see previous example) with the MATCH function (see first
example) to lookup the salary of ID 53.
Explanation: the MATCH function returns position 5. The INDEX function needs position 5. It's a perfect
combination. If you like, you can also use the VLOOKUP function. It's up to you. However, you'll need
INDEX and MATCH to perform advanced lookups, as we will see next.
Two-way Lookup
The INDEX function can also return a specific value in a two-dimensional range. For example, use the
INDEX and the MATCH function in Excel to perform a two-way-lookup
Case-sensitive Lookup
By default, the VLOOKUP function performs a case-insensitive lookup. However, you can use the INDEX,
MATCH and the EXACT function in Excel to perform a case-sensitive lookup.
Note: the formula correctly looks up the salary of MIA Reed, not Mia Clark.
Left Lookup
The VLOOKUP function only looks to the right. No worries, you can use the INDEX and the MATCH
function in Excel to perform a left lookup.
Note: when we drag this formula down, the absolute references ($E$4:$E$7 and
$G$4:$G$7) stay the same, while the relative reference (A2) changes to A3, A4, A5, etc.
Two-column Lookup
Do you want to look up a value based on multiple criteria? Use the INDEX and the MATCH function
in Excel to perform a two-column lookup.
Note: the array formula above looks up the salary of James Clark, not James Smith, not James
Anderson.
Closest Match
To find the closest match to a target value in a data column, use the INDEX, MATCH, ABS and the
MIN function in Excel.
TEXT Functions: Concatenate:
LEFT:
RIGHT:
MID
TRIM:
Replace:
LEN
FIND:
ROUND:
SUBTOTAL:
Keys for other Aggregate operation:
Charts
A simple chart in Excel can say more than a sheet full of
numbers. As you'll see, creating charts is very easy.
Create a Chart
To create a line chart, execute the following steps.
1. Select the range A1:D7.
Charts
A simple chart in Excel can say more than a sheet full of numbers. As you'll see, creating charts is very easy.
Create a Chart
To create a line chart, execute the following steps.
1. Select the range A1:D7.
2. On the Insert tab, in the Charts group, click the
Line symbol.
3. Click Line with Markers.
Result:
Note: enter a title by clicking on Chart Title. For
example, Wildlife Population.
Change Chart Type
You can easily change to a different type
of chart at any time.
1.Select the chart.
2.On the Design tab, in
the Type group, click
Change Chart Type.
3.On the left side, click
Column.
4.Click OK.
Result
:
Switch Row/Column
If you want to display the animals (instead
of the months) on the horizontal axis,
execute the following steps.
1.Select the chart.
2.On the Design tab, in the Data group,
click Switch Row/Column.
Result:
Legend Position
To move the legend to the right side of the
chart, execute the following steps.
1.Select the chart.
2.Click the + button on the right side of the
chart, click the arrow next to Legend and
click Right.
Result:
Data Labels
You can use data labels to focus your readers' attention on a single data series or data point.
1.Select the chart.
2.Click a green bar to select the Jun data series.
3.Hold down CTRL and use your arrow keys to select the population of Dolphins in June (tiny green bar).
4.Click the + button on the right side of the chart and click the check box next to Data Labels.
Result:
Pivot Tables
Pivot tables are one of Excel's
most powerful features. A pivot
table allows you to extract the
significance from a large,
detailed data set.
Our data set consists of 213
records and 6 fields. Order ID,
Product, Category, Amount,
Date and Country.
Result.
Filter
Because we added the Country field to the
Filters area, we can filter this pivot table by
Country. For example, which products do we
export the most to France?
France.
Note: you can use the standard filter (triangle next to
Row Labels) to only show the amounts of specific
products.
Note: the report filter (cell B1) changes to Fruit. Hold down CTRL to include fruit and vegetables.
Pivot Chart
A pivot chart is the visual representation of a pivot table in Excel. Pivot charts and pivot tables are
connected with each other.
Result:
Dashboarding:
An Excel dashboard is one pager
(mostly, but not always necessary)
that helps managers and business
leaders in tracking key KPIs or
metrics and take a decision based on
it. It contains charts/tables/views that
are backed by data. A dashboard is
often called a report, however, not all
reports are dashboards.