Advanced Features of MS Excel: Sajith Vimukthi Weerakoon
Advanced Features of MS Excel: Sajith Vimukthi Weerakoon
Excel
Sajith Vimukthi Weerakoon
Before we start…
Two way communication
Exchange of knowledge
Sleeping is extremely encouraged
Assumptions
Everybody uses Microsoft Excel as their
spread sheet
Excel 2007 or later is the most used software
Content
Cell Formatting
Cell Protection
Sharing
Data Validation
Calculations with Excel
Introduction to Macros
Add-ins
Project-X
Advanced Begins with
Simples
Basic Cell Formatting
Select the region
Right Click and select cell formatting
Available features
◦ Currency
◦ Percentage
◦ Date
◦ Text – Wrap Text
Format Cells -> Wrap Cells
Basic Cell Formatting Cntd…
Custom Formats
◦ Can define different formatting types
◦ Styles and number formats
Done formatting?
Many different formats to different cells
Someone can change the formats
◦ Accidentally
◦ Intentionally
How to keep your changes remaining
◦ Cell Protection
◦ Cell Validation
Cell Protection
You can protect
◦ Workbook
◦ Cells
If you are not so sure of your colleagues
◦ Add passwords
Workbook level protection
Go to Review -> Protect Sheet
Lock styles
Add passwords
Un-protecting the sheet
Cellwise Protecting
By default the worksheet cell formats are
locked
Go to home tab -> Cells Groups -> Format
Then add your protection mechanism
Share a Workbook among many
people
Go to Review Tab
Select Share Workbook under the Changes
Group
Tick ‘Allow changes by more than one user at
◦ http://www.homeandlearn.co.uk/excel2007/excel2
007s8p3.html
Data Validation – Example Drop
Down List
Sample Data Sheet
Go to Data Validation
◦ Data Sheet
◦ Assign grades to students under
x>75 – A
65<x<74 – B
50<x<64 – C
35<x<49 – S
X<34 – F
Insert Macros to Excel
Use the VBA (Visual Basic for Applications)
Editor
A useful article
◦ http://office.microsoft.com/en-in/excel-help/creat
e-custom-functions-in-excel-2007-HA010218996
.aspx
But before all!!!
program
◦ Uses a preprocessor for textual manipulations
◦ Thus Macros -> Preprocessor Directives
Why Macros?
Add custom functions
Program your excel sheet
Add different features to your sheet
Write a simple macro
Press Alt+F11 to invoke the VBA Editor
Sample application to find the discount.
Why Application.Round
◦ No Round for VBA
Excercise
Redo the earlier example in VBA Editor. The
Answer will be in the next slide.
Exercise - Answer
Function Grade(marks)
If marks < 34 Then
Grade = "F"
Else
If marks < 50 Then
Grade = "S"
Else
If marks < 65 Then
Grade = "C"
Else
If marks < 75 Then
Grade = "B"
Else
Grade = "A"
End If
End If
End If
End If
End Function
Introduction to Excel Options
Change the settings and configure Excel
Click on the Windows Button
Go to Excel Options
Change the settings as needed
How to add an add-in to excel
A Useful Article
◦ http://peltiertech.com/WordPress/installing-an-ad
d-in-in-excel-2007/
Click on the Windows Button
Go to Excel Options
Make sure that you have “Excel Add-in” is
◦ http://www.waa-inc.com/projex/index.htm
Can download and as an add-in and install