MBA Lab Manual new
MBA Lab Manual new
Prepared by:
Imran Raza Khan
(Assistant Professor)
Dept. of Computer Science & Engineering
INDEX
S.NO. NAME OF THE EXPERIMENT Page NO.
I ABOUT EXCEL
PART A
EXP 1: INTRODUCTION, USES OF EXCEL, NEW FUNCTIONS AND
FEATURES OF EXCEL 2007
Excel is an electronic spreadsheet program that can be used for storing, organizing, analyzing
and manipulating data. Microsoft Excel consists of worksheets. Each worksheet consists of a
grid of columns and rows. There are 16,384 columns in each worksheet, lettered
consecutively from A to XFD. The rows are numbered consecutively from 1 to 1,048,576
.The number of columns and rows you can have in a worksheet is limited by your computer
memory and your system resources.
Microsoft Office Excel possess many similarities, which can make it difficult to decide which
program you should use. For example, both programs can store large amounts of data, run
powerful queries and analysis tools to slice and dice that data, and perform sophisticated
calculations that return the data that you need.
However, each program has clear advantages — depending on the type of data that you are
managing and what you want to do with that data. For example, if it is your goal to maintain
data integrity in a format that can be accessed by multiple users, Access is your best choice,
whereas Excel is better suited for complex numerical data that you want to analyze in depth.
In Excel 2007, more is truly better. Microsoft has increased the number of columns per
spreadsheet (and per PivotTable) to 16,384 (up from 256) and the number of rows to
1,048,576 (up from 65,536). Other limits have been also expanded: Text cells can now
contain more than 32,000 characters (up from 255). Chances are you'll never reach other
new limits: PivotTables can manipulate more than 16,000 fields (up from an already
generous 255), and formulas can now refer to up to 8,000 cells (memory permitting), so it's
fortunate that Excel 2007 lets you drag the corner of the formula bar to expand it.
Excel 2007's memory manager can handle 2GB (double the amount in Excel 2003), so
calculations execute faster. The new version also takes advantage of dual-core processors
and multithreaded chip sets, so if you're lucky enough to be running it on a machine with
either feature, expect a noticeable speed boost.
NEW FUNCTIONS
In 2007 Microsoft has added 5 new functions to Excel. If you use any of these functions and
send the resulting workbooks to colleagues who are using Excel 1997 to 2006, the new
functions will not work. There has always been an extremely powerful and easy to use
function in Excel that can do anything that can be done with 4 of the new functions
(SUMIFS, COUNTIFS, AVERAGEIF, AVERAGEIFS). As a matter of fact you can do even more
than with any of the new functions with SUMPRODUCT. As for the 5th new function
(IFERROR), you can do the same thing combining two old and friendly functions IF and
ISERROR. The functions SUMIFS, AVERAGEIFS and COUNTIFS perform selective calculations:
they take into account only those values which fulfill several criteria. The values could be in
a range s panning several rows and columns.
( Open parenthesis
) Close parenthesis
, Separating arguments
: From A1 to A23 A1:A23
Plus. *** Also: used to submit more than one argument as criteria within a
+
SUMPRODUCT formula.
- Minus
* Multiplies. *** Also: used to separate arguments in SUMPRODUCT formulas
/ Divides
You can also add icons to cells based on their value, giving your worksheet a dashboard-like
quality. For example, assigning traffic-light icons to a range of cells is a snap, and Excel's
built-in logic assigns colored circles based on the value of the cell: green for the highest third,
yellow for the middle third and red for the bottom third.
You can add colored bars to indicate the value in a cell (left) or apply a three-icon set to
indicate which third data falls into (right).
In all cases, you can control the ranges for each icon in the set -- allowing you, for instance,
to use a green traffic light to indicate only the highest 10% of values.
Conditional formatting rules are easy to adjust. Click to view larger image.
Sorting data -- previously limited to three levels -- has been expanded to 64 levels. Best of
all, while you can still sort data based on values (to sort a date column chronologically, for
instance), you can also sort by font, color or icon used with conditional formatting. Thus, you
can display all your green traffic lit cells together, followed by the yellow lights, then the red.
Other visualization tools eliminate the need for complicated macros or formulas. New
conditional formatting options let you highlight duplicates, unique values, the top/bottom
10%, values above or below the average, cells less than or greater than a specified value, or
cells within a range (highlighting cells containing values between 1 and 10, for example).
The new Filter feature offers check boxes to let you pick which rows you want to see.
If you don't need to see all values, the vastly improved Filter feature puts check boxes (for up
to 1,000 values) in a pull-down list, allowing you to easily pick multiple values to display.
Likewise, the new Remove Duplicates feature hides rows based on the duplicate values in
columns you specify.
In Excel 2007, you still set up PivotTables using a wizard, which is slightly changed from
Excel 2003. However, once you have a PivotTable defined, manipulating it is considerably
easier. Instead of dragging and dropping elements within the table itself, you can use the
wizard to make choices -- checking boxes to select which fields to display or choose sorting
options, for example. Excel 2007 makes it easier to switch columns and rows, filter values,
and use or hide field names. In addition, conditional formatting (those data bars or traffic
lights we mentioned) can be applied to cells displayed in PivotTables.
Choose a style from the gallery and see it applied to your selection.
You can quickly apply a collection of settings, from the font used to the background color
and border style to cells, tables and PivotTables. As you mouse over the choices, Excel 2007
applies each style to your selection so you can preview the effect without making the change
permanent. One particularly noteworthy improvement to formatting is how Styles now
respond to changes within your worksheet. In Excel 2003, you could apply a "green bar"
effect so that the background color in rows alternated between green and white. However,
once you added a row, the pattern was interrupted, and you needed to reapply the
AutoFormat, a clumsy and awkward procedure.
To use Themes, select the Page Layout tab and click the Themes button to choose a new
theme. You can also customize any theme or create new ones. One important caveat: Be
aware that Themes only work if you're using Word's new Office XML format; they won't
work on old-style .xls files.
The Ribbon interface also makes it more enjoyable to work with charts. Excel's charts have a
whole new look, thanks to the new graphics engine in all Office 2007 applications. The
layouts use different color palettes and fonts, but the important difference is the ability to
more easily apply graphical effects, such as bevels and shadows, to individual elements (such
as columns or pie slices).
With Excel's new charting engine, you can control everything about charts, from shadows to
the amount of rounding on the corners of bars and columns. The Ribbon has a Chart Tools
group (with tabs for Design, Layout and Format) to put more charting options at your
fingertips and eliminate most of the right-clicking you had to do to adjust charts in previous
versions: switching rows and columns, controlling gridlines and axes, and adding trend lines.
Table tools
Excel's new table features make it less likely you'll have inconsistent formulas. Once you
identify a contiguous range of cells as a table, Excel provides calculated columns. For
example, if you add a column to the right of your table and enter a formula in any row, the
formula will be copied to all cells in that new column, saving the time of executing a
copy/paste command.
Even smarter, add a row and Excel is sure to include it in a total on the bottom row. (In
previous versions of Excel, adding a row at the top or bottom of a range meant you risked
omitting cells in that row from the sum formula.)
Finally, the new Table Gallery makes it easy to select and apply a sophisticated look.
Other changes
There are dozens of other small changes In Excel 2007. Among the 51 new functions are
some to fetch data from OLAP cubes, calculate Bessel functions (for engineers), convert
numbers (decimal to binary, hex to octal and so on) and work with complex numbers
(calculating the square root or sine of a complex number, for example).
Two new functions, SUMIFS and AVERAGEIFS, let you choose cells that meet multiple
conditions without having to use nested functions. Speaking of nesting, should you need it,
the number of nesting levels has increased, from seven in Excel 2003 to 64.
Saving a document in PDF or XPS format is now possible through the Office button.
Staying compatible
You'll have to deal with four new XML-based file formats in Excel 2007 -- .xlsx for standard
worksheets, .xlsm for those with macros, plus .xltx and .xltm for templates. Like Word 2007,
Excel 2007 offers a compatibility checker and tells you if your workbook contains features
that previous versions of Excel won't support. Choose Office button > Prepare > Run
Compatibility Checker to launch it.
If you're sharing documents, you'll probably want to save them in Excel 2003 format to
maintain compatibility with other users -- at least until the new 2007 file format becomes the
standard or you know your recipient has the free patch that lets Office 2003 users read and
work with 2007 files.
To set Excel 2007 to save to the 2003 format by default, click on the Office button and then
the Excel Options button. In the left panel of the screen that appears, click Save, then locate
the "Save workbooks" area on the right. From the "Save files in this format" drop-down list,
choose Excel 97-2003 Workbook and click OK.
In the upper-left corner of the Excel 2007 window is the Microsoft Office button. When you
click the button, a menu appears. You can use the menu to create a new file, open an existing
file, save a file, and perform many other tasks.
In the upper-left corner of the Excel 2007 window is the Microsoft Office button. When you
click the button, a menu appears. You can use the menu to create a new file, open an existing
file, save a file, and perform many other tasks.
Next to the Quick Access toolbar is the Title bar. On the Title bar, Microsoft Excel displays
the name of the workbook you are currently using. At the top of the Excel window, you
should see "Microsoft Excel - Book1" or a similar name.
The Ribbon
You use commands to tell Microsoft Excel what to do. In Microsoft Excel 2007, you use the
Ribbon to issue commands. The Ribbon is located near the top of the Excel window, below
the Quick Access toolbar. At the top of the Ribbon are several tabs; clicking a tab displays
several related command groups. Within each group are related command buttons. You click
buttons to issue commands or to access menus and dialog boxes. You may also find a dialog
box launcher in the bottom-right corner of a group. When you click the dialog box launcher, a
dialog box makes additional commands available.
Microsoft Excel consists of worksheets. Each worksheet contains columns and rows. The
columns are lettered A to Z and then continuing with AA, AB, AC and so on; the rows are
numbered 1 to 1,048,576. The number of columns and rows you can have in a worksheet is
limited by your computer memory and your system resources.
The combination of a column coordinate and a row coordinate make up a cell address. For
example, the cell located in the upper-left corner of the worksheet is cell A1, meaning
column A, and row 1. Cell E10 is located under column E on row 10. You enter your data
into the cells on the worksheet.
Formula Bar
If the Formula bar is turned on, the cell address of the cell you are in displays in the Name
box which is located on the left side of the Formula bar. Cell entries display on the right side
of the Formula bar. If you do not see the Formula bar in your window, perform the following
steps:
The Status bar appears at the very bottom of the Excel window and provides such
information as the sum, average, minimum, and maximum value of selected numbers. You
can change what displays on the Status bar by right-clicking on the Status bar and selecting
the options you want from the Customize Status Bar menu. You click a menu item to select
it. You click it again to deselect it. A check mark next to an item means the item is selected.
By using the arrow keys, you can move around your worksheet. You can use the down arrow
key to move downward one cell at a time. You can use the up arrow key to move upward one
cell at a time. You can use the Tab key to move across the page to the right, one cell at a
time. You can hold down the Shift key and then press the Tab key to move to the left, one
cell at a time. You can use the right and left arrow keys to move right or left one cell at a
time. The Page Up and Page Down keys move up and down one page at a time. If you hold
down the Ctrl key and then press the Home key, you move to the beginning of the worksheet.
Application Window
The Application Window provides the space for your worksheets and workbook elements
such as charts. The components of the Application Window are described below:
Formula Bar Next to the Name Box Displays the contents of the
active cell.
Worksheet
A grid of columns and rows where columns
are designated by letters running across the
top of the worksheet and rows are designated
by numbers running down the left side of the
worksheet.
Sheet tabs
Moves from one worksheet to another
worksheet and are located at the bottom of the
workbook. Right-clicking on the sheet tab
will display options.
Scrolling buttons
Scrolls the display of sheet tabs one at a time
or to display the first and last grouping of
sheet tabs and are located to the left of the
sheet tabs.
Navigation
As you enter and edit data, you will need to move through the worksheet. Excel provides a
variety of methods for quickly navigating the worksheet.
Define each of the quick navigation techniques and the action it will cause.
Divide a worksheet into panes by freezing sections of data.
Action Results
Arrow Keys Moves the active cell left, right, up or down one row or column
Moves active cell to the top or bottom of the current column with data.
End Pressing one of the directional arrow keys will move the active cell to the
left-most or right-most cell in the current row with data
Ctrl+End Moves the active cell to the last cell in the spreadsheet with data
Page Up/Page Moves the active cell up or down by one screen full of rows
Down
Note: If you want to confine the cell movement to a specific range, you can highlight that
range and then use the Enter key to move through the selected cells. The cell selection will
wrap within the range. You can also use the Tab and Enter keys while working in a range, but
note that if you use the arrow keys your range will be deselected.
Freezing Panes
When working with larger spreadsheets, it may be helpful to keep the column titles in sight
while navigating the data. In Excel, you can divide the worksheet into panes by freezing
particular sections of data. When you freeze the row containing the column titles, they will be
locked in place while you scroll through the rest of the worksheet.
To freeze column titles:
Make sure that your worksheet is being viewed in Normal (Go to View menu, select
Normal)
Select and highlight the desired columns/rows to freeze.
Select the Window menu.
Select Freeze Panes.
The home tab in Excel 2007 ribbon is divided into 7 groups, or sections, presented in a
toolbar:
1. Clipboard : contains the main edit commands: Cut, Copy and Paste plus the Format
painter. The Paste command can be expanded by clicking on the arrow below it to give a
submenu which is basically a Paste Special options.
3. Alignment: Text vertical and horizontal alignment, indentation, text wrapping… etc.
4. Number: Number formatting e.g. Number, Date, accounting. Also decimals, comma style
and percentage.
5. Styles: Allows you to specify Conditional formatting by defining formatting rules. You
can also format a selected cell by selecting one of the built in formatting styles or you can
define a range as a table, and give it one of the predefined styles, or further more you can
define your own style.
Note:
Click on the arrow below or next to each option to reveal more options.
Insert Tab
Tables
More table or pivot table options will be shown when the table is created.
To insert picture, clip art, shapes or SmartArt (a more stylish flowchart-like shapes).
Clip Art - Insert Clip Art into the document, including movies, sounds, or stock
photography to illustrate a specific concept.
Shapes - Insert ready-made shapes, such as rectangles and circles, arrows, lines,
flow chart symbols, and callouts.
Charts
To insert different types of charts. More chart specific options will be shown when the chart
is created.
Column - Insert a column chart. Column charts are used to compare values across
categories. If chart data is selected, or the cursor is in or adjacent to the data, pressing
F11 automatically creates a column chart.
Line - Insert a line chart. Line charts are used to display trends over time.
Pie - Insert a pie chart. Pie charts display the contribution of each value to a total.
Use a pie chart when values can be added together or when you have only one data
series and all values are positive.
Bar - Insert a bar chart. Bar charts are the best chart type for comparing multiple
values.
Area - Insert an are chart. Area charts emphasize differences between several sets of
data over a period of time.
Scatter - Insert a Scatter chart, also known as an X Y chart. This type of chart
compares pairs of values. Use a Scatter chart when the values being charted are not in X-
axis order or when they represent separate measurements.
Links
To insert text box, header and footer, wordart, digital signature, object (embedded document
like word or power point presentation) or a symbol.
Text Box - Insert a text box that can be positioned anywhere on the page. In Office
2007 you can also create a text box by using the Paste as Picture feature when on the
Home tab.
Header & Footer - Edit the Header or Footer of the document. The information in the
Header or Footer will appear at the top or bottom of each printed page.
WordArt - Insert decorative text in your document. Caution : if you are a long-time
user of Word Art you may be a bit disappointed in the 2007 version - the choices are a
bit tame.
Signature Line - INsert a signature line that specifies the individual who must sign.
Inserting a digital signature requires that you obtain a digital ID, such as one from a
certified Microsoft partner.
Object - Insert an embedded object. Some objects supported are Adobe Acrobat
documents, Photoshop Elements images, Microsoft Equation, and several others.
Symbol - Insert characters that are not on your keyboard, such as copyright symbols,
trademark symbols, paragraph marks, and Unicode characters. This is way beyond
Wingdings or Webdings. Even Times New Roman has a large number of symbols and
foreign letter characters which can be inserted.
Themes
Change the theme of the current worksheet including fonts, colors and fill effects.
Themes - Change the overall design of the entire document, including colors, fonts,
and effects.
Page Setup
Margins - Select the margin sizes for the entire document or the current selection.
Size - Choose a paper size for the current section. To apply a specific paper size to
all sections of the document, click on More Paper Sizes .
Breaks - Specify where a new page will begin in the printed copy. Page breaks are
inserted above and to the left of the selection.
Print Titles - Specify rows and columns to repeat on each printed page.
Diagonal Arrow - Click on the arrow in the bottom right corner of Page Setup to see the
Page Setup dialog box (Page tab selected, three other tabs are available)
Scale to Fit
Specify scaling of the page so that you force the document to fit into a specific number of
pages.
Width - Shrink the width of printed output to fit a maximum number of pages.
Height - Shrink the height of printed output to fit a maximum number of pages.
Scale - Stretch or shrink the printed output to a percentage of its actual size. The
maximum width and height must be set to "Automatic" to use this feature.
Diagonal Arrow - Click on the arrow in the bottom right corner of Scale to Fit to see
the Page Setup dialog box (Page tab selected, three other tabs are available)
Switch sheet direction (right-to-left), view or print gridlines and view or print worksheet
headings (letters at the top of the sheet and numbers to the left of the sheet).
Gridlines - Show, or hide, the lines between rows and columns in the sheet.
Showing makes numbers in columns or rows easier to read or edit. Hiding gridlines is
useful if you are making a graphic organizer in Excel. These lines will not print unless
the Print box is checked.
Headings - Show row and column headings. Row headings are the row numbers
on the side of the sheet that range from 1 to 1,048,576. Column headings are the letters
that appear above the columns on a sheet that range from A to XFD. This is also found
on the View tab of an Excel Workbook.
Diagonal Arrow - Click on the arrow in the bottom right corner of Sheet Options to see
the Page Setup dialog box (Sheet tab selected, three other tabs are available)
Arrange
If you have shapes or objects in the worksheet, here you can arrange, align or group the
shapes.
Bring to Front - Bring the selected object in front of all other objects so that no part
of it is hidden behind another object.
Send to Back - Click here to send the selected object back one level or to the back
of all objects.
Selection Pane - Show the Selection Pane to help select individual objects and to
change their order and visibility.
Align - Align the edges of multiple selected objects. You can also center the objects
or distribute them evenly across the page.
Group - Group objects together so that they can be treated like a single object.
Rotate - Rotate or flip the selected object.
Formulas Tab
The formulas tab in Excel 2007 ribbon consists of 5 groups that deal with formulas and
functions:
Function Library
Chose from a set of Excel 2007 built-in functions. Functions are divided into groups for easy
access.
Insert Function - Edit the formula in the current cell by choosing functions and editing
the arguments. The keyboard shortcut to insert a function is Shift + F3 .
AutoSum - Display the sum of the selected cells directly after the selected cells. The
keyboard shortcut for autosum is Alt + = .
Recently Used - Browse and select from a list of recently used functions.
Date and Time - Browse and select from a list of date and time functions.
Lookup and Reference - Browse and select from a list of lookup and reference
functions.
Math and Trig - Browse and select from a list of math and trigonometry functions.
More Functions - Browse and select from lists of statistical, engineering, cube, and
information functions.
Defined Names
Use in Formula - Choose a name used in the workbook and insert it into the
current formula.
Create from Selection - Automatically generate names from the selected cells.
Many people choose to use the text in the top row or the leftmost column of a
selection. The keyboard shortcut to create from selection is Ctrl + Shift + F3 .
Formula Auditing
Calculation Options - Specify when formulas are calculated. By default, any time
you change a value that affects other values, the new values are calculated
immediately.
Calculate Now - Calculate the entire workbook now. This is only necessary if
automatic calculation has been turned off. The keyboard shortcut to calculate now
is F9 .
Calculate Sheet - Calculate the current sheet now. This is only necessary if
automatic calculation has been turned off. The keyboard shortcut to calculate sheet
is Shift + F9 .
Solutions
From here you can use the conditional sum wizard and lookup wizard to help you in creating
new formulas.
Data Tab
Here you can import data into Excel from various external sources like Microsoft Access,
Microsoft SQL Server, text files or the web.
Refresh All - Update all the information in the workbook that is coming from a data
source. The keyboard shortcut to Refresh All is Ctrl + Alt + F5 .
Connections - Display all data connections for the workbook. Data connections are
links to data outside of this workbook which can be upgraded if the source data changes.
Properties - Data Range Properties - Specify how cells connected to a data source will
update, what contents from the source will be displayed, and how changes in the number
of rows or columns in the data source will be handled in the workbook.
Edit Links - This is used to break a link to an external reference. This command will
be unavailable if the workbook does not contain linked information.
Sort - Launch the Sort to sort data based on several criteria at once.
Filter - Enable filtering of the selected cells. Once filtering is turned on, click on the
arrow in the column header to choose a filter for the column. The keyboard shortcut to
filter is Ctrl + Shift + L .
Clear - Clear the filter and sort data for the current range of data.
Reapply - Reapply the filter and sort in the current range. New or modified data in the
column won't be filtered or sorted until you click Reapply. The keyboard shortcut to
reapply is Ctrl + Alt + L .
Advanced - Specify complex criteria to limit which records are included in the result
set of a query.
Data Tools
Here you have various data tools like removing duplicates, validation or data analysis.
Text to Columns - Separate the contents of one Excel into separate columns. For
example, you can separate a column of full names into separate first and last name
columns. In Word you would use this feature to convert the selected text into columns at
each comma, period, or other character you specify.
Remove Duplicates - Delete duplicate rows from a sheet. You can specify which
columns should be checked for duplicate information.
`Data Validation - Prevent invalid data from being entered into a cell. For example,
you could reject sates or numbers greater than 1000. You can also force input to be
chosen from a dropdown list of values you specify.
Consolidate - Combine values from multiple ranges into one new range.
What-If Analysis - Try out various values for the formulas in the sheet. Scenario
Manager allows you to create and save different groups of values, or scenarios, and
switch between them. Goal Seek will find the right input when you know the result you
want. Data Tables allow you to see the results of many different possible inputs at the
same time.
DEPARTMENT OF MBA Page 23
IT SKILL LAB ITM
Outline
Here you can group data based on a selection or you can create a subtotal in a given column
based on values (keys) of another column.
Group - Tie a range of cells together so that they can be collapsed or expanded. The
keyboard shortcut to Group is Shift + Alt + Right .
Ungroup - Ungroup a range of cells that were previously grouped. The keyboard
shortcut to Ungroup is Shift + Alt + Left .
Analysis
Provides various data analysis tools like random number generation, histogram or moving
average.
Review Tab
The review tab in Excel 2007 ribbon consists of 3 groups:
Proofing
Spelling - Check the spelling of text. The keyboard shortcut to check spelling is F7 .
Research - Open the Research Task Pane to search through reference materials such
as dictionaries, encyclopedias, and translation services. The keyboard shortcut for
Research is Alt + Click .
Thesaurus - Suggests other words with a similar meaning to the word you have
selected.
Comments
Edit Comment - Edit the selected comment. The keyboard shortcut to edit a selected
comment is Shift + F2 . Note: This button will not be displayed unless a cell containing a
comment has been selected.
New Comment - Add a comment about the selected cell. The keyboard shortcut to
add a comment is Shift + F2 . Note: This button is the default view in the Comments
section rather than the Edit Comment button displayed at the top of this explanation.
Changes
Protect Sheet - Prevent unwanted changes to the data in a sheet by specifying what
information can be changed. For example, you can prevent people from editing locked
cells or changing the formatting of the document. You can specify a password that can be
entered to unprotect the sheet and allow these changes.
Protect Workbook - Prevent unwanted changes to the structure of the workbook, such
as moving, deleting, or adding sheets. You can specify a password that can be entered to
unprotect the workbook and allow these changes.
Share Workbook - Allow multiple people to work in a workbook at the same time.
The workbook should be saved to a network location where multiple people can open it.
Workbooks containing tables cannot be shared.
Protect and Share Workbook - Share the workbook and protect it with a password at the
same time. The password will prevent others from turning off change tracking.
DEPARTMENT OF MBA Page 25
IT SKILL LAB ITM
Allow Users to Edit Ranges - Allows specific people to edit ranges of cells in a
protected workbook or sheet. Before using this feature, first set security on the sheet by
using the Protect Sheet command. To use this feature, your computer must be joined to a
Microsoft Windows domain.
Track Changes - Track all changes made to the document, including insertions,
deletions, and formatting changes. For workbook and worksheet protection, workbook
sharing or tracking of changes.
View Tab
Workbook Views
Switch between Normal, printer page layout or page break views. You can also create and
show your custom views or switch to full screen view.
Show/Hide
You can show or hide gridlines, formula bar or columns and
row headings.
Zoom
Window
Create new windows, arrange windows and switch between them, freeze panes or save a
workspace.
Macros
This group handles VBA macros. You can record, edit or run macros.
DEPARTMENT OF MBA Page 26
IT SKILL LAB ITM
Developer Tab
Excel 2007 user interface does not show the developer tab in the default display. If it is not
shown in the ribbon then see How to show the developer tab in Excel 2007.
The Code group gives you access to the visual basic editor. You can access your existing
macros and write or record new ones. You can also setup macro security level (enable macros
to run or disable them).
Control
The Control group allows you to insert user controls, switch b/w
design mode and normal mode, access control properties, view
code within controls or run a dialogue (user form).
XML
The XML group allows you to add, import or export
XML maps into you workbook.
Modify
In the Modify group you can specify custom document information panel
template (contains author, title, subject ..etc.)
ADD-INS:
An ―Add-In‖ is a software application that adds new functionality to Excel. The Add-In
typically seamlessly fits into the Excel interface, providing accessibility to its functionality
through
new menus
new options in existing menus
new functions
new toolbars and specific toolbar icons
Next to the Microsoft Office button is the Quick Access toolbar. The Quick Access toolbar
gives you with access to commands you frequently use. By default, Save, Undo, and Redo
appear on the Quick Access toolbar. You can use Save to save your file, Undo to roll back an
action you have taken, and Redo to reapply an action you have rolled back. To change the
location of the quick access toolbar, click on the arrow at the end of the toolbar and click
Show Below the Ribbon. You can place the quick access toolbar above or below the ribbon.
You can also add items to the quick access toolbar. Right click on any item in the Office
Button or the Ribbon and click Add to Quick Access Toolbar and a shortcut will be added.
To save the template once all changes have been made to your spreadsheet:
1. Click on the office button to open the drop down menu.
2. Choose the Save As option.
3. Choose the other formats option.
4. Choose the Save As option to open the Save As dialog box.
5. Click on the Save as type option to open the drop down list.
6. Scroll through the list to find the template options.
Template options
There are three templates that can be created in Excel 2007:
Excel Template (*.xltx)
Excel Macro Enabled Template (*.xltm)
Excel 97 - 2003 Template (*.xlt)
Editing Data
To edit data that already exists in the worksheet, you can select the cell and re-type the
information or go to the Formula Bar and make any editing changes there.
Page Orientation
Through the Page Setup menu, you may want to change the orientation of the page to best
display your data. Portrait orientation prints your worksheet vertically and landscape will
print it horizontally. You get more rows on the page, but fewer columns, when you print with
portrait orientation. When you turn the page on its side and print with landscape orientation,
you get more columns on the page, but fewer rows.
Page Breaks
When a worksheet prints on several pages, Excel inserts automatic page breaks that divide
the worksheet into separate pages for printing. These page breaks appear as dotted lines,
which you can see by looking at the worksheet in Page Break Preview. You can control what
appears on a page by changing those page breaks or creating your own.
To print your column and row headings on every page, follow the steps below:
To Print Titles:
Click the Page Layout tab on the Ribbon
Click the Print Titles button
In the Print Titles section, click the box to select the rows/columns to be repeated
Select the row or column
Click the Select Row/Column Button
Click OK
Printing
You'll need to put some effort into preparing your spreadsheet for printing in order to make
the most of your data. Worksheets can quickly become confusing when you have rows and
columns spilling onto additional pages. In the next few sections, you learn about a few of the
numerous features related to printing with Excel. By the end of this module, you should be
able to:
Prepare a spreadsheet for printing.
Use the Print Preview tool to display the layout of your spreadsheet.
Alter the page orientation to best display your data.
Insert, move and remove a page break.
Apply the Print Titles setting to your spreadsheet.
Print Preview
The first step in preparing your spreadsheet for printing is to preview how your spreadsheet
currently looks through the Print Preview tool. Print Preview shows you what the worksheet
will look like when it is printed.
To access Print Preview in Office 2008:
Select File > Print.
From the Print dialog box, click on the Preview button.
You can type in your header or footer or you can use predefined headers and footers. To find
predefined headers and footers, click the Header or Footer button or use the Header & Footer
Elements group's buttons. When you choose a header or footer by clicking the Header or
Footer button, Excel centers your choice. The table shown here describes each of the Header
& Footer Elements group button options.
Named Ranges
You can use cell references or range references for contiguous cells when working with
formulas or applying formulas. This feature comes in handy when you are working with large
spreadsheets where all of the data cannot be displayed on one screen.
To name a range:
Select the cells to be included in the range.
Type a name for the range of cells in the Name Box.
If users ignore this message and type invalid data in the cell, such as a two-digit or five-digit
number, you can show them an actual error message.
In a slightly more advanced scenario, you might use data validation to calculate the
maximum allowed value in a cell based on a value elsewhere in the workbook. In the
following example, the user has typed $4,000 in cell E7, which exceeds the maximum limit
specified for commissions and bonuses.
Among other things, you can use data validation to do the following:
Restrict data to predefined items in a list For example, you can limit types of
departments to Sales, Finance, R&D, and IT. Similarly, you can create a list of values
from a range of cells elsewhere in the worksheet. For more information, see Create a
drop-down list from a range of cells.
Restrict numbers outside a specified range For example, you can specify a
minimum limit of deductions to two times the number of children in a particular cell.
Restrict dates outside a certain time frame For example, you can specify a time
frame between today's date and 3 days from today's date.
Restrict times outside a certain time frame For example, you can specify a time
frame for serving breakfast between the time when the restaurant opens and 5 hours
after the restaurant opens.
DEPARTMENT OF MBA Page 35
IT SKILL LAB ITM
Limit the number of text characters For example, you can limit the allowed text
in a cell to 10 or fewer characters. Similarly, you can set the specific length for a full
name field (C1) to be the current length of a first name field (A1) and a last name
field (B1), plus 10 characters.
Validate data based on formulas or values in other cells For example, you can
use data validation to set a maximum limit for commissions and bonuses of $3,600,
based on the overall projected payroll value. If users enter more than $3,600 in the
cell, they see a validation message.
Input messages are generally used to offer users guidance about the type of data that you
want entered in the cell.
You can also choose to show an error alert that appears only after users enter invalid data.
You can customize the text that users see in an error alert message. If you choose not to do
so, users see a default message.
1. Windows: From the Data command tab, in the Get External Data group, click
FROMTEXT
Macintosh: From the Data menu, select Get External Data » Import Text File...
The Import Text File/Choose a File dialog box appears.
2. Windows: From the Files of type pull-down menu, select All Files
Macintosh: From the Enable pull-down menu, select All Files
3. Navigate to and select the file to import
4. Windows: Click IMPORT
Macintosh: Click GET DATA
The Text Import Wizard appears.
To view the Formatting Toolbar, go to the View menu, scroll down to Toolbars, and select
Formatting. The following functions can also be done using the Formatting Palette which
can be accessed by clicking on the Toolbox button on the Standard Toolbar.
The font style and size can be changed by highlighting the cells you wish to format
and choosing the font and size from a drop down menu
.
To Bold, underline, or italicize your cell text click on the appropriate button on the
Formatting Toolbar.
You can also use the Format menu to change formatting. For example, you can specify the
number of decimal places to be displayed or you can add dollar signs to financial data by
using the Currency format. In Excel, it is also possible to center text across several cells by
using the Merge and Center button on the Formatting toolbar.
You can also add borders and shading to cells by selecting them and then using the Format
menu to specify a border or shading.
Conditional Formatting
In order to help you easily identify important information in your spreadsheet, you can apply
Conditional Formatting to a range of cells.
Let’s take a look at an example. Let’s say that you are on a very tight budget for the first
semester of school this year. You don’t have a meal plan, and you don’t want to spend more
than $75 a week on food. You think this is feasible, but you decide to keep track of your
expenses for a month to test out your new budget. In the spreadsheet below we want Excel to
automatically highlight cells that contain numbers greater than 75. After applying
Conditional Formatting, any data matching our desired condition will appear in red font.
Auto format
In order to quickly apply a format to a spreadsheet:
Select the cells that you wish to be formatted.
Select Format and then AutoFormat from the menu bar.
Scroll through the list on the left to find the most appropriate format.
Click OK.
AutoFit
From time to time, you may see pound signs ( # ) in a cell of your spreadsheet. This indicates
that the data in the cell is too long to be displayed. You can fix this by changing the width of
the column or height of the row. In Excel, you can enlarge the cell by dragging the column
divider line to the right or by dragging the row divider line toward the bottom of the window.
The divider line can be found by placing your mouse between the column/row headers until
the cursor changes to a line with a double-sided arrow.
Note: You can also shrink the size of a cell by moving the column divider line to the left or
by moving the row divider line to the top of the window.
You can also use the AutoFit function to automatically adjust the cell width and height to
accommodate the longest entry by double-clicking on the column divider line.
Cell References
After completing this module, you should be able to:
Explain the difference between a relative and an absolute cell reference.
Create a name for a range of cells.
Relative References
When you copy formulas in Excel, the application will adjust the formulas so that the cell
references are changed relative to their new location. These adjusting references are known as
This example shows that the original formula, in cell B6 was =SUM(B2:B5). This formula
was copied one cell to the right, so Excel automatically updated the formula using a relative
reference to reflect the new cell address, making the new formula =SUM(C2:C5).
Absolute References
There will likely be instances when you want to use a constant in a formula. In this case, you
would use an absolute cell reference. When a formula containing an absolute cell reference is
copied to a new location, the cell reference is not adjusted. To create an absolute cell
reference, you will need to add dollar signs ( $ ) in front of the column and row elements for
the cell referenced.
Below is an example of a copied formula, using an Absolute Reference.
In this example, we are calculating a constant 5% increase in total costs. The amount of the
increase is located in cell C1, so we want that portion of the formula to remain absolute.
When we copy the formula to column C, the only cell number that changed was B7 to C7,
while the $C$1 cell remained constant in the copy process.
3. Click Advanced.
4. If the check box next to After Pressing Enter Move Selection is not checked, click the
box to check it.
5. If Down does not appear in the Direction box, click the down arrow next to the
Direction box and then click Down.
6. Click OK. Excel sets the Enter direction to down.
Note: All formulas and functions start with the equal sign ( = ).
The ability to perform calculations is one of the purposes of using a spreadsheet application.
Some examples of the types of calculations that can be done include:
totals
subtotals
count
average
DEPARTMENT OF MBA Page 43
IT SKILL LAB ITM
standard deviation
In Microsoft Excel, you can enter numbers and mathematical formulas into cells. Whether
you enter a number or a formula, you can reference the cell when you perform mathematical
calculations such as addition, subtraction, multiplication, or division. When entering a
mathematical formula, precede the formula with an equal sign.
Arithmetic Operators
Excel uses the standard arithmetic operators and follows the order of operations as described
below:
References: The cell or range of cells that you want to use in your calculation
Operators: Symbols (+, -, *, /, etc.) that specify the calculation to be performed
Constants: Numbers or text values that do not change
Functions: Predefined formulas in Excel
A function is a built in formula in Excel. A function has a name and arguments (the
mathematical function) in parentheses. Common functions in Excel:
Sum: Adds all cells in the argument
Average: Calculates the average of the cells in the argument
Min: Finds the minimum value
Max: Finds the maximum value
For example, you can use the SUM function to add the values in a range of cells. The
function would be similar to the following =SUM(E4:E15). If you were to manually enter a
formula to perform this same calculation, you would have to type
=E4+E5+E6+E7+E8+E9+E10+E11+E12+E13+E14+E15.
Function Library
The function library is a large group of functions on the Formula Tab of the Ribbon. To view
the list of functions in Office 2007 click on the Formula tab and select Insert Function from
the under the Function group.
Charting
Charts are graphical representations of your data. Sometimes a chart can communicate much
more effectively than just a table full of numbers. You can quickly spot trends, for example,
by creating a chart. Charts can be created either as an embedded object within your
spreadsheet or on a separate chart sheet.
Embedded Charts
To create an embedded chart, follow the steps below:
Select the range of data in your spreadsheet that you wish to include in the chart.
Click the Insert.
Select a chart type.
Chart Sheets
To create a chart sheet:
Select the range of data in your spreadsheet that you wish to include in the chart.
Click the Insert.
Under the Charts group select a chart type.
Right click the finished chart and select move chart.
Select New Sheet and click OK.
Hide Worksheets
To hide a worksheet:
Select the tab of the sheet you wish to hide
Right-click on the tab
Click Hide
To unhide a worksheet:
Right-click on any worksheet tab
Click Unhide
Choose the worksheet to unhide
Linking Worksheets
You may want to use the value from a cell in another worksheet within the same workbook in
a formula. For example, the value of cell A1 in the current worksheet and cell A2 in the
second worksheet can be added using the format "sheetname!celladdress". The formula for
this example would be "=A1+Sheet2!A2" where the value of cell A1 in the current worksheet
is added to the value of cell A2 in the worksheet named "Sheet2".
Note To remove the password, repeat these instructions and then delete the password from
the Password to modify box. Click Save.
Excel offers the option of protecting the entire document, individual objects, the structure of a
window, and/or specific cells. With Excel, you can even add a password to the file. If you
want to prevent changes to sheets or cells, you need to lock the cells and then protect the
sheet.
Protection Options
Locking & Unlocking Cells
Workbook Level Protection
Worksheet Level Protection
Protection Options
When you are protecting your workbook, you have two primary options:
Prevent data entry for select cells
Users can access the worksheet and view the information; however, access for making
changes is restricted. For more information, refer to Locking & Unlocking Cells.
Restrict or prevent access to the file
Users can be prevented from viewing the worksheet or users can view the workbook
but not make changes to it. For more information, refer to File Level Protection.
Locking & Unlocking Cells
Excel can protect cells, graphics, charts, and other worksheet objects. This protection will
take effect only after you turn on the Worksheet Protection option in the Protect Sheet dialog
box. If you enable protection, no changes can be made to a cell until you unlock that cell.
Locking Cells
You can easily lock any cell in a worksheet.
NOTE: Make sure to lock the cells before you protect the sheet or document. Once a sheet or
a document has been protected, you cannot access menu selections that allow you to make
changes to cells.
1. Select the cell(s) to be locked
2. From the Ribbon, select the Home command tab
3. In the Cells group, click FORMAT
4. In the Protection section, select Lock
NOTE: If the icon is highlighted, the cells are locked.
5. Protect the worksheet
Unlocking Cells
In order to unlock cells, sheet protection must first be turned off. For more information, refer
to Worksheet Level Protection or Workbook Level Protection.
1. Unprotect the worksheet
2. Select the cells you want to unlock
3. From the Ribbon, select the Home command tab
4. In the Cells group, click FORMAT
5. In the Protection section, deselect Lock
The cells are unlocked.
NOTE: If the icon is not highlighted, the cells are unlocked.
Workbook Level Protection
You can prevent a workbook from having its structure and windows modified or resized by
another user.
Protecting the Workbook
1. From the Ribbon, select the Review command tab
You can protect a single worksheet from being modified by another user.
You have two options when saving your workbook file with a password. You can save the
file so only those who know the password can open the file, or so only those who know the
password can modify the file.
Logical Functions
These functions return only a true or false answer. They can be used individually or
combined with one or more other functions, such as the IF function as seen in the Rolling
Dice tutorial.
The AND Function
Statistical Functions
Excel's Statistical functions can be used to analyze data in a variety of different ways.
Functions included in the program can be used to find common statistical operations such as
finding the average value or ranking data by its largest and smallest values as well as more
complex operations such as standard deviation.
Tutorials that Find the Average in Excel
Excel's MAX and MIN Functions
Ranking Numbers in Excel
Excel 2007 Standard Deviation (STDEV) Function
Financial Functions
Excel's Financial Functions can be used to help you determine changes in dollar value of
investments and loans.
Calculating Loan Payments Using Excel's PMT Function
Calculating Future Value Using Excel's PMT Function
The main advanced functions are arrays and nested functions. An array formula can perform
multiple calculations on one or more cells of data. Nested function refers to one or more
functions being placed inside another. Doing this extends the capabilities of the formula.
Multi Cell Array Formula Step by Step Tutorial
Single Cell Array Formula Step by Step Tutorial
Lookup with Multiple Criteria Array Formula Tutorial
Excel SUM IF Array Formula Tutorial
Nested Functions in Excel
Recording a Macro
To record a Macro:
Click the View tab on the Ribbon
Click Macros
DEPARTMENT OF MBA Page 54
IT SKILL LAB ITM
Click Record Macro
Enter a name (without spaces)
Enter a Shortcut Key
Enter a Description
Perform the Macro
Click Macros
Click Stop Recording
Running a Macro
To run a Macro from the Keyboard shortcut, simply press the keys that you have
programmed to run the Macro. Or you can view all macros and run by:
Click Macros
Click View Macros
Choose the Macro and click Run
Select the source cell -- the cell containing the formats you want to copy.
Choose the Fill Formatting Only option to cancel the series overwrite and still copy the
formats from the source cell.
You can see that the fill handle canceled the series values in Figure C. In addition, the action
reverted to the original data and applied the formats from A3 to the destination range. This
method isn't superior to Format Painter, but you won't have to select the target range, which
can be awkward with a large one.
Figure C
This copy trick lets you choose what to copy on the fly.
Place your cursor over the " A " in the column heading and drag to the right unto you reach
the " E " column heading. All five columns will be highlighted.
Place the cursor on the light gray line between any two of the highlighted headings. When
your cursor turns into a double headed arrow, double-click the line between any two column
headings. All columns will adjust to the width of the data.
Enter four lines of data. Create your own or copy what you see below:
Save the worksheet. Remember where you saved it. I recommend saving to the desktop.
Close the worksheet.
Open Word. It is not necessary to begin typing the form letter yet. You may start the mail
merge process using the wizard.
Go to the Mailings tab, go to the Start Mail Merge section, click on Start Mail Merge , and
slide down to Step by Step Mail Merge Wizard .
The Mail Merge Wizard dialog box opens. Each of the successive windows of the Mail
Merge Wizard. will offer choices, and will suggest the next step. Step 1 asks if we will be
working on a letter, we will, and suggests the next step at the bottom of the window, Starting
document. [ Note : the image below has been compressed ]
Click on Next: Starting document to move to the second Mail Merge Wizard window. We
will be using the current document, so no changes are required. Notice the bottom of the
window allows you to back up in the procedure or to go on.
Select Next: Select recipients at the bottom of the window pictured above.
Click the OK button for your next choice. As soon as you do click OK, you will be given a
chance to make changes to the list of recipients who will be getting your letter.
If you need to make no changes to the list, click OK. The Mail Merge Window will have
changed slightly.
Following the Wizard's suggestions, the next step will be to write your letter. When you click
on Write your letter you will move to Step 4 of the Mail Merge Wizard.
Each time you select a field click Insert and then close the window. Continue writing the
letter, clicking on More items each time you come to one of the purple fields below.
To the parents of <> <> ,
As we approach the end of the first six weeks I wanted to let you know how glad I am
to have <> in my <> period <> class. At this time <> 's average is <> . If I can be of
assistance please call me.
When you have finished writing your letter, click on Next: Preview your letters at the bottom
of the Mail Merge Wizard. That brings up a copy of the letter with the data from your Excel
document merged into place. Click on the forward or backward arrows ( << or >>) to see
letters to other recipients. Notice, you once again have the opportunity to exclude individuals
on your list.
If you are satisfied with the way your letter looks, the final step at the bottom of the
Mail Merge Wizard. is to Complete the merge .
At this point you could Print your letters or edit individual letters.
Possible uses - Any letter or document that needs to be sent to multiple recipients is a
good candidate for a mail merge. Some obvious uses include:
Note to parents
Progress report
Certificates
EXP 21: Advanced Data Analysis using PivotTables and Pivot Charts
For eg. you can take a bunch of sales data and then create a report on region-wise sales
performance by Product.
(In excel 2003, you have to do this from ―field settings‖ menu option)
3. Slice & Dice your Pivot Tables with Grace
Re-arranging pivot table layouts is as easy as shuffling a pack of cards. Just drag and drop
the fields from row areas to column areas (vice-a-versa) and you have the pivot table
rearranged.
Here is a simple screencast explaining the secret
Bonus: There are quite a few value field settings you can mess with. Go play and discover
something fun.
4. Add new dimensions to your Pivot Reports with Calculated Fields
Let us say you have both ―sale‖ and ―profit‖ values in your source data. Now, your boss
wants to know ―profit %‖ in the pivot report (defined as Profit/Sales). You need not add any
extra columns in your source data, instead you can define custom calculated fields with ease
and use them in pivot reports.
To do this, Go to pivot table options ribbon, select ―formulas‖ > ―calculated field‖
Now define a new calculated field by giving it a name and some meaningful formula.
Make sure you adjust the cell formatting so that output of calculation can be displayed
(for eg. change number to % format)
(In excel 2003, the formula option is available from Pivot menu in toolbar)
See this tip in action:
You can use any chart type except an xy (scatter), bubble, or stock chart.
For more information, see Overview of PivotTable and PivotChart reports and Charts.
Note A PivotChart report and its associated PivotTable report must always be in the same
workbook.