Professional Documents
Culture Documents
Excel
Table of Contents
Contents
Organising Data: ............................................................................................................................... 4
Sorting data ............................................................................................................................. 4
Outlining Data.......................................................................................................................... 9
Creating subtotals.................................................................................................................... 9
Filtering .................................................................................................................................. 12
Self-Assessment Questions ...................................................................................................14
Working with Complex Functions and Formulas............................................................................15
Financial Functions ................................................................................................................ 15
Logical Functions ................................................................................................................... 16
Text Functions ....................................................................................................................... 18
The Date Function ................................................................................................................. 21
Lookup And References ......................................................................................................... 24
Self-Assessment Questions ...................................................................................................25
Pivot Table 26
Using What-if analysis .................................................................................................................... 30
Data Table.............................................................................................................................. 30
Scenarios Manager ................................................................................................................ 32
Goal Seek: .............................................................................................................................. 36
Self-Assessment Questions ...................................................................................................37
Charts 1
Create a Chart .......................................................................................................................... 1
Change Chart Type .................................................................................................................. 4
Chart Title ................................................................................................................................ 5
Legend Position ....................................................................................................................... 5
Data Labels .............................................................................................................................. 6
Select “Add TrendLine…” ...................................................................................................... 7
Add SparkLines ................................................................................................................................. 7
Reviewing and Sharing Workbooks ................................................................................................ 10
Tracking changes ................................................................................................................... 11
Microsoft Excel allows us to organize the data using sorting, filtering. It will help us to analyse
the data and present it in a more understandable format.
Sorting data
If your Excel worksheet has large data, using the Sort dialog box to sort number of
columns can make it easy to find the data you need. The Sort dialog box tells us what
column to sort on next when two cells in the main sort column have the same value or
data.
Note:
Although it is common to sort is by rows (top - bottom), you can also sort by columns
(left - right). In the Sort dialog box, click the Options button, Select Sort left to right, and
click OK.
You can select only one column of data if you want to sort that column independently of
the rest of the data. However, in most cases, you would want to sort the entire list.
Select the Sort button in the Sort & Filter group on the Data tab.
The Sort dialog box will be displayed. If data is inclusive of column headings, “My Data
Has Headers” check box should be checked. Excel can generally detect the correct setting
automatically.
This drop-down list includes the column headings for each column in the selected list.
This is the column that will sort by if two or more items are same in the first Sort By
option.
After you specify the options for the secondary sort column, you can add more sort
columns as required. Use the Move Up and Move Down buttons if you want to change
the order of the columns to be sorted
Click OK.
The dialog box closes and Excel performs the sorting as follows
Click on Add
Click OK
5. To expand or collapse data in your outline, click the outline symbols. Or click on
1,2,3 etc.
Creating subtotals
The Subtotal command allows you to create groups and use common functions like
SUM, COUNT, and AVERAGE which will help to summarize your data.
Your data has to be correctly sorted before using the Subtotal command
To create a subtotal:
In this example, we use the Subtotal command with a Designation to determine how
many employees are present with each designation
First, sort your worksheet by the data you want to subtotal. In this example, we will
create a subtotal for each Designation, so our worksheet has been sorted by Designation
from smallest to largest.
Filtering
Filtering allows you to display only data that satisfy certain condition. To filter:
Click the column or columns that has the data you want to filter
On the Home tab, click on Sort & Filter. Or Select Data Tab Click on Filter
button
Click the Arrow which is appeared for every column, Select any check box to get
your data.
Financial Functions
The PMT( ) Function
You use this function when you want to calculate things like the monthly payment
amounts on a loan, or how much per month will cost for mortgage amount.
Syntax
Logical Functions
If Function:
This function will test a condition. If the condition is met, it is considered to be TRUE.
If the condition is not satisfied it is considered as FALSE. Based upon the result, one of
two actions will be carried out.
Syntax
=IF(Condition,ActionIfTrue,ActionIfFalse)
Example 1
The following table has the Sales figures and Targets for sales reps.
Each has its own target which it must reach.
The =IF() function will the Sales with the Target.
If the Sales are >= Target the result is shown as Achieved.
If the Sales do not reach the target the result of Not Achieved is shown.
The text used in the =IF() function has to be placed in “ ” double quotes "Achieved".
And Operator
This function tests two or more criterias to see if they are all true.
It is used to test a series of numbers meet certain conditions.
It is used to test a number or a date is between an upper and lower limit.
Normally the AND() function would be used in combination with a function
such as =IF().
Syntax
=AND(Test1,Test2)
Example 3
This example uses the =AND() function within the =IF() function.
A builders merchant gives 10% discount on few product lines.
The discount is given on products which are on Special Offer, when the Order
Value is £1000 or more.
The =AND() function is used along with the =IF() to check that the product is
having offer and that the value of the order is more than £1000.
Or Function
This function tests two or more criterias to see if any of them are true.
It can be used to test at least one of a series of numbers meets certain criteria.
Normally the OR() function would be used in combination with a function such as =IF().
Syntax
=Or(Test1,Test2)
Text Functions
=UPPER(TextToConvert)
Lower Function
This function converts all characters to Lower case.
=LOWER(TextToConvert)
Proper Function
This function converts all alphabets to Proper case
Syntax
=PROPER(TextToConvert)
Left Function
Returns the leftmost characters from a text.
Syntax
=LEFT(OriginalText,NumberOfCharactersNeeded)
=Left(“Computer”,3) will give Com as result
Or we can use as
=Left(A1,3) where if A1 has text “Computer”, will result in “Com”.
Right Function
Returns the Rightmost characters from a text
Syntax
=RIGHT(OriginalText,NumberOfCharactersNeeded)
=RIGHT(“Computer”,3) = “ter” or “=Right(A1,3)” where A1 has “Computer”
Mid Function
Returns the middle Alphabets from a text
Syntax
=MID(OriginalText,startPosition,NumberOfCharacters)
=MID(“Computer”,3,2) will result in “mp”
Or we can use as
=MID(A1,3,2) where if A1 has “Computer” will result in “mp”
If the specified character is not found in the text, the result #VALUE is shown.
Syntax
=FIND(LetterToLook,TextToLookInside,StartingPosition)
LetterToLookFor : This has to be a single character.
TextToLookInside : This is the text to be searched through.
StartPosition : This is optional, it specifies at which position in the text the search should
begin.
Date and Time functions are very common when we are creating spreadsheets.
To get the date functions we use Formulas TabDate & Time Functions
Date Function
This function creates a date by using three numbers typed into separate Parameters
Syntax
=DATE(year,month,day)
Now()
This function shows the current date and time. The displayed date will be updated each
time the worksheet is opened and every time an entry is made anywhere on the
worksheet.
Syntax
=NOW()
Today()
Use this to show the current date.
Synatx
=Today()
DateDif function
We use this to find the difference between the dates.
“Y” – gives difference in Yrs
“YM” –gives difference in Months after completing rounded years.
“MD”--gives difference in Days after completing rounded Months.
Syntax :
=DateDif(Startdate,EndDate,Y/YM/MD)
Lookup And References
VLookUp Function
Excel's VLOOKUP function, which means for vertical lookup, is used to find specific
information that is stored in a sheet.
The syntax for the VLOOKUP function is:
= VLOOKUP ( lookup_value , table_array , col_index_num , range_lookup )
lookup _value: The input value you want to find in the first column of the
table_array
table_array: The range of data that VLOOKUP searches to find your
corresponding information. The table_array must have at least two columns of
data. The first column must have the lookup_values.
col_index_num: The index of the column in the table_array that has the data you
want it be returned.
range_lookup: A logical value (TRUE or FALSE only) that indicates if you want
VLOOKUP to find an exact or an approximate match to the lookup_value.
In the above figure we are extracting the Employee Name/Gender for “E004”
HLookup Function
This function searches across the column headings at the top of a table to find a specified
item.
When the item is found, it then scans down the column to pick a cell entry.
Syntax
=HLOOKUP(ItemToFind,RangeToLookIn,RowToPickFrom,SortedOrUnsorted)
The ItemToFind is a single value specified by the user.
The RangeToLookIn is the range of data with the column headings at the top.
The RowToPickFrom is how far down the column the function should look to pick from.
Pivot Table
A Pivot Table is used to present information in a Table/Graphical format. You can select
from drop down lists and change the data that is to be displayed. Pivot tables are very
easy to grasp and very useful tool for creating reports.
To place a field in the layout section, select the check box next to the fieldname in
the field section or drag the field into either Rows or Column section.
In the above example we drag Deptno into Rows and Gender into columns
Empcode into values
Data Table
If you have a formula that uses one or two inputs, or multiple formulas that all use one
common input, you can use a data table to see all the outcomes in one place. Using data
tables makes it easy to inspect a range of possibilities at a glimpse. Because you focus on
only one or two inputs, results are easy to read and share in table form. If automatic
recalculation is enabled for the workbook, the data in data tables immediately
recalculates; as a result, you always have fresh data.
As an example, we are going to calculate the interest rate, and see how much a Rs10,000
loan would cost each month. The interest rate will be our input cell. With different
interest rate we would be calculating the EMI every month. Use the formula PMT and
calculate the EMI in D1 cell.
Select the range C1:D4(Selection must include formula cell and input cells) as below.
The following dialog will appear, In the “Column input Cell” select cell B2 which is original
interest rate.
As and when we change the interest we get the corresponding output, we can make decision
based on it.
Similarly if the data is typed horizontally select the data as below.
Scenarios Manager
Scenarios is also a part of "What-If Analysis" in Excel. It is similar to data tables in that
you are changing values to get new results. The difference between data table and
Scenario Manger is we can change more than one input value.
We will take similar example as of Data table
Steps
1. Create a sheet with some input values and calculated values.
6. Then appears.
7. Change any of the input values Say $B$2 is 0.22, $B$3 is 60, $B$4 is 10000
8. Click on Add button repeat the process give the name as Output2 and so on as
below.
9. Once all the possible values are given Click Ok.in above figure( We get the
following Dialog box.)
11. Click OK
The result of above scenario is
Observe carefully the above figure, with different interest rates and different duration
different PMT are calculated and shown in Tabular form, which will help us in taking the
decision.
Goal Seek:
Goal seek is considered as reverse engineering concept, instead of calculating the output
we specify what is expected output and goal seek will change the input accordingly.
Steps
Set Cell: will automatically select the cell which has formula.
To value: type the output value (say 300 suppose instead of 276.19 we would like to pay
300 per month)
By changing cell: select the cell where input value you want to change.
4. Click Ok
It will change the Interest rate and display the output as follows, click Ok.
Charts
A chart is a graphical representation of numbers which is used analyse the data in a graphical format.
Excel supports different types of charts to help you display data in a way that is meaningful and
understandable.
Create a Chart
2. Click on Insert tabSelect any chart(Say column chart 2D-Column) from charts group.
Chart Title
2500
2000
1500
1000
500
0
1 2 3 4 5 6 7
4. But the above chart has to be adjusted with respect to fields displayed in the chart.
5. Click the chart which is created, we get a Design tab(It will be displayed only if we
click on the chart) Select ”Select Data” option.
The following will be displayed in “Select Data Source” dialog box once it is done.
Chart Title
To add a chart title, execute the following steps.
1. Select the chart. The Chart Tools contextual tab activates.
2. On the Layout tab, click Chart Title, Above Chart.
Legend Position
By default, the legend appears to the right of the chart. To move the legend to the bottom of
the chart, execute the following steps.
4. Select the chart.
Data Labels
You can use data labels for the selected chart
1. Select the chart created
2. On the Layout tab, click Data Labels, Outside End.
Revenue Vs Expenditure
140 129
120
115
120 110
104
98 98
100 89
78
80 67 66
55
60 50
44
40
20
0
2010 2011 2012 2013 2014 2015 2016
Exp Revenue
Revenue Vs Expenditure
140 129
120
115
120 110
104
98 98
100 89
78
80 67 66
55
60 50
44
40
20
0
2010 2011 2012 2013 2014 2015 2016
Add SparkLines
To insert sparklines in the Excel data ,
1. Select the cells where you want the sparklines to be displayed. In this example, we
select the range of cells E2:E4.
3. Click in the Data Range box and select the range A2:D4.
4. Click OK.
Customize Sparklines
To modify Sparklines, Perform the following steps.
1. Select the Sparklines.
2. Check High Point and Low point.
4. To delete a sparkline, select a sparkline range and select on the Clear button in Design Tab.
When an Excel data is created and passed on to another user, the user may want to do
proofreading. And in Excel we can do it by Track Changes and Comments features.
When we have finished reviewing the worksheet, the other person can choose to
automatically accept all of our changes, or choose whether to accept or reject each change
one by one.
Tracking changes
When Track Changes option is turned on, every change we make to the worksheet will
be highlighted with a distinct border and indicator. Hovering our mouse over a
highlighted cell will display the details of the changes made. This allows the other person
to see what changes were made before making them permanent.
3. Click Yes to confirm that we want to turn off Track Changes and stop sharing
your workbook.
Turning off Track Changes will remove any tracking that is taken place in your workbook.
You will not be able to view or accept, or reject changes; instead, they will be applied to your
workbook automatically. Always review the changes in your worksheet before turning off
Track Changes.
To add a comment:
1. Select any cell where comment has to appear.
4. The red indicator in the upper corner shows that there is a comment in that
particular cell.
1. Click on the Review tab, select Track Changes. Then select Accept/Reject
Changes from the drop-down menu.
4. Click OK.
5. The dialog box Accept or Reject Changes will appear.
6. Click Accept or Reject for each and every change in the document. Excel will
pass through each change automatically till you have passed them all.
To accept or reject all of the changes at one go, click Accept All or Reject All
4. Click OK.
5. The changes will be listed in a new sheet called History.
Summary
Microsoft Excel is one of the office tools that allows users to organize, format, and calculate data
with formulas using a built in formulas. It is also referred as spreadsheet which is broken up by rows
and columns. We can format the data based conditions, and validate the data according to given
conditions. We can sort, filter the data. We can also track the changes which are made by other
users. We can also represent the summarised data in Pivot Table or charts.
Answer Keys
Self-Assessment Questions
Question No. Answer
SubjectiveQuestions
Question No. Answer
1 Refer as Sorting
2 Refer to Track changes
3 Refer to Subtotal
Activity:
Description:
Use the file EmployeeData.xlsx from the previous activity and perform the following
functions:
o Find how many employees are there gender wise, Department wise using
pivot table
o Find Department wise total basic salaries.
Create a chart with gender wise, Department wise using pivot chart.
Use EmployeeData.xlsx file from the previous activity and perform the following
assignment:
o Calculate 10% of Basic as HRA,40% of Basic as DA, Add Basic + HRA+DA
o Use Absolute reference for the above calculation and See the difference.
o Find the total of all basic salary
Use EmployeeData.xlsx file from the previous activity and perform the following
assignment:
o Convert the Emp. name column to capital letter using text functions.
o Calculate the age of the Employee by adding a new column
o Calculate Increment with following conditions:
If Basic >50000 then, 15% increment on Basic must be calculated
Else if Basic >30000, 20% increment on Basic must be calculated
Else, 25% increment on Basic must be calculated
Bibliography
e-References
http://www.excelfunctions.net/ExcelFunctions.html
http://www.excel-examples.com/
http://spreadsheets.about.com/
External Resources