Mso Excel (Notes)
Mso Excel (Notes)
GAYATRI SHETH
Contents
MS Excel......................................................................................................................................................1
About Excel..................................................................................................................................................1
The Excel 2010 Ribbon................................................................................................................................2
A Designer Cleans up the 2007 Ribbon...............................................................................................2
Charting on the Ribbon.........................................................................................................................4
A Couple New Features – Look But Don’t Touch...............................................................................4
Chart Dialogs........................................................................................................................................5
Macro Recorder....................................................................................................................................5
Summary...............................................................................................................................................5
Interacting with Excel 2010..........................................................................................................................6
Changing default settings.....................................................................................................................6
Understanding Cell Reference and Range Name.........................................................................................7
Using relative references......................................................................................................................7
Limitations of relative references.........................................................................................................7
Absolute references..............................................................................................................................7
Mixed references..................................................................................................................................8
Working with Range Name..................................................................................................................8
Working with Formulas and Function........................................................................................................10
Using Formulas in a Worksheet.............................................................................................................10
Using array formulas..............................................................................................................................10
Working with Functions.............................................................................................................................11
IF function..............................................................................................................................................12
Nesting Function using IF......................................................................................................................12
IF function [Using And/ Or/ Not]...........................................................................................................13
ADVANCE EXCEL | PROFF.GAYATRI SHETH
P a g e 2 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
P a g e 3 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
P a g e 4 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
MS Excel
About Excel
Microsoft Excel is a powerful Worksheet computing tool from Microsoft Corporation. It
makes it easy for you to create various kinds of spreadsheets, tables and statements along
with the graphical representation of data using graphs. While working in Excel, you can
make use of its most important feature of automatic recalculation to save time and effort.
In Excel, you work with worksheets, which consist of rows and columns that intersect to
form cells. Cells contain various kinds of data that you can format, sort, and analyze. You
can also create charts based on the data contained in cells. An Excel file is called a
workbook, which by default contains three worksheets.
P a g e 5 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
The 2003 interface is pretty cluttered, efficient interface that displays all of my most-used
commands at once, without hiding 90% of them. The 2007 ribbon looks nearly as
cluttered as the classic toolbar interface, not because it has lots of controls, but because
everything is in boxes, and there is no shortage of graded coloring.
The 2010 ribbon has the same density of controls as in 2007, but it looks cleaner because
of its lighter background and the elimination of much of the chart-junk-like features.
Instead of boxes around all of the groups of controls, as in 2007, the groups are separated
by a single light line, and the shadowing is much less pronounced.
A year ago Andreas Lipphardt of XLCubed wrote Microsoft, Pimp Down My Ribbon, a
request to clean up the 2007 ribbon. He even showed how. He started with the ribbon out
of the box:
P a g e 6 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
Andreas cleaned up the ribbon by removing all the gradients and glows, and without all
of the gratuitous effects, it certainly looked much cleaner.
Microsoft stopped here with the 2010 ribbon, but Andreas took it one step further,
removing the large office button and the oversized ribbon buttons (e.g., Paste), and closed
up the excess space. This was becoming too much like the classic interface.
Now they can, to some extent. Microsoft has added the ability to make changes to the
interface through the interface. Even though RibbonX, the ribbon-specific subset of
XML, is relatively easy to use to customize the interface, RibbonX is still way beyond a
typical user‘s capabilities. This ribbon customization capability gives back to the user
some small measure of control, maybe 10% of what we once had.
P a g e 7 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
I‘ll show a couple shots to further illustrate the cleaner ribbon appearance in 2010. Here
are the Charts groups from the Insert tabs of Excel 2007 and 2010.
Although the 2010 group looks much cleaner, the buttons are all the same as before, and
in fact, all the options under the buttons are the same. The gallery of chart types in 2010
is just like that in 2007. The Chart Tools contextual tabs are also cleaner but with
essentially no real changes. The one addition is a Draft Mode button on the Design tab.
Its purpose is to allow charts to be drawn with only rudimentary formatting, to speed up
screen refreshing in Excel 2007.
P a g e 8 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
However, right next to the Charts group on the Excel 2010 Insert tab are two new groups:
Sparklines and Filter, which houses the Slicer. These much heralded features are probably
the most talked about new tricks in Excel 2010. The advance press for Sparklines on the
MSDN Excel blog is very promising.
At first I thought that neither feature is enabled for testing in this early preview version. I
didn‘t notice that I was using Compatibility Mode, which disables advanced features
introduced in 2007 and later..
Chart Dialogs
I made a few charts, just to see what if anything has improved in the awkward Excel 2007
dialogs. One thing has changed: after being temporarily retired for one version, the ability
has returned to double click on a chart element to open its format dialog! Unfortunately
the dialogs that open up are unchanged from those of 2007. Too many tabs, too many
options hidden in dropdowns when there is ample space to use list boxes or option
buttons, too many clicks required to do otherwise quick tasks. And the F4 (Repeat Last
Action) command is still AWOL. It remains to be seen whether any changes will be
forthcoming in upcoming releases of the preview.
I‘ve been working on a charting interface add-in for Excel 2007, and I suspect that it will
be useful for users of Excel 2010 as well.
Macro Recorder
I recorded a few macros, nothing too complex, to see whether the huge gaps in Excel
2007′s macro recorder coverage have been addressed. In 2007 if you recorded a macro
while doing anything with shapes, the macro came out blank. When working with charts,
some actions were recorded, but many were missed, particularly those related to
formatting of the shapes that make up the chart‘s elements. Because the recorder didn‘t
record, we were without a tool that was so helpful to decode the intricacies of the object
model.
Without examining the details, I was able to see that all actions were represented by
commands in the recorded macros. Shapes and chart element formatting were again
represented in the code. This is a great (re)addition to a developer‘s toolbox.
P a g e 9 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
Summary
Excel 2010 looks a bit cleaner and seems to run a bit more smoothly than Excel 2007. In
the small part of Excel that I have examined, very little has changed. I will be looking at
Spark lines and other neat new stuff in the near future.
The Ribbon is the main location for menus and tools. When you choose a Ribbon tab, the
Ribbon displays Ribbon groups that contain tools such as buttons and lists. Some of these
tools expand to display simple lists, and some display galleries, as shown in Error!
Reference source not found.. A list is a collection of related commands or selections. A
gallery is an interactive list.
Using galleries
Selections on a gallery display the result of the selections in Excel, rather than just a list
of options. Some galleries use live preview. When you move the pointer over options on
a gallery, each option is previewed on whatever is selected on the worksheet. For
example, if you select text in the worksheet, and display the Font gallery, moving the
pointer over each font in the gallery causes the selected text on the screen to display in
that font.
Using tools
When you point to a tool, a description called a super tool tip appears. The super tool tip
provides less description than Help, but more than an ordinary screen tip
Changing default
settings
select the dialog box of Options you need to click on File Tab-> Option and select the
required tabs from the dialog box.
Personalize options
You can change workbook settings by using the personalize options such as Type of Font,
Size of the font, number of worksheet in workbook and can also activate the Developer
tab , which is used for Macro.
Save option
Save option allows you to change the default file location, File Format, and Auto save the
file.
Relative references are the default cell reference in Excel, and they make it easy for you
to create formulas once and then copy them. If you copy the formula the cell reference
changes from A1 to B1 if you copy column wise and if you copy row wise it will change
to A2. There are situations, however, in which you don't want Excel to adjust a reference
relative to the location of a copied formula. For these situations, Excel provides for
absolute references and mixed references.
Usually, relative references work very well when you copy a formula. But if the formula
refers to a specific cell that should not change, then you need to type or edit the formula
again if you are not aware of freezing the cell. This can happen when you refer to
commission or discount rates which are typed in one of the cell and need to create a
formula and copy.
Absolute references
When you don‘t want a reference to change when you copy it, you can use an absolute
reference. To make a reference absolute, you place a dollar sign in front of both the
column letter and the row number for the reference. For example, to create an absolute
P a g e 11 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
reference to cell A1, you would enter $A$1. When you copy an absolute reference to
another location, Excel will not adjust the reference.
A B C D
Mixed references
You can also create mixed references by placing a dollar sign in front of only the column
letter or the row number. When copied, the relative part of the reference will adjust
relative to the new location, while the absolute part will not. You can cycle through the
reference possibilities as soon as you enter a reference by pressing F4, e.g., $A1 or A$1,
so if use $A1 means the Column is fixed and if your type A$1 then Row is fixed.
Example
A B C D
Generally when we create a formula or function we generally refers to the cell reference
such as sum(A2:A200).If cells A2:a200 contains the Salary of East Region, wouldn‘t the
spreadsheet easier to understand if the formula was sum(EastRegion)? Or if we create a
formula from different sheet, generally get the formula with different sheet name and the
range name instead of that we can create formula using range name. We will see how to
name the individual cell, range of cells
P a g e 12 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
On a Formula bar on the left hand side there is name box, simply select the cell or ranges
of the cells that you want to specify name, click on the Name box, type the name you
want to use. Press Enter, and you‘ve
created the range name. Name Box
Clicking on the Drop down arrow for the
Formula Bar
Name box displayed the range names in a
workbook by pressing F3 button.
You also can select noncontiguous cells (press Ctrl as you select each cell or range).
2. On the Formulas tab, click Define Name in the Defined Names group.
Use the New Name dialog box to assign a name to the selected range.
3. In the Name text box, type up to a 255-character name for the range.
Range names are not case-sensitive; however, range names must follow these conventions:
P a g e 13 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
• The range name should not be the same as a cell address. For example, you can't name a range U2
or UB40, but BLINK182 and ABBA are just fine.
Click OK.
If you click on Name Manager from Name cell group, it allows you to Add, Edit or
Delete the Name from the Workbook.
A formula can also contain any or all of the following: functions, references, operators,
and constants.
P a g e 14 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
In cell B8, you want to calculate the total sales of items without calculating the sales
amount of individual items. You can do so by using the array formula shown below. This
formula multiplies the quantity by the unit price for each item, and then adds all the
results.
In the formula, A2:A6 and B2:B6 are known as array arguments. Each array argument
must have the same number of rows and columns. After entering array formula, press
Ctrl+Shift+Enter, instead of simply presses the Enter key. When you enter a formula this
way, it will appear on the Formula bar enclosed in brackets ({}), indicating that it is an
array formula.
Figuring out formulas for calculations you want to make in Excel can be tedious and
complicated. Fortunately, Excel has an entire library of functions or predefined formulas
that you can take advantage of. You may be familiar with common functions like sum,
average, product or count, but there are hundreds of functions in Excel, even for things
like formatting text, referencing cells, calculating financial rates, analyzing statistics, and
more.
In this lesson, you will learn the basics of inserting common functions into your
worksheet by utilizing the AutoSum and Insert Functions commands. You will also
become familiar with how to search and find various functions, including exploring
Excel's Functions Library.
P a g e 15 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
Performing calculations on each value in a range of cells can be complicated and timeconsuming.
For example, if you have a range consisting of 20 cells, a formula that adds each of these values
will be very long. Excel functions simplify complex tasks. A function is a predefined formula that
performs a specific calculation or other action on a number or a text string. You specify the values
on which the function performs calculations
The syntax of a function begins with the function name, followed by an opening
parenthesis, the arguments for the function separated by commas, and a closing
parenthesis. If the function starts a formula, type an equal sign (=) before the function
name .As you create a formula that contains a function, the Formula Palette will assist
you.
=Function_name(argument1,argument2,….)
You don‘t need to memorize all the functions available and the arguments necessary for each
function. Instead, you can use the Insert Function dialog box, which lists all the available
functions. When you choose a function, Excel prompts you for required and optional arguments.
IF function
Suppose in salary worksheet if you want to calculate HRA according to condition wise,
i.e. Manager 1000, Officer 750 and clerk 500, or if you want to calculate Income tax slab
wise.
In the above scenario you can use the IF function to evaluate a condition. The IF function
returns different values depending on whether the condition is true or false. The syntax
for the IF function is:
The first argument is the condition that you want the function to evaluate; the second
argument is the value to be returned if the condition is true, and the third argument is the
value to be returned if the condition is false.
Example
P a g e 16 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
Example
You can use nested IF functions to evaluate complex conditions. For example, if the
Salary <5000 then tax is 5%, if salary between 5000 and 1000 then it is 10% else 15%.
=if(salary<5000,salary*.05,if(salary<10000,salary*.10,salary*.15))
Suppose you want to assign letter grades to numbers referenced by the name Average
Score. See the following table.
IF(AverageScore>89,"A",IF(AverageScore>79,"B",IF(AverageScore>69,"C",IF(Average
Score>59,"D","F"))))
Note: Average Score will be the cell address of the cell. Excel allows maximum seven IF
functions in a formula.
P a g e 17 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
Suppose if you want to calculate HRA based on condition, i.e. if the Employee is
Manager and his Grade is A1 if both the condition are satisfied then HRA will be 50% of
salary, in such scenario you can use AND function with if condition.
AND is a logical function, which is used when there are multiple conditions in a formula.
When all the conditions are satisfied then it will return True value else returns the false
value.
If(and(Condition1,condition2….),T,F)
There can be maximum 30 conditions which can be passed to AND function.
Example:
If the Employee is Manager and his Grade is A1 then calculate HRA as 50% of salary or
else 30% of salary.
=if(and(d2="manager",e2="A1"),g2*.5,g2*.3)
OR
Suppose if you want to calculate HRA based on condition, i.e. if the employee is
Manager or his Grade is A1 in such scenario you can use OR function with If condition.
OR is a logical function, which is used when there are multiple conditions in a formula.
When any one of the condition is satisfied then it will return True value else returns the
False value.
Returns TRUE if any argument is TRUE; returns FALSE if all arguments are FALSE.
Syntax
OR(logical1,logical2,...)
Logical1,logical2,... are 1 to 30 conditions you want to test that can be either TRUE or
FALSE.
If(or(condition1, condition2,...)
There can be maximum 30 conditions which can be passed to OR function.
Example:
If the employee is in Sales, Mktg or Hrd, then hra is 50% of salary or else 30% of salary
Eg.if(or(b2="Mktg",b2="Sales",b2="Hrd"),h2*.5,h2*.3)
P a g e 18 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
NOT
Suppose if you want to calculate HRA i.e. except Marketing Dept then you can use NOT
Function using If.
Example:
If the employee does not work in mktg then hra is 50% of salary or else 30% of salary.
Eg.if(not(b2="Mktg"),h2*.5,h2*.3)
Note: From the XP version while writing the function syntax is displayed
Syntax
VLOOKUP(lookup_value,table_array,col_index_num,range_lookup
You can use this function using in Built Function, Select Insert Menu- and Click on Insert
Function or click on Fx from formula bar- Select Lookup & Reference category and
select Vlookup, you will get a dialog box as shown below,
P a g e 19 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
Lookup_value is the value to be found in the first column of the table. Lookup_ value
can be a value, a reference, or a text string.
Table_array is the table of information in which data is looked up. Use a reference to a
range or a range name.
Col_index_num is the column number in table_array from which the matching value
must be returned.
Range_lookup is a logical value that specifies whether you want VLOOKUP to find an
exact match or an approximate match. If FALSE, VLOOKUP will find an exact match. If
one is not found, the error value #N/A is returned. If it is true then it finds the, the next
largest value that is less than lookup value is returned.
Suppose you want to add incentive from another sheet in the Salary Sheet, Incentive
worksheet consists of an incentive table whose range is A1:B12
Note: To remove #NA, you can use the function Iserror. The Syntax of iserror is as
follows:
=if(iserror(vlookup….),‖‖,Vlookup)
Suppose you want to add incentive Value based on Slab-wise, instead of If condition you
can use can use Vlookup with True condition. Suppose if we take example based on
salary give the incentive value, so crate a table as given below, and in table array select
the table given below and range lookup type true instead of false.
0 2%
5000 5%
P a g e 20 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
10000 10%
15000 15%
Database functions
Database functions are used to perform totals or subtotals on the data in the table. The
functions have 3 arguments — database, field, and criteria.
• The database argument is the range that contains your list. You must include the row
that contains the column labels in the range
• The field argument is the label for the column you want to summarize.
• The criteria argument is the range that contains a condition you specify.
Dsum
It sums up the values in a column of a list or database that match conditions you specify
Syntax
Examples
The following illustration shows a database of Employee Information System, if you want
to find the Total Salary of employees from Mktg Dept of the East Region, you can use
the function Dsum.
Note: The Advantage of using Dsum is if you change the condition from Mktg to Finance
criteria then you will get the result of given condition.
P a g e 21 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
DSUM (Database,‖salary‖a1:b2). This function calculates the total Salary for Region East
and Mktg Dept.
DMAX (Database,‖salary‖a1:b2)). This function calculates for the Maximum Salary paid
in Region East and in Mktg Dept.
Financial Functions
PMT
Calculates the payment for a loan based on constant payments and a constant interest rate.
Syntax
PMT(rate,nper,pv,fv,type)
A B
1 Loan Amount 100000
2 Interest rate 8.50%
3 Period 36
EMI =pmt(b2/12,b3,b1)
Click on Insert menu, Click on Function, Select Financial from Select a Category box
Select a PMT function in it.
Enter Rate as cell B2/12 or 8.5%/12, Nper as cell B3 or 36 and Pv as cell B1 or 100000 in
respective fields. Click on OK button.
FV
Returns the future value of an investment based on periodic, constant payments and a
constant interest rate.
Syntax
FV(rate,nper,pmt,pv,type)
Example of FV:
Suppose a person wants to open a saving account in a bank with an initial deposit of
Rs.10000 and Rs.200 as monthly deposit, for a period of 5 years at 5% rate of interest.
What will be the amount incurred by the person after 5 years?
Enter the following data in your worksheet and find the future value on an investment.
C D
P a g e 23 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
5 Rate Of interest 5%
6 Period in yrs 5
7 Payment /month -200
8 Initial Deposit -10000
9 Future Value =FV( d5/12,d6*12,d7,d8)
Data Validation
Data Validation is a process which restricts the users from entering invalid data for
individual cells or cell ranges; restricts the data entry to a particular type, such as whole
numbers, decimal numbers, or text; and sets limit on valid entries.
This Validation allows the user to pickup the data from the
dropdown, where the source will be in different cell, or to define the
list locally, type the list values separated by commas.
P a g e 24 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
2. Select DataTab
3. Select Data Validation from Data Tool Group
4. Select List
5. In Source, select the cell with value, or type the data with comma.
If the Source is from different sheet, create the name of the values, and use name by
typing the equal sign (=) followed by the name of the range.
P a g e 25 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
the total budget (D20) is also less than the $40,000 allocated, you could enter
=AND(D6=0,D20<40000) for the custom formula.
To display an optional input message when the cell is clicked, click the Input Message
tab, and make sure the Show input message when cell is selected check box is selected,
and fill in the title and text for the message.
Specify how you want Microsoft Excel to respond when invalid data is entered: Click
the Error Alert tab, and make sure the Show error alert after invalid data is
entered check box is selected.
To display a warning message that does not prevent entry of invalid data, click Warning.
Note: If you don't enter a title or text, the title defaults to "Microsoft Excel" and the
message to: "The value you entered is not valid. A user has restricted values that can be
entered into this cell."
Protecting Workbook
By protecting a worksheet, you can prevent unauthorized users from modifying it. You
can choose to protect an entire worksheet or to protect a part of it, allowing users to alter
some cell in worksheet.
You can protect a worksheet by using the Protect Sheet dialog box.
• Go to Review Tab -> Change Group and select Protect Sheet to open the Protect
Sheet dialog box.
• Select the options you want.
• Enter a password and click OK. A Confirm Password dialog box will appear.
• Enter the same password in the Reenter password to precede box and click OK.
P a g e 26 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
When you protect an entire worksheet, all the cells in the worksheet are locked by default.
This means that users cannot make changes to any cell in the worksheet. To allow the
users to make changes to particular cells only, you must unlock the cells manually before
protecting the worksheet. Users can then change data only in the unlocked cells. You can
hide the formula, so it will be now visible to the user.
Step 1
• Select the range of cells that you want users wants to modify
• Click on Format, Cells to open the Format Cells dialog box and then activate the
Protection tab.
• Clear the Locked check box and click OK
• Select the range of cells where the formula is applied, Click on Format CellProtection,
and Select both Locked as well as hidden checkbox.
Step 2
Now go to Review Tab-> Change Group and select Protect Sheet – Protect sheet and give
the Password.
Built-in templates
A template is a special type of workbook you can use as a starting point for other
workbooks. Templates can contain labels and other data, formatting, styles, and
functionality you can use for a particular purpose. Excel provides several built-in
P a g e 27 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
templates to help you create forms such as invoices, purchase orders, and expense
statements.
You can view Excel‘s built-in templates by clicking on Office Button->Select New->
Templates –Click on My Template
When Excel does not provide a template that suits your needs, you can create your own
custom templates. Like built-in templates, custom templates make it easy to create and
maintain multiple workbooks with the same formatting, styles, content, and functionality.
To create a template:
Open or create the workbook on which you want to base the template.
Once you create the template Create a new workbook based on the template. Enter the
remaining information. Save the workbook close it.
Modifying templates
Sometimes, you might need to modify custom templates. To modify a template, choose
File, Open to display the Open dialog box; specify the location and the name of template
file that you want to modify, and click Open. Make the changes you want and update the
template.
P a g e 28 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
Microsoft Excel has a number of features that make it easy to manage and analyze data.
To take advantage of these features, enter data in your worksheet according to the
following guidelines.
Data organization
Put similar items in one column (For Ex if Emp Code is in Column A then fill data
related to Emp Code in Column A) Format the cells so that all rows have similar items in
the same column (i.e data related to Employee shall appear in the row) . Keep the range
separate. Leave at least one blank column and one blank row between the related data
range and other data on the worksheet. Excel can then easily detect and select the range
when you sort, filter, or insert automatic subtotals.
Position the critical data above or below the range, avoid placing critical data to the left or
right of the range; the data might be hidden when you filter the range. Show rows and
columns and make sure any hidden rows or columns are displayed before making
changes to the range. When rows and columns in a range are not showing, data can be
deleted inadvertently.
Data format
• Use formatted column labels Create column labels in the first row of the range of
data. Excel uses the labels to create reports and to find and organize data. Use a font,
alignment, format, pattern, border, or capitalization style for column labels that is
different from the format you assign to the data in the range.
• Format the cells as text before you type the column labels. Use cell borders when you
want to separate labels from data, use cell borders— not blank rows or dashed lines—
to insert lines below the labels.
• Avoid blank rows and columns Avoid putting blank rows and columns in the range
so that Excel can more easily detect and select the related data range.
• Don't type leading or trailing spaces Extra spaces at the beginning or end of a cell
affect sorting and searching. Instead of typing spaces, indent the text within the cell.
• Extend data formats and a formula when you add new rows of data to the end of a
data range; Excel extends consistent formatting and formulas. Three of the five
preceding cells must use the same format for a format to be extended. All of the
preceding formulas must be consistent for a formula to be extended.
P a g e 29 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
A Microsoft Excel list provides features designed to make it easier to manage and analyze
groups of related data in an Excel worksheet. When you designate a range as a list, you
can manage and analyze the data in the list independently of data outside the list. For
example, using only the data contained within the list, you can filter columns, add a row
for totals, and even create a PivotTable report, using only the data contained within the
list.
You can have multiple lists on your worksheet, which allows you a great deal of
flexibility for separating your data into distinct, manageable sets according to your needs.
Note: You cannot create a list in a shared workbook. You must remove the workbook
from shared use first if you want to create a list.
• Every column in the list has AutoFilter enabled by default in the header row.
AutoFilter allows you to filter or sort your data quickly.
• The dark blue border around the list clearly distinguishes the range of cells that makes
up your list.
• The row that contains an asterisk is called the insert row. Typing information in this
row will automatically add data to the list and expand the border of the list.
• A total row can be added to your list. When you click a cell within the total row, a
drop-down list of aggregate functions becomes available.
• You can modify the size of your list by dragging the resize handle found on the
bottom corner of the list border.
Sort and filter lists you can sort lists in ascending or descending order or create custom
sort orders. You can also filter lists to show only the data that meets the criteria you
specify.
Format list objects You can format cells in a list the same way that you format cells in
a worksheet.
P a g e 30 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
To sort your entire list, just select a single cell in the list and choose the Sort command
from the Data Tab. Microsoft Excel automatically selects the whole list for you. If your
list has column labels in the first row, Microsoft Excel excludes them from the sort and
uses them to help you choose the Sort by column. Sort the data Regionwise,
Department wise in
ascending order.
If Microsoft Excel does not automatically select the data you want to sort, manually select
the data and choose the Sort command again.
Rows that contain duplicate items in the Sort by column appear together in the sorted list
in their original order. If you want to sort these duplicate rows further, you can specify a
second column to sort by clicking on Add Level button in the upper left most corner
windows. If there are duplicate items in this second column, you can specify a third
column to sort by in the second Then By box. You can sort by up to 64 columns at a time.
Microsoft Excel saves the sort options you select in the Sort dialog box and Sort Options
dialog box - such as the Sort By column, sort order (ascending or descending), and sort
P a g e 31 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
orientation (top to bottom or left to right) - and displays them each time you choose the
Sort command until you change the options or sort another list.
Customized Sorting
Suppose if we sort the data region wise, it sort either ascending or descending order, if
you want to sort your data in a customized order, for Example West, East, North, and
South
• Select the Advanced option and on right pane, scroll down till you see Edit
Custom Lists button.
P a g e 32 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
• Hit the Edit Custom Lists button and select NEW LIST.
• Enter a list of items on the right side as shown (in this example, computer names
like Apache, Comanche and Dragonfly).
• Hit the Add button, the entered items should show up as comma separated just
like the lists above it.
Once this custom list is created, in order to use it anywhere in Excel 2010, simply enter
the name of any item from the list and drag the mouse cursor as desired, this will fill the
other cells with the remaining items from the custom list.
P a g e 33 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
This is quite a convenient feature especially when lots of data crunching is to be done.
Defining various Excel custom lists of commonly used items of a list and using them as
and when required becomes a time saver.
The list is sorted in the order of the items in your custom list.
P a g e 34 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
Filtering a List
In Excel Spreadsheet if you want to track the sales information or salary information in
existing data, or often want to extract the salary details base on some condition , in such
scenario Excel has given a command known as Filter.
Auto Filter enables you to display a subset of your list with a click of a mouse button.
When you choose the Filter icon from the Data Tab, Microsoft Excel places drop-down
arrows directly on the column of your list. Clicking an arrow displays a list of all the
unique items in the column. By selecting an item from a list for a specific column, you
can instantly hide all rows except that row that contain the selected value and its related
information (that complete row).
The item you select in a column drop-down list is called the filter criterion. For example,
selecting East from the Region drop-down list hides all rows except those that contain
region east. You can filter your list further by choosing another criterion from another
column. For example, selecting Mktg from the Dept drop-down list also hides all rows
except those that contain East and Mktg Dept. In some case if you want to select the
multiple regions i.e. East and West in such case you have to select the custom from dept
drop down.
Tip: If the list of items is long, you can quickly move to an item by selecting the arrow,
then typing the first letters of the item.
When you hide rows using criteria, you are applying a filter to a list. Microsoft Excel
helps you recognize the filter status of a list by providing some visual cues.
Here besides having a data in tabular format, we have to also specify the condition to be
met in a different area of a worksheet. For a clearer picture refer the following e.g.
P a g e 35 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
The Advanced Filter command filters your list in place, as simple Filter does, but it does
not display drop-down lists for columns. Instead, you have to select the List Range i.e.
your data, type criteria in a criteria range on your worksheet and select the Criteria
Range and in output range type the cell address where you want to display the output. It
is optional.
• Select the column or click a cell in the range or list you want to filter.
• On the Data Tab, point to Filter, and then click Advanced Filter.
• Do one of the following.
To filter the range or list in place, similar to using AutoFilter, click Filter the list, inplace.
To copy the results of the filter to another location, click Copy to another location. Then,
in the Copy To box, enter a cell reference.
To select a cell, click Collapse Dialog to temporarily hide the dialog box. Select the
cell on the worksheet, and then press Expand Dialog .
• Select the Unique records only check box.
Note: Advanced filter, copy to Option copies on a same worksheet, if you want to copy
the Filter data in to different worksheet, and then select the Advanced Filter command
from a new worksheet.
P a g e 36 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
For performing Subtotal on data, first the table fields on which subtotal are done must be
sorted. After you click the subtotals command from the Data Tab->Outline Group, select
the desired column from At Each Change In list box then select the function which you
want to perform on data from the Use function list box then select the column on which
you want to perform subtotals from the Add Subtotal to field. When you choose the OK
button, Microsoft Excel inserts a subtotal row for each group of identical items in the
selected column.
The first time you use the Subtotals command for a list, Microsoft Excel suggests a
summary function based on the type of data in the column you select in the Add Subtotal
To box, Choose a different calculation, such as Average, by selecting a different
summary function in the Use Function box in the Subtotal dialog box.
The first time you use the Subtotals command; the Add Subtotal To box displays the label
of the right-most column. You can leave that label as your selection, or you can select the
label of any other column in the list. The next time you use the Subtotals command,
Microsoft Excel displays the label of the last column you selected.
P a g e 37 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
If you want your subtotal rows to appear above their associated detail data, and if you
want the Grand Total row to appear at the top of the list, clear the Summary below Data
check box in the label of the end of the list to see grand total data.
You can insert subtotals for smaller groups within existing subtotal groups; For example,
you can insert subtotals for each type Dept in a list that already has subtotals for each
Region wise.
Note: If you want to copy only the summary details then select the outline2 select the
column, press Alt; that will select only visible cell] and then copy and paste it.
P a g e 38 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
Add-ins is additional programs that provide custom commands and functions. You can
load add-ins such as the Conditional Sum Wizard and the Lookup Wizard by using the
Add-Ins command on the Tools menu.
Conditional Sum Wizard
The Conditional Sum Wizard helps you generate a formula that adds the values matching
a condition you specify. Here‘s how:
Choose Tools, Conditional Sum to start the Conditional Sum Wizard. In the Step 1 dialog
box, specify the range containing the data, including the column headings. Click Next.
In the Step 2 dialog box, specify the column containing the values to add and the criterion
to be used for the conditional sum. You can specify a condition by using the three
available lists: Column, Is, and This value. Click Add Condition and then click Next. In
the Step 3 dialog box, specify whether you want to insert only the result or both the result
and the condition. Click Next.
In the Step 4 dialog box, specify the cell where you want the result to appear, and then
click Finish.
P a g e 39 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
Creating PivotTables
PivotTable reports (or, simply PivotTables) make the data in your worksheets much more
manageable by summarizing the data and allowing you to manipulate it in different ways.
PivotTables can be an indispensable tool when used with large, complex spreadsheets,
but they can be used with smaller spreadsheets as well.
A pivot table is an interactive worksheet table that quickly summarizes large amounts of
data using the format and calculation methods you choose. It is called a pivot table
because you can rotate its row and column headings around the core data area to give you
different views of the source data. As source data changes, you can update a pivot table.
Because it resides on a worksheet, you can integrate a pivot table into a larger worksheet
model using standard formulas.
You create a pivot table using the Pivot Table Wizard. The Pivot Table Wizard is an
interactive set of dialog boxes that guide you through the steps of choosing the source
data and layout you want to use for the pivot table.
A Pivot Table is an interactive table that summarizes and analyses data from existing lists
and tables. Use the PivotTable Wizard to specify the list or table you want to use and to
define how you want to arrange the data in the PivotTable. After you create a PivotTable,
you can reorganize the data by dragging the fields and items. When you base a
PivotTable on external data, you may want to retrieve the external data before you create
the PivotTable.
P a g e 40 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
• Open the workbook where you want to create the PivotTable. If you are basing the
PivotTable on a Microsoft Excel list or database, click a cell in the list or database.
• On the Insert Tab ->Table Group, click PivotTable
• Select the data source range
• If you are inside database, it automatically picks the range
• Then decide where you want to place your PivotTbale report, i.e. in same sheet or
different sheet
• Click OK
P a g e 41 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
• Drag the fields you want to use as row field and column field labels into the Row and
Column areas.
• The more fields you include in an area, the finished pivot table contains more fields.
Adding two fields to the Row area adds two row fields to the pivot table.
• By moving the Dept field to the Report Filter area, you create a pivot table that
displays data for one particular Dept at a time. (Dept wise report is generated. If there
is any date/month field, a date-wise report could be generated.). It is mandatory to
place any one of the fields into the VALUE area.
• If a numeric field is placed by default, it calculates the total of that field, else any
other text/date/ character field is placed, and then the count of it will be displayed at
the end of report. If you don‘t specify any field in this area, wizard won‘t allow you to
proceed to the next step.
P a g e 42 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
When you create a pivot table, Microsoft Excel stores a copy of the source data as hidden
data with the pivot table layout on the worksheet. If you have a large amount of data and
you do not want to store a copy of it with the pivot table, clear the Save Data with Table
Layout by following.
Output
P a g e 43 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
In the report layout go to Value area and then click down arrow key of field for which
you want the Percentage,
Click Show value as tab and the click Show value as drop down list box
Select the % of total from show data a
If you have grouping on date field, you can group items by weeks, click Days in the By
box, make sure Days is the only time period selected, and then click 7 in the Number of
P a g e 44 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
days box. You can then click additional time periods to group by, such as Month, if you
want.
Create a chart from data in a PivotTable report
The Graph will be created based on the pivot table. You have drop down to select the
graph according to condition wise.
What-if-Analysis Tools
If you have created a formula to calculate PMT, base on the formula, if you want to know
in if you pay x amount of value in how many months you can complete the installment
The Goal seek Feature in Excel helps us to compute a value for the spreadsheet input that
makes the value for the given formula match the goal you specify. Goal Seeking saves
you from performing time-consuming trial-and error analysis.
Select the reference or name of the cell containing the formula for which you want to find
a specific solution if it is not displayed in the Set Cell option of the Goal seek dialog box.
(Assuming that we have started from cell A1, select the address of selling price value i.e.,
B3).
Type the value that you want the formula to reach in the To Value option i.e.,-5000 Select
the reference or name or the cell containing the variable that you want to adjust for the
goal to be attained i.e., B2 address of the cost price value.
E.g., If a person takes a Loan of 100000 for 36 Months the EMI [PMT] is 3250, if he pays
monthly 5000 then in how many months he will complete his installment.
P a g e 45 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
P a g e 46 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
Goal-Seeking Guidelines
• You can enter either cell references or names in the Set Cell and By Changing Cell
boxes.
• The address in the Set Cell box must be directly or indirectly a formula.
• A changing cell must contain a value that the formula in the Set Cell box depends on,
either directly or indirectly.
• A changing cell cannot contain a formula.
• While goal seeking proceeds, the Goal Seek Status dialog box appears on the screen.
To interrupt the operation, choose the Pause button.
• If you want to continue one step at a time after choosing the Pause button, choose the
Step button to resume normal operation.
• When goal seeking is complete, Microsoft Excel displays the results on the worksheet
and in the Goal Seek Status dialog box. Choose the OK button to keep the solution
values on the worksheet; choose the Cancel button to restore the original values.
• If you decide to keep the solution on the worksheet but then change your mind,
choose Undo Goal Seek from the Edit menu immediately after goal seeking is
complete.
Once you've entered formulas on your worksheet, you can perform a "what-if" analysis
using a data table to see how changing certain values in your formula affects the results
of formulas. A data table is a range of cells that show the results of substituting different
values in one or more formulas. Data tables provide:
P a g e 47 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
• A way to view to and compare the results of all of the different variations together on
your worksheet.
One-Input Data Table: You enter different values for one variable and see the effect on
one formula.
To see how changes in one variable affect one or more formulas, use a one-input data
table. The data table in the following illustration is set up so that the interest rates entered
in column B-the input values-are substituted in cell D5-the input cell. The resulting
monthly payments are entered in the cell below the formula in cell C11.
D E
5 5 Years
6 10.5% Rate
7 100000 amt.
First, select the rectangular range containing the formula and the input values (B11:C16).
B C
11 (Rs2,149.39)
12 1
13 2
14 3
15 4
16 5
P a g e 48 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
The Column B gives the number of years you want to calculate the PMT for. When
you choose Table from the Data Tab ->Data Tools Group ->What-If Analysis,
specify cell D5 as the Column Input Cell.
B C
11 (Rs2,149.39)
12 1 -8814.86029
13 2 -4637.60416
14 3 -3250.24435
15 4 -2560.33798
16 5 -2149.39004
You can use as many formulas and input values, as you need in a one-input data table.
However, each formula must directly or indirectly refer to the same input cell. To add
additional formulas or input values to a data table, enter them in the blank cell below or
to the right of the existing formulas. Then select the entire table and modify it using the
Table command on the Data Tab ->Data Tools Group ->What-If Analysis.
In the preceding illustration, for example, you can also enter a formula in cell D11 that
calculates total interest paid on the loan. First, select the rectangular range containing
both the formulas and the input values, as shown in the following illustration. Then
specify cell D5 as the column-input cell. After you choose the OK button, the new values
are added to the table under cell D11.
In addition to entering input values in a column, as shown in the preceding example, you
can also enter input values in a row across the top of the table and enter formulas on the
side of the table. With this layout, you specify a Row Input Cell in the Table dialog box.
P a g e 49 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
To see how changes in two variables affect one formula, use a two-input data table. You
can include a number of values for each of the two variables, but you can use only one
formula in a two-input data table.
Look at the following Table
D E
5 5 Years
6 10.5% Rate
7 100000 amt.
In the following illustration, fill up the table as shown in the figure below. The figure
shows we have filled in 11th row rate of Interest and in the Column B from b12:b16
Period. The cell B11 contains the formula =ABS(PMT(D5/12,D6,D7))
B C D E
11 (Rs2,149.3 5% 6% 7%
9)
12 12
13 24
14 36
15 60
16 120
When you choose Table from the Data Tab ->Data Tools Group ->What-If Analysis,
specify cell D5 as the Column Input Cell (as Years are in Column). And cell D6 as Row
Input Cell (as Rate of Interest is in Rows).
The Table command calculates these values and adds them to your worksheet.
P a g e 50 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
C B C D E
11 (Rs2,149.39) 5% 6% 7%
12 1 -8560.75 -8606.64 -8652.67
13 2 -4387.14 -4432.06 -4477.26
14 3 -2997.09 -3042.19 -3087.71
15 4 -2302.93 -2348.5 -2394.62
16 5 -1887.12 -1933.28 -1980.12
What-If Scenarios
Scenarios are part of a suite of commands sometimes called what-if analysis tools. A
scenario is a set of values that Microsoft Excel saves and can substitute automatically in
your worksheet. You can use scenarios to forecast the outcome of a worksheet model.
You can create and save different groups of values on a worksheet and then switch to any
of these new scenarios to view different results. You can define up to 32 changing cell
per scenario.
Creating scenarios For example, if you want to find a Net Income on different scenario
in given example.
1999
Sales 54500
Other Income 28000
Gross Income 82500
Expense
Tel. Exp 3264
Tra. Exp 3570
Mis. Exp 2537.5
Total Exp 9371.5
Sales 9% 13% 5%
Other Income 12% 18% 8%
Tel. Exp 2% 3% 5%
Tra. Exp 2% 4% 5%
Mis. Exp 1.50% 1.50% 1.50%
Create a scenario
• Go to Data Tab ->Data Tools Group ->What-If Analysis ->Scenario Manager Click
Add.
• In the Scenario name box, type a name for the scenario.
• In the Changing cells box, enter the references for the cells that you want to change.
[eg select the range of current scenario range] Click OK.
• In the Scenario Values dialog box, type the values you want for the changing cells.
• To create the scenario, click OK.
• If you want to create additional scenarios, click Add again, and then repeat the
procedure. When you finish creating scenarios, click OK.
P a g e 52 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
• Go to Data Tab ->Data Tools Group ->What-If Analysis ->Scenario Manager Click
Summary.
• Click Scenario summary or Scenario PivotTable.
• In the Result cells box, enter the references for the cells that refer to cells whose
values are changed by the scenarios. Eg [ Net Income in the above example]. Separate
multiple references with commas.
Delete a scenario
Go to Data Tab ->Data Tools Group ->What-If Analysis ->Scenario Manager
Click the name of the scenario you want to delete, and then click Delete.
Display a scenario
When you display a scenario, you change the values of the cells saved as part of that
scenario.
Tip: Double-clicking the name of the scenario displayed in the Scenarios box is the same
as selecting the name and choosing the Show values.
It is easier to merge scenarios when all what-if models on the worksheets are identical.
All changing cells on the source worksheet must refer to the corresponding changing cells
on the active worksheet. Microsoft Excel copies all scenarios on the source sheet to the
active worksheet.
Open all of the workbooks that contain the scenarios you want to merge. Switch
to the worksheet where you want to merge the scenarios.
P a g e 53 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
Protecting Scenarios
The Add Scenario and Edit Scenario dialog boxes contain two protection options: Prevent
Changes and Hide. If you select Prevent Changes and then activate sheet protection, the
scenarios you define cannot be edited. However, this does not prevent you from the
values of the changing cells directly on the sheet (unless the cells themselves are locked).
Rather, the scenarios themselves are protected from modification when the Prevent
Changes check box is selected. In addition, selecting the Hide check box removes a
scenario name from the list of defined scenarios, preventing its display.
Once you select protection options in the Add Scenario or Edit Scenario dialog box, you
must activate sheet protection. To do this, use the protection command on the Tools
menu, and then choose Protect Sheet.
Note: When sheet protection is activated, you can still add scenarios. However, you
cannot edit or delete them unless the Prevent Changes check box is cleared.
Excel formulas can refer to cells and ranges in other worksheets within a workbook. They
can also refer to cells or ranges on a range of worksheets.
3-D formulas
A 3-D formula references the same cell or range on multiple worksheets. For example,
the formula = Jan!b2+Feb!b2+March!b2 will sums the data from the different worksheet
range. The syntax for referring to cells in another worksheet is:
worksheet_name!reference
Here, worksheet_name, refers to the name of the worksheet that provides the data,
reference is the name of the cell or range, and ! is the divider between the worksheet
reference and the cell reference.
P a g e 54 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
Consolidating Data
If we have a sheet consisting sales figure for different products for each month like Jan,
Feb and March. Suppose we want to find quarterly sales i.e. total sales of the first three
months. In such cases, we can consolidate the three worksheets and get a summary of the
same. Let‘s see how we do it.
P a g e 55 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
In a new sheet, Click on Data Tab ->Data Tools Group ->Consolidate. The consolidate
dialog box will open.
In the Reference option, click on the small red arrow and select the Jan. total. Click
on Add.
• Similarly select the range for Feb. and March and click on
Add. In the Use Labels In option select the option Left column.
• Select the option Create links to source data. Then click on
OK. The consolidated data will be displayed on the new sheet
(Qtr)
• Select the cell, go to Formulas Tab ->Define Names Group -> Define Name. The
define name dialogue box will appear. In the define dialogue box type a name for the
cell and click on Add. Click on Close.
• Now click on the cell where the hyper link is to be created and Click on Insert-
Hyperlink or press Ctrl+K.
• The Insert Hyperlink box will appear. Click on the Browse button of the ‗Named
Location in file‘ option.
P a g e 56 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
• In the browse dialog box click on the option Defined name the defined names for the
workbook will appear. Select the defined name, which we created in the above step
and click on OK.
• The selected name will appear in the ‗Named Location in file option. Click on OK.
The link is created.
Let's assume we have to copy a certain data from an excel sheet to the Word document .If
you do a normal copy-paste the contents pasted in the Word document are static i.e. they
will not be updated even if there is a change of data in the excel worksheet. Now let's see
how to create a link so that the data is updated even in the Word document.
Now whenever the data in the excel worksheet in changed the change will be
automatically reflected in the word document.
Data Form
P a g e 57 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
Excel can generate a built-in data form for your range. The data form displays all of your
column labels in a single dialog box, with a blank space beside each label for you to fill
in data for the column. You can enter new data; find rows based on cell contents, update
existing data, and delete rows from the range.
Use a data form when a simple form listing the columns is sufficient and you don't need
more sophisticated or custom features. A data form can make data entry easier than
typing across the columns when you have a wide range with more columns than will fit
on the screen at one time.
A data form is a dialog box that gives you a convenient way to enter or display one
complete row of information, or record, in a range or list at one time.
Before you can use a data form to add a record to a new range or list, the range or list
must have labels at the top of each column. Microsoft Excel uses these labels to create
fields on the form.
Like Excel 2003, Form option/command is not available anywhere. The reason is that the
Form option is not available on any of the ribbon tabs. To use the form capabilities of
Excel, you'll need to add the option to the Quick Launch Toolbar by following these
steps:
P a g e 58 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
Add a record
• Click New.
• Type the information for the new record.
• When you finish typing data, press ENTER to add the record.
• When you finish adding records, click Close to add the new Record and close the
data form.
Modify a record
To move through records one at a time, use the scroll bar arrows in the dialog box. To
move through 10 records at a time, click the scroll bar between the arrows.
To move to the next record in the range or list, click Find Next. To move to the previous
record in the range or list, click Find Previous.
To set search conditions, or comparison criteria, click Criteria, then enter the criteria into
the data form. To find records that match the criteria, click Find Next or Find Previous.
To return to the data form without searching for records based on the criteria you
specified, click Form.
The following wildcard characters can be used as comparison criteria for filters, and
when searching and replacing content.
Use To find
Any single character
For example, sm?th finds "smith" and
? (question mark)
"smyth"
• Fields that contain formulas display the results of the formula as a label. The label
cannot be changed in the data form.
• If you change a record that contains a formula, the formula is not calculated until
you press ENTER or click Close to update the record.
• To move to the next field, press TAB. To move to the previous field, press
SHIFT+TAB.
• When you finish changing data, press ENTER to update the record and move to
the next record.
• When you finish changing records, click Close to update displayed record and
close data form.
Delete a record
• Click Delete.
Notes
• Data forms can display a maximum of 32 fields at one time.
• While you are adding or changing a record, you can undo changes by clicking Restore
as long as the record is the active record in the data form
Auditing features
You can use Excel‘s auditing features to trace errors in a worksheet. You can also trace
the relationships between cells and formulas on your worksheets.
P a g e 60 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
When Excel detects an error in a worksheet, it will display an error value in the cell as
well as an Error Checking Smart Tag. You can click this smart tag to display a list of
commands that can help you to trace and correct the error. The Formula Auditing toolbar
also provides tools for doing this.
To correct an error, select the cell that contains the error and then either click the Trace
Error button (Formula Tab ->Formula Auditing Group-> Error Checking) or choose the
Trace Error command (available through the Smart Tag options or the Formula Tab
>Formula Auditing Group). When you do so, you will see tracer arrows pointing from
the cell containing the error to other cells that contain values used by the formula in the
first cell. Red arrows indicate possible sources of the error while blue arrows point to
cells that probably are not the cause.
Workgroup collaboration
Sharing workbooks
To share a workbook:
P a g e 61 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
You can control how a workbook is shared by using the advanced tab of the Share
Workbook dialog box. For example, under Update changes, you can select when file is
saved to see other users‘ changes each time you save the workbook. You can also set the
interval at which changes will be shown automatically.
Merging workbooks
You may need to share a workbook among users who cannot access the same file
simultaneously. In such a situation, you can distribute copies of the shared workbook,
allow users to make changes to their copies, and then merge those copies into a single
workbook. To share a workbook that you intend to merge later:
• Open the Share Workbook dialog box, activate the Editing tab, and check Allow
changes by more than one user at the same time.
• On the Advanced tab, under Track changes, select Keep change history for. In the
box, enter the number of days you want to allow users to make changes in the
workbook, and then click OK.
• Make copies of the workbook and distribute one to each user.
After the users have made changes to their copies of the workbook, you can merge the
copies into a single workbook. Here‘s how:
• Choose Tools, Compare and Merge Workbooks to open the Select Files to Merge Into
Current Workbook dialog box.
• From the list, select the copy or copies of the workbook that contain changes you
want to merge.
• Click OK.
P a g e 62 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
Tracking changes
You can analyze changes users have made to a workbook by using the Track Changes
feature. This will tell you who made the changes, when they were made, and the original
and changed values without having to manually compare the two workbooks. If your
workbook is not shared, Excel makes the workbook shared automatically when you turn
on the Track Changes feature.
To highlight changes:
P a g e 63 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
Excel has all sorts of formatting features that you can use to quickly format data, increase
consistency, or highlight particular data. These features include AutoFormat, conditional
formatting, and merging styles.
AutoFormat
Conditional formatting
You can use conditional formatting when you want to apply a format to a cell or range
only if certain conditions are met. You can specify a maximum of 64 conditions. Each
condition can have a separate format, such as a different font, border, or pattern.
Conditional Formatting allows you to change the appearance of a cell, depending on
certain conditions. What we'll do is to color the Overall Averages on our Student Exam
spreadsheet, depending on the grade. Here's the spreadsheet we'll be working on.
• Highlight the cells with Overall Grades, which should be cells B11 to I11
The Overall Averages range from 44 to 85. We'll color each grade, depending on a scale.
A different color will apply to the following grades:
• 50 and below
P a g e 64 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
• 51 to 60
• 61 to 70
• 71 to 80
• 81 and above
So five different bands, and a color for each. To set the Conditional Formatting in Excel
2010, do the following:
• With your Overall Averages highlighted, click on the Home menu at the top of
Excel
• Locate the Styles panel, and the Conditional Formatting item:
The Conditional Formatting menu gives you various options. The easiest one is the Color
Scales option. Select one of these and Excel will color the cell backgrounds for you:
That's not quite what we're looking for, though. We'd like to choose our own values. So
click on More Rules, from the Color Scales submenu. You'll see the following rather
complex dialogue box:
P a g e 65 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
The one we want is the second option, Format only cells that contain. This will allow us
to set up our values. When you click this option, the dialogue box changes to this:
P a g e 66 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
The part we're interested in is the bottom part; under the heading Edit the Rule
Description. It says Cell Value and Between, in the drop down boxes. These are the
ones we want. We only need to type a value for the two boxes that are currently blank in
the image above. We can then click the Format button to choose a color.
Then click the Format button. You'll get another dialogue box popping up. This is just
the Format Cells one though. You've met this before. Click on the Fill tab and choose a
color. Click OK and you should see something like this under Edit the Rule Description:
The Preview is showing the color we picked. So we've said, "If the Cell Value is between
0 and 50 then colors the cell Red".
Click OK on this dialogue box to get back to Excel. You should find that one of the cells
has turned red. To format the rest of the cells, click on Conditional Formatting on the
Styles panel again. From the menu, click on Manage Rules:
P a g e 67 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
You'll get yet another complex dialogue box popping up! This one:
Our first rule is already there - Cell Value Between. The only thing we're doing here is
adding New Rules, similar to the one we've just set up. Click the New Rule button then.
You'll see the exact same dialogue boxes you used to set up the first rule. Set a new color
for the next scores - 51 to 60. Choose a color, and keep clicking OK until you get back to
the Rules Manager dialogue box. It should now look something like this one:
P a g e 68 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
We now have to colors in our range. Do the rest of the scores, choosing a color for each.
The scores are these, remember:
• 50 and below
• 51 to 60
• 61 to 70
• 71 to 80
• 81 and above
When you've done them all, your dialogue box should have five colors:
P a g e 69 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
The colors above are entirely arbitrary, and you don't have to select the same ones we did.
The point is to have a different color for each range of scores. But click OK when you're
done. Your Overall Averages will then look something like this:
Formatting your spreadsheet in this way allows you to see at glance relevant information.
In the spreadsheet above, it's obvious who's failing - just look for the red cells!
Macros
What is Macro?
VBA (Macro), which stands for Visual Basic for Applications, is a programming
language developed by Microsoft Excel, along with the other members of Microsoft
Office 2003, includes the VBA language (at no extra charge). In a nutshell, VBA is
the tool that people like you and me use to develop programs that control Excel. Don't
confuse VBA with VB (which stands for Visual Basic). VB is a programming
language that lets you create standalone executable programs (those EXE files).
Although VBA and VB have a lot in common, they are different animals.
P a g e 70 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
• Plan exactly what you want to accomplish, and how to go about it. In fact, you should
run through the precise keystrokes that you plan on recording before actually
recording them.
• Turn on the recorder using the View Tab ->Macro Group->Record Macro
• Enter a meaningful Macro Name. The name can be up to 255 characters in length,
consisting of letters, numbers, and under scores. There can be no spaces or other
punctuation marks. (It is common to use underscores or proper case to separate
words.) The name must begin with a letter.
By default, the Description will include your name and the date. This text is place above
the actual macro in the VBA module, as comments. You can add additional comments to
explain the purpose of the macro.
• At this point, you can click OK to begin recording. But there are additional settings
that are made Available by clicking the Options button. You can create a format of a
report, giving Company Name as the header. Insert date to the right corner of a page,
also create a format of a table below it with proper headings having special fonts-bold
etc.
• After doing other formatting, stop recording the macro – either by clicking the stop
recording button or using Tools, Macro, Stop Recording option from the main menu.
Check this option if you want to assign a shortcut key for the macro you is about to
record. Then enter a key that is to be used in conjunction with the Ctrl key to run the
macro. If you check Shortcut Key, and enter T as the Ctrl+key, then after the macro is
recorded, pressing Ctrl+T will run the macro.
P a g e 71 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
Store In
This workbook, named PERSONAL.XLS, is automatically opened and hidden, each time
you start Excel. This is a good place to store macros that you want available at all times.
This Workbook
Place the macro in the active workbook. If there is no active workbook, this option is not
available.
New Workbook
A new workbook will be created, and the macro will be recorded in it.
Macros that are contained on all currently open workbooks are displayed in the list. To
run a macro, select it from the list and click Run. The Macro dialog box provides several
additional capabilities:
Step Click this button to run the macro step by step. Stepping through a macro is
useful for debugging purposes
.
Edit The module containing the macro is activated, and the macro is displayed for
editing purposes.
Delete Deletes the selected macro. (You can also delete macros by activating the
module and clearing the macro.)
Options Lets you assign a shortcut key, add a command to Excel's Tools menu that
P a g e 72 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
• Click Office Button ->Excel Option ->Popular Tab and check on Show Developer tab
in the Ribbon
• Go to Developer Tab ->Controls Group ->Form Controls Click the Button tool, and
then draw the button on the worksheet.
• The Assign Macro dialog box is displayed.
• Select a macro from the list, and click OK.
If the macro is in a different workbook than the button, a link is established to the
workbook containing the macro. (The workbook will display in the Edit, Links dialog.) If
the workbook containing the macro is closed, and you click the button, the workbook
containing the macro is opened automatically, and the macro runs.
Note: If you delete a button that is assigned to a macro, the macro is not deleted.
P a g e 75 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
same time
Personal in a shared workbook Limited by available memory
Days that is maintained 32,767 (default is 30 days)
Workbooks that can be merged at one
Limited by available memory
time
Cells that can be highlighted in a
32,767
shared workbook
Colors used to identify changes made 32 (each user is identified by a separate
by different users when change color; changes made by the current user
highlighting is turned on are highlighted with navy blue)
P a g e 78 | 79
ADVANCE EXCEL | PROFF.GAYATRI SHETH
P a g e 79 | 79