MS Excel Basics
MS Excel Basics
Excel - Home
Excel - Getting Started
Excel - Explore Window
Excel - Backstage
Excel - Entering Values
Excel - Move Around
Excel - Save Workbook
Excel - Create Worksheet
Excel - Copy Worksheet
Excel - Hiding Worksheet
Excel - Delete Worksheet
Excel - Close Workbook
Excel - Open Workbook
Excel - Context Help
Editing Worksheet
Excel - Insert Data
Excel - Select Data
Excel - Delete Data
Excel - Move Data
Excel - Rows & Columns
Excel - Copy & Paste
Excel - Find & Replace
Excel - Spell Check
Excel - Zoom In-Out
Excel - Special Symbols
Excel - Insert Comments
Excel - Add Text Box
Excel - Undo Changes
Formatting Cells
Excel - Setting Cell Type
Excel - Setting Fonts
Excel - Text Decoration
Excel - Rotate Cells
Excel - Setting Colors
Excel - Text Alignments
Excel - Merge & Wrap
Excel - Borders and Shades
Excel - Apply Formatting
Formatting Worksheets
Excel - Sheet Options
Excel - Adjust Margins
Excel - Page Orientation
Excel - Header and Footer
Excel - Insert Page Breaks
Excel - Set Background
Excel - Freeze Panes
Excel - Conditional Format
Working with Formula
Excel - Creating Formulas
Excel - Copying Formulas
Excel - Formula Reference
Excel - Using Functions
Excel - Builtin Functions
Advanced Operations
Excel - Data Filtering
Excel - Data Sorting
Excel - Using Ranges
Excel - Data Validation
Excel - Using Styles
Excel - Using Themes
Excel - Using Templates
Excel - Using Macros
Excel - Adding Graphics
Excel - Cross Referencing
Excel - Printing Worksheets
Excel - Email Workbooks
Excel- Translate Worksheet
Excel - Workbook Security
Excel - Data Tables
Excel - Pivot Tables
Excel - Simple Charts
Excel - Pivot Charts
Excel - Keyboard Shortcuts
MS Excel Resources
Excel - Quick Guide
Step 4 − Search for Microsoft Excel 2010 from the submenu and click it.
This will launch the Microsoft Excel 2010 application and you will see the following excel
window.
File Tab
The File tab replaces the Office button from Excel 2007. You can click it to check the Backstage
view, where you come when you need to open or save files, create new sheets, print a sheet, and
do other file-related operations.
Ribbon
Ribbon contains commands organized in three components −
Tabs − They appear across the top of the Ribbon and contain groups of related
commands. Home, Insert, Page Layout are the examples of ribbon tabs.
Groups − They organize related commands; each group name appears below the group
on the Ribbon. For example, group of commands related to fonts or group of commands
related to alignment etc.
Commands − Commands appear within each group as mentioned above.
Title Bar
This lies in the middle and at the top of the window. Title bar shows the program and the sheet
titles.
Help
The Help Icon can be used to get excel related help anytime you like. This provides nice tutorial
on various subjects related to excel.
Zoom Control
Zoom control lets you zoom in for a closer look at your text. The zoom control consists of a
slider that you can slide left or right to zoom in or out. The + buttons can be clicked to increase
or decrease the zoom factor.
View Buttons
The group of three buttons located to the left of the Zoom control, near the bottom of the screen,
lets you switch among excel's various sheet views.
Sheet Area
The area where you enter data. The flashing vertical bar is called the insertion point and it
represents the location where text will appear when you type.
Row Bar
Rows are numbered from 1 onwards and keeps on increasing as you keep entering data.
Maximum limit is 1,048,576 rows.
Column Bar
Columns are numbered from A onwards and keeps on increasing as you keep entering data. After
Z, it will start the series of AA, AB and so on. Maximum limit is 16,384 columns.
Status Bar
This displays the current status of the active cell in the worksheet. A cell can be in either of the
fours states (a) Ready mode which indicates that the worksheet is ready to accept user inpu
(b) Edit mode indicates that cell is editing mode, if it is not activated the you can activate editing
mode by double-clicking on a cell (c) A cell enters into Enter mode when a user types data into
a cell (d) Point mode triggers when a formula is being entered using a cell reference by mouse
pointing or the arrow keys on the keyboard.
Getting to the Backstage View is easy. Just click the File tab located in the upper-left corner of
the Excel Ribbon. If you already do not have any opened sheet then you will see a window
listing down all the recently opened sheets as follows −
If you already have an opened sheet then it will display a window showing the details about the
opened sheet as shown below. Backstage view shows three columns when you select most of the
available options in the first column.
First column of the backstage view will have the following options −
Save
1 If an existing sheet is opened, it would be saved as is, otherwise it will
display a dialogue box asking for the sheet name.
Save As
2 A dialogue box will be displayed asking for sheet name and sheet type. By
default, it will save in sheet 2010 format with extension .xlsx.
Open
3
This option is used to open an existing excel sheet.
Close
4
This option is used to close an opened sheet.
Info
5
This option displays the information about the opened sheet.
6 Recent
This option lists down all the recently opened sheets.
New
7
This option is used to open a new sheet.
Print
8
This option is used to print an opened sheet.
Help
10
You can use this option to get the required help about excel 2010.
Options
11
Use this option to set various option related to excel 2010.
Exit
12
Use this option to close the sheet and exit.
Sheet Information
When you click Info option available in the first column, it displays the following information in
the second column of the backstage view −
Compatibility Mode − If the sheet is not a native excel 2007/2010 sheet, a Convert
button appears here, enabling you to easily update its format. Otherwise, this category
does not appear.
Permissions − You can use this option to protect the excel sheet. You can set a password
so that nobody can open your sheet, or you can lock the sheet so that nobody can edit
your sheet.
Prepare for Sharing − This section highlights important information you should know
about your sheet before you send it to others, such as a record of the edits you made as
you developed the sheet.
Versions − If the sheet has been saved several times, you may be able to access previous
versions of it from this section.
Sheet Properties
When you click Info option available in the first column, it displays various properties in the
third column of the backstage view. These properties include sheet size, title, tags, categories etc.
You can also edit various properties. Just try to click on the property value and if property is
editable, then it will display a text box where you can add your text like title, tags, comments,
Author.
So, just keep your mouse cursor at the text insertion point and start typing whatever text you
would like to type. We have typed only two words "Hello Excel" as shown below. The text
appears to the left of the insertion point as you type.
There are following three important points, which would help you while typing −
Up one box
You can move box by box or sheet by sheet. Now click in any box containing data in the sheet.
You would have to hold down the Ctrl key while pressing an arrow key, which moves the
insertion point as described here −
Normally, we use row and column number, for example K5 and finally press Go To button.
If your sheet is new and it was never saved so far, then with either of the three options, word
would display you a dialogue box to let you select a folder, and enter sheet name as explained in
case of saving new sheet.
Step 1 − Right Click the Sheet Name and select Insert option.
Step 2 − Now you'll see the Insert dialog with select Worksheet option as selected from the
general tab. Click the Ok button.
Now you should have your blank sheet as shown below ready to start typing your text.
You can use a short cut to create a blank sheet anytime. Try using the Shift+F11 keys and you
will see a new blank sheet similar to the above sheet is opened.
Step 1 − Right Click the Sheet Name and select the Move or Copy option.
Step 2 − Now you'll see the Move or Copy dialog with select Worksheet option as selected from
the general tab. Click the Ok button.
Select Create a Copy Checkbox to create a copy of the current sheet and Before sheet option
as (move to end) so that new sheet gets created at the end.
Step − Right Click the Sheet Name and select the Hide option. Sheet will get hidden.
Unhiding Worksheet
Here are the steps to unhide a worksheet.
Step 1 − Right Click on any Sheet Name and select the Unhide... option.
Step 2 − Select Sheet Name to unhide in Unhide dialog to unhide the sheet.
Step − Right Click the Sheet Name and select the Delete option.
Sheet will get deleted if it is empty, otherwise you'll see a confirmation message.
Press the Delete Button.
Step 1 − Click the File Menu as shown below. You can see the Open option in File Menu.
There are two more columns Recent workbooks and Recent places, where you can see the
recently opened workbooks and the recent places from where workbooks are opened.
Step 2 − Clicking the Open Option will open the browse dialog as shown below. Browse the
directory and find the file you need to open.
Step 3 − Once you select the workbook your workbook will be opened as below −
Inserting Data
For inserting data in MS Excel, just activate the cell type text or number and press enter or
Navigation keys.
Inserting Formula
For inserting formula in MS Excel go to the formula bar, enter the formula and then press enter
or navigation key. See the screen-shot below to understand it.
Modifying Cell Content
For modifying the cell content just activate the cell, enter a new value and then press enter or
navigation key to see the changes. See the screen-shot below to understand it.
Select Data in Excel 2010
MS Excel provides various ways of selecting data in the sheet. Let us see those ways.
Step 1 − Select the data you want to Move. Right Click and Select the cut option.
Step 2 − Select the first cell where you want to move the data. Right click on it and paste the
data. You can see the data is moved now.
Rows & Columns in Excel 2010
Row and Column Basics
MS Excel is in tabular format consisting of rows and columns.
For MS Excel 2010, Row numbers ranges from 1 to 1048576; in total 1048576 rows, and
Columns ranges from A to XFD; in total 16384 columns.
You can go to the last row by clicking Control + Down Navigation arrow.
You can go to the last column by clicking Control + Right Navigation arrow.
Cell Introduction
The intersection of rows and columns is called cell.
Copy Paste
To copy and paste, just select the cells you want to copy. Choose copy option after right
click or press Control + C.
Select the cell where you need to paste this copied content. Right click and select paste
option or press Control + V.
In this case, MS Excel will copy everything such as values, formulas, Formats, Comments and
validation. MS Excel will overwrite the content with paste. If you want to undo this,
press Control + Z from the keyboard.
All − Pastes the cell’s contents, formats, and data validation from the Windows
Clipboard.
Formulas − Pastes formulas, but not formatting.
Values − Pastes only values not the formulas.
Formats − Pastes only the formatting of the source range.
Comments − Pastes the comments with the respective cells.
Validation − Pastes validation applied in the cells.
All using source theme − Pastes formulas, and all formatting.
All except borders − Pastes everything except borders that appear in the source range.
Column Width − Pastes formulas, and also duplicates the column width of the copied
cells.
Formulas & Number Formats − Pastes formulas and number formatting only.
Values & Number Formats − Pastes the results of formulas, plus the number.
Merge Conditional Formatting − This icon is displayed only when the copied cells
contain conditional formatting. When clicked, it merges the copied conditional formatting
with any conditional formatting in the destination range.
Transpose − Changes the orientation of the copied range. Rows become columns, and
columns become rows. Any formulas in the copied range are adjusted so that they work
properly when transposed.
Find & Replace in Excel 2010
MS Excel provides Find & Replace option for finding text within the sheet.
To access the Find & Replace, Choose Home → Find & Select → Find or press Control + F
Key. See the image below.
You can see the Find and Replace dialogue as below.
You can replace the found text with the new text in the Replace tab.
Exploring Options
Now, let us see the various options available under the Find dialogue.
Ignore Once − Ignores the word and continues the spell check.
Ignore All − Ignores the word and all subsequent occurrences of it.
Add to Dictionary − Adds the word to the dictionary.
Change − Changes the word to the selected word in the Suggestions list.
Change All − Changes the word to the selected word in the Suggestions list and changes
all subsequent occurrences of it without asking.
AutoCorrect − Adds the misspelled word and its correct spelling (which you select from
the list) to the AutoCorrect list.
You can view the zoom slider at the right bottom of the workbook as shown below.
Zoom In
You can zoom in the workbook by moving the slider to the right. It will change the only view of
the workbook. You can have maximum of 400% zoom in. See the below screen-shot.
Zoom Out
You can zoom out the workbook by moving the slider to the left. It will change the only view of
the workbook. You can have maximum of 10% zoom in. See the below screen-shot.
Special Symbols in Excel 2010
If you want to insert some symbols or special characters that are not found on the keyboard in
that case you need to use the Symbols option.
Using Symbols
Go to Insert » Symbols » Symbol to view available symbols. You can see many symbols
available there like Pi, alpha, beta, etc.
Select the symbol you want to add and click insert to use the symbol.
Using Special Characters
Go to Insert » Symbols » Special Characters to view the available special characters. You can
see many special characters available there like Copyright, Registered etc.
Select the special character you want to add and click insert, to use the special character.
Insert Comments in Excel 2010
Adding Comment to Cell
Adding comment to cell helps in understanding the purpose of cell, what input it should have,
etc. It helps in proper documentation.
To add comment to a cell, select the cell and perform any of the actions mentioned below.
Initially, a comment consists of Computer's user name. You have to modify it with text for the
cell comment.
Modifying Comment
You can modify the comment you have entered before as mentioned below.
Initially, the comment consists of Computer's user name. You have to modify it with text for the
cell comment.
Formatting Text Box
After you have added the text box, you can format it by changing the font, font size, font style,
and alignment, etc. Let us see some of the important options of formatting a text box.
Fill − Specifies the filling of text box like No fill, solid fill. Also specifying the
transparency of text box fill.
Line Colour − Specifies the line colour and transparency of the line.
Line Style − Specifies the line style and width.
Size − Specifies the size of the text box.
Properties − Specifies some properties of the text box.
Text Box − Specifies text box layout, Auto-fit option and internal margins.
Undo Changes in Excel 2010
Undo Changes
You can reverse almost every action in Excel by using the Undo command. We can undo
changes in following two ways.
Redo Changes
You can again reverse back the action done with undo in Excel by using the Redo command. We
can redo changes in following two ways.
Text Decoration
Various options are available in Home tab of the ribbon as mentioned below.
Bold − It makes the text in bold by choosing Home » Font Group » Click B or
Press Control + B.
Italic − It makes the text italic by choosing Home » Font Group » Click I or
Press Control + I.
Underline − It makes the text to be underlined by choosing Home » Font Group »
Click U or Press Control + U.
Double Underline − It makes the text highlighted as double underlined by choose Home
» Font Group » Click arrow near U » Select Double Underline.
More Text Decoration Options
There are more options available for text decoration in Formatting cells » Font Tab »Effects cells
as mentioned below.
Left − Aligns the cell contents to the left side of the cell.
Center − Centers the cell contents in the cell.
Right − Aligns the cell contents to the right side of the cell.
Fill − Repeats the contents of the cell until the cell’s width is filled.
Justify − Justifies the text to the left and right of the cell. This option is applicable only if
the cell is formatted as wrapped text and uses more than one line.
2. Vertical Alignment − You can set Vertical alignment to top, Middle, bottom, etc.
Choose Merge & Center control on the Ribbon, which is simpler. To merge cells, select
the cells that you want to merge and then click the Merge & Center button.
Choose Alignment tab of the Format Cells dialogue box to merge the cells.
Additional Options
The Home » Alignment group » Merge & Center control contains a drop-down list with these
additional options −
Merge Across − When a multi-row range is selected, this command creates multiple
merged cells — one for each row.
Merge Cells − Merges the selected cells without applying the Center attribute.
Unmerge Cells − Unmerges the selected cells.
Choose Page Layout » Page Setup » Margins drop-down list, you can select Normal,
Wide, Narrow, or the custom Setting.
These options are also available when you choose File » Print.
If none of these settings does the job, choose Custom Margins to display the Margins tab of the
Page Setup dialog box, as shown below.
Center on Page
By default, Excel aligns the printed page at the top and left margins. If you want the output to be
centered vertically or horizontally, select the appropriate check box in the Center on Page section
of the Margins tab as shown in the above screenshot.
You can choose the predefined header and footer or create your custom ones.
Different First Page − Check this to specify a different header or footer for the first
printed page.
Different Odd & Even Pages − Check this to specify a different header or footer for odd
and even pages.
Scale with Document − If checked, the font size in the header and footer will be sized.
Accordingly if the document is scaled when printed. This option is enabled, by default.
Align with Page Margins − If checked, the left header and footer will be aligned with
the left margin, and the right header and footer will be aligned with the right margin. This
option is enabled, by default.
MS Excel handles page breaks automatically, but sometimes you may want to force a page
break either a vertical or a horizontal one. so that the report prints the way you want.
For example, if your worksheet consists of several distinct sections, you may want to print each
section on a separate sheet of paper.
Select the First row or First Column or the row Below, which you want to freeze, or
Column right to area, which you want to freeze.
Choose View Tab » Freeze Panes.
Select the suitable option −
o Freeze Panes − To freeze area of cells.
o Freeze Top Row − To freeze first row of worksheet.
o Freeze First Column − To freeze first Column of worksheet.
If you have selected Freeze top row you can see the first row appears at the top, after
scrolling also. See the below screen-shot.
Unfreeze Panes
To unfreeze Panes, choose View Tab » Unfreeze Panes.
After Clicking ok, the cells with value zero are marked as red.
Top/Bottom Rules − It opens a continuation menu with various options for defining the
formatting rules that highlight the top and bottom values, percentages, and above and
below average values in the cell selection.
Suppose you want to highlight the top 10% rows you can do this with these Top/Bottom rules.
Data Bars − It opens a palette with different color data bars that you can apply to the cell
selection to indicate their values relative to each other by clicking the data bar thumbnail.
With this conditional Formatting data Bars will appear in each cell.
Color Scales − It opens a palette with different three- and two-colored scales that you
can apply to the cell selection to indicate their values relative to each other by clicking
the color scale thumbnail.
See the below screenshot with Color Scales, conditional formatting applied.
Icon Sets − It opens a palette with different sets of icons that you can apply to the cell
selection to indicate their values relative to each other by clicking the icon set.
See the below screenshot with Icon Sets conditional formatting applied.
New Rule − It opens the New Formatting Rule dialog box, where you define a custom
conditional formatting rule to apply to the cell selection.
Clear Rules − It opens a continuation menu, where you can remove the conditional
formatting rules for the cell selection by clicking the Selected Cells option, for the entire
worksheet by clicking the Entire Sheet option, or for just the current data table by
clicking the This Table option.
Manage Rules − It opens the Conditional Formatting Rules Manager dialog box, where
you edit and delete particular rules as well as adjust their rule precedence by moving
them up or down in the Rules list box.
Formulas use a variety of operators and worksheet functions to work with values and text. The
values and text used in formulas can be located in other cells, which makes changing data easy
and gives worksheets their dynamic nature. For example, you can quickly change the data in a
worksheet and formulas works.
Elements of Formulas
A formula can consist of any of these elements −
Creating Formula
For creating a formula you need to type in the Formula Bar. Formula begins with '=' sign. When
building formulas manually, you can either type in the cell addresses or you can point to them in
the worksheet. Using the Pointing method to supply the cell addresses for formulas is often
easier and more powerful method of formula building. When you are using built-in functions,
you click the cell or drag through the cell range that you want to use when defining the
function’s arguments in the Function Arguments dialog box. See the below screen shot.
As soon as you complete a formula entry, Excel calculates the result, which is then displayed
inside the cell within the worksheet (the contents of the formula, however, continue to be visible
on the Formula bar anytime the cell is active). If you make an error in the formula that prevents
Excel from being able to calculate the formula at all, Excel displays an Alert dialog box
suggesting how to fix the problem.
Let us see this with the help of example. Suppose we want the sum of all the rows at last, then
we will write a formula for first column i.e. B. We want sum of the rows from 3 to 8 in the
9th row.
After writing formula in the 9th row, we can drag it to remaining columns and the formula gets
copied. After dragging we can see the formula in the remaining columns as below.
column C : =SUM(C3:C8)
column D : =SUM(D3:D8)
column E : =SUM(E3:E8)
column F : =SUM(F3:F8)
column G : =SUM(G3:G8)
Formula Reference in Excel 2010
Cell References in Formulas
Most formulas you create include references to cells or ranges. These references enable your
formulas to work dynamically with the data contained in those cells or ranges. For example, if
your formula refers to cell C2 and you change the value contained in C2, the formula result
reflects new value automatically. If you didn’t use references in your formulas, you would need
to edit the formulas themselves in order to change the values used in the formulas.
When you use a cell (or range) reference in a formula, you can use three types of references −
relative, absolute, and mixed references.
Using Functions
When you type = sign and then type any alphabet you will see the searched functions as below.
Suppose you need to determine the largest value in a range. A formula can’t tell you the answer
without using a function. We will use formula that uses the MAX function to return the largest
value in the range B3:B8 as =MAX(A1:D100).
Another example of functions. Suppose you want to find if the cell of month is greater than 1900
then we can give Bonus to Sales representative. The we can achieve it with writing formula with
IF functions as =IF(B9>1900,"Yes","No")
Function Arguments
In the above examples, you may have noticed that all the functions used parentheses. The
information inside the parentheses is the list of arguments.
Functions vary in how they use arguments. Depending on what it has to do, a function may use.
Functions by Categories
Let us see some of the built in functions in MS Excel.
Text Functions
o LOWER − Converts all characters in a supplied text string to lower case
o UPPER − Converts all characters in a supplied text string to upper case
o TRIM − Removes duplicate spaces, and spaces at the start and end of a text string
o CONCATENATE − Joins together two or more text strings.
o LEFT − Returns a specified number of characters from the start of a supplied text
string.
o MID − Returns a specified number of characters from the middle of a supplied
text string
o RIGHT − Returns a specified number of characters from the end of a supplied
text string.
o LEN − Returns the length of a supplied text string
o FIND − Returns the position of a supplied character or text string from within a
supplied text string (case-sensitive).
Date & Time
o DATE − Returns a date, from a user-supplied year, month and day.
o TIME − Returns a time, from a user-supplied hour, minute and second.
o DATEVALUE − Converts a text string showing a date, to an integer that
represents the date in Excel's date-time code.
o TIMEVALUE − Converts a text string showing a time, to a decimal that
represents the time in Excel.
o NOW − Returns the current date & time.
o TODAY − Returns today's date.
Statistical
o MAX − Returns the largest value from a list of supplied numbers.
o MIN − Returns the smallest value from a list of supplied numbers.
o AVERAGE − Returns the Average of a list of supplied numbers.
o COUNT − Returns the number of numerical values in a supplied set of cells or
values.
o COUNTIF − Returns the number of cells (of a supplied range), that satisfies a
given criteria.
o SUM − Returns the sum of a supplied list of numbers
Logical
o AND − Tests a number of user-defined conditions and returns TRUE if ALL of
the conditions evaluate to TRUE, or FALSE otherwise
o OR − Tests a number of user-defined conditions and returns TRUE if ANY of the
conditions evaluate to TRUE, or FALSE otherwise.
o NOT − Returns a logical value that is the opposite of a user supplied logical value
or expression i.e. returns FALSE if the supplied argument is TRUE and returns
TRUE if the supplied argument is FAL
Math & Trig
o ABS − Returns the absolute value (i.e. the modulus) of a supplied number.
o SIGN − Returns the sign (+1, -1 or 0) of a supplied number.
o SQRT − Returns the positive square root of a given number.
o MOD − Returns the remainder from a division between two supplied numbers.
Using the store data, if you are interested in seeing data where Shoe Size is 36, then you can set
filter to do this. Follow the below mentioned steps to do this.
A group of cells is called a range. You designate a range address by specifying its upper-left cell
address and its lower-right cell address, separated by a colon.
Example of Ranges −
Selecting Ranges
You can select a range in several ways −
Press the left mouse button and drag, highlighting the range. Then release the mouse
button. If you drag to the end of the screen, the worksheet will scroll.
Press the Shift key while you use the navigation keys to select a range.
Press F8 and then move the cell pointer with the navigation keys to highlight the range.
Press F8 again to return the navigation keys to normal movement.
Type the cell or range address into the Name box and press Enter. Excel selects the cell
or range that you specified.
Settings Tab
Here you can set the type of validation you need. Choose an option from the Allow drop-down
list. The contents of the Data Validation dialog box will change, displaying controls based on
your choice.
Any Value − Selecting this option removes any existing data validation.
Whole Number − The user must enter a whole number.For example, you can specify
that the entry must be a whole number greater than or equal to 50.
Decimal − The user must enter a number. For example, you can specify that the entry
must be greater than or equal to 10 and less than or equal to 20.
List − The user must choose from a list of entries you provide. You will create drop-
down list with this validation. You have to give input ranges then those values will
appear in the drop-down.
Date − The user must enter a date. You specify a valid date range from choices in the
Data drop-down list. For example, you can specify that the entered data must be greater
than or equal to January 1, 2013, and less than or equal to December 31, 2013.
Time − The user must enter a time. You specify a valid time range from choices in the
Data drop-down list. For example, you can specify that the entered data must be later
than 12:00 p.m.
Text Length − The length of the data (number of characters) is limited. You specify a
valid length by using the Data drop-down list. For example, you can specify that the
length of the entered data be 1 (a single alphanumeric character).
Custom − To use this option, you must supply a logical formula that determines the
validity of the user’s entry (a logical formula returns either TRUE or FALSE).
Number format
Font (type, size, and color)
Alignment (vertical and horizontal)
Borders
Pattern
Protection (locked and hidden)
Now, let us see how styles are helpful. Suppose that you apply a particular style to some twenty
cells scattered throughout your worksheet. Later, you realize that these cells should have a font
size of 12 pt. rather than 14 pt. Rather than changing each cell, simply edit the style. All cells
with that particular style change automatically.
Applying Styles
Choose Home » Styles » Cell Styles. Note that this display is a live preview, that is, as you
move your mouse over the style choices, the selected cell or range temporarily displays the style.
When you see a style you like, click it to apply the style to the selection.
Applying Themes
Choose Page layout Tab » Themes Dropdown. Note that this display is a live preview, that is,
as you move your mouse over the Theme, it temporarily displays the theme effect. When you see
a style you like, click it to apply the style to the selection.
Click on the save current theme option under Theme in Page Layout Tab.
This will save the current theme to office folder.
You can browse the theme later to load the theme.
View Macros − Opens the Macro dialog box where you can select a macro to run or edit.
Record Macro − Opens the Record Macro dialog box where you define the settings for
your new macro and then start the macro recorder; this is the same as clicking the Record
Macro button on the Status bar.
Use Relative References − Uses relative cell addresses when recording a macro, making
the macro more versatile by enabling you to run it in areas of a worksheet other than the
ones originally used in the macro’s recording.
Creating Macros
You can create macros in one of two ways −
Use MS Excel’s macro recorder to record your actions as you undertake them in a
worksheet.
Enter the instructions that you want to be followed in a VBA code in the Visual Basic
Editor.
Now let's create a simple macro that will automate the task of making cell content Bold and
apply cell color.
Choose View Tab » Macro dropdown.
Click on Record Macro as below.
VLOOKUP
VlookUp searches for a value vertically down for the lookup table.
VLOOKUP(lookup_value,table_array,col_index_num,range_lookup) has 4 parameters as below.
lookup_value − It is the user input. This is the value that the function uses to search on.
The table_array − It is the area of cells in which the table is located. This includes not
only the column being searched on, but the data columns for which you are going to get
the values that you need.
Col_index_num − It is the column of data that contains the answer that you want.
Range_lookup − It is a TRUE or FALSE value. When set to TRUE, the lookup function
gives the closest match to the lookup_value without going over the lookup_value. When
set to FALSE, an exact match must be found to the lookup_value or the function will
return #N/A. Note, this requires that the column containing the lookup_value be
formatted in ascending order.
VLOOKUP Example
Let's look at a very simple example of cross-referencing two spreadsheets. Each spreadsheet
contains information about the same group of people. The first spreadsheet has their dates of
birth, and the second shows their favorite color. How do we build a list showing the person's
name, their date of birth and their favorite color? VLOOOKUP will help in this case. First of all,
let us see data in both the sheets.
Choose File » Print (which displays the Print pane), and then click the Print button.
Press Ctrl+P and then click the Print button (or press Enter).
Adjusting Common Page Setup Settings
You can adjust the print settings available in the Page setup dialogue in different ways as
discussed below. Page setup options include Page orientation, Page Size, Page Margins, etc.
The Print screen in Backstage View, displayed when you choose File » Print.
The Page Layout tab of the Ribbon.
Active Sheets − Prints the active sheet or sheets that you selected.
Entire Workbook − Prints the entire workbook, including chart sheets.
Selection − Prints only the range that you selected before choosing File » Print.
Email Workbooks MS Excel 2010
Email Workbook
MS Excel allows you to email the workbook very easily. To email the workbook to anyone,
follow the below mentioned steps.
Choose File » Save and Send. It basically saves the document first and then the emails.
Click on Send using E-mail if your email system is configured. MS Outlook will open
with the file as attachment in the New Email Window. You can send mail this workbook
to anyone with valid email address.
Translate Worksheet in Excel 2010
Translate Worksheet
You can translate the text written in a different language, such as phrases or paragraphs,
individual words (by using the Mini Translator), or translate your whole file with MS Excel
2010.
Translation is available in the review tab of the ribbon in MS Excel 2010. You can quickly
translate cell into different language with this option.
Protect Worksheet
You may want to protect a worksheet for a variety of reasons. One reason is to prevent yourself
or others from accidentally deleting the formulas or other critical data. A common scenario is to
protect a worksheet, so that the data can be changed, but the formulas can’t be changed.
To protect a worksheet, choose Review » Changes group » Protect Sheet. Excel displays the
Protect Sheet dialog box. Note that providing a password is optional. If you enter a password,
that password will be required to unprotect the worksheet. You can select various options in
which the sheet should be protected. Suppose we checked Format Cells option then Excel will
not allow to format cells.
When somebody tries to format the cells, he or she will get the error as shown in the screenshot
below.
To unprotect a protected sheet, choose Review » Changes group » Unprotect Sheet. If the
sheet was protected with a password, you’re prompted to enter that password.
Protecting a Workbook
Excel provides three ways to protect a workbook.
Choose File » Info » Protect Workbook » Encrypt With Password. Excel displays the
Encrypt Document dialog box.
Type a password and click OK.
Type the password again and click OK.
Save the workbook.
To remove a password from a workbook, repeat the same procedure. In Step 2, however, delete
the existing password symbols.
To protect a worksheet’s structure and windows, follow the below mentioned steps.
Pivot tables are available under Insert tab » PivotTable dropdown » PivotTable.
After giving input fields to the pivot table, it generates the pivot table with the data as shown
below.
Simple Charts in Excel 2010
Charts
A chart is a visual representation of numeric values. Charts (also known as graphs) have been an
integral part of spreadsheets. Charts generated by early spreadsheet products were quite crude,
but thy have improved significantly over the years. Excel provides you with the tools to create a
wide variety of highly customizable charts. Displaying data in a well-conceived chart can make
your numbers more understandable. Because a chart presents a picture, charts are particularly
useful for summarizing a series of numbers and their interrelationships.
Types of Charts
There are various chart types available in MS Excel as shown in the below screen-shot.
Column − Column chart shows data changes over a period of time or illustrates
comparisons among items.
Bar − A bar chart illustrates comparisons among individual items.
Pie − A pie chart shows the size of items that make up a data series, proportional to the
sum of the items. It always shows only one data series and is useful when you want to
emphasize a significant element in the data.
Line − A line chart shows trends in data at equal intervals.
Area − An area chart emphasizes the magnitude of change over time.
X Y Scatter − An xy (scatter) chart shows the relationships among the numeric values in
several data series, or plots two groups of numbers as one series of xy coordinates.
Stock − This chart type is most often used for stock price data, but can also be used for
scientific data (for example, to indicate temperature changes).
Surface − A surface chart is useful when you want to find the optimum combinations
between two sets of data. As in a topographic map, colors and patterns indicate areas that
are in the same range of values.
Doughnut − Like a pie chart, a doughnut chart shows the relationship of parts to a whole;
however, it can contain more than one data series.
Bubble − Data that is arranged in columns on a worksheet, so that x values are listed in
the first column and corresponding y values and bubble size values are listed in adjacent
columns, can be plotted in a bubble chart.
Radar − A radar chart compares the aggregate values of a number of data series.
Creating Chart
To create charts for the data by below mentioned steps.
Select the data for which you want to create the chart.
Choose Insert Tab » Select the chart or click on the Chart group to see various chart
types.
Select the chart of your choice and click OK to generate the chart.
Editing Chart
You can edit the chart at any time after you have created it.
You can select the different data for chart input with Right click on chart » Select data.
Selecting new data will generate the chart as per the new data, as shown in the below
screen-shot.
You can change the X axis of the chart by giving different inputs to X-axis of chart.
You can change the Y axis of chart by giving different inputs to Y-axis of chart.
Pivot charts are available under Insert tab » PivotTable dropdown » PivotChart.