Adv - Excel - Handbook (7!6!17)
Adv - Excel - Handbook (7!6!17)
Handbook
How to use this Hand Book
Contents
1. Microsoft Excel – An Introduction......................................................................................................7
What is Microsoft Excel?....................................................................................................................7
Why Microsoft Excel..........................................................................................................................8
2. Getting Started with Excel 2010........................................................................................................8
What’s New in Excel 2010.................................................................................................................8
New Features of Excel 2010..............................................................................................................8
The Excel Worksheet (Spreadsheet) and Workbook.......................................................................12
Moving From Cell to Cell.................................................................................................................12
Selecting Cells or Range..................................................................................................................13
Propagating Cell Contents...............................................................................................................13
3. Modifying Spreadsheets.................................................................................................................14
Cut, Copy, and Paste Data...............................................................................................................14
Move/Copy Cells.............................................................................................................................14
Moving and Copying Cells...............................................................................................................14
4. Adding and Deleting Rows and Columns........................................................................................15
Column Width and Row Height......................................................................................................15
Set Column/Row Width/Height......................................................................................................15
Automatically Fit Column/Row Contents........................................................................................16
Set Column/Row Width/Height with Mouse..................................................................................16
Merge or Split Cells.........................................................................................................................17
Merge and Center Cells...................................................................................................................17
5. Formatting Spreadsheets................................................................................................................18
Wrap Text........................................................................................................................................18
Format Numbers.............................................................................................................................18
Cell Borders.....................................................................................................................................19
6. Locking Cells and Protecting a Worksheet......................................................................................20
Managing Workbooks and Worksheets..........................................................................................20
7. Viewing, Renaming, Inserting, and Deleting Worksheets...............................................................21
How to View a Worksheet..............................................................................................................21
How to Rename a Worksheet..........................................................................................................21
How to Insert a Worksheet..............................................................................................................21
How to Delete a Worksheet.............................................................................................................21
8. Moving Worksheets (Spreadsheets)................................................................................................21
How to Move a Worksheet in the Same Workbook.........................................................................22
How to Move a Worksheet to a NEW Workbook.............................................................................22
How to Move a Worksheet to a Different Workbook.......................................................................22
9. Copying Worksheets (Spreadsheets)...............................................................................................22
How to Copy a Worksheet in the Same Workbook.........................................................................22
How to Copy a Worksheet to a NEW Workbook.............................................................................22
How to Copy a Worksheet to Different Workbook..........................................................................23
10. Important Excel shortcuts.............................................................................................................23
Shortcut keys using Ctrl Keys..........................................................................................................24
Avoid common errors with formulas..............................................................................................24
11. Advanced Spreadsheet Modification............................................................................................25
Hide or Display Rows and Columns.................................................................................................25
12. Basic Math Calculations in Excel...................................................................................................27
Mathematical Order of Operations.................................................................................................28
Copying and Pasting Formulas........................................................................................................29
Examples of Excel Functions: The SUM Function............................................................................29
Examples of the SUM Function.......................................................................................................30
13. The AVERAGE Function.................................................................................................................30
What is the AVERAGE Function?.....................................................................................................30
Example of the AVERAGE Function.................................................................................................31
14. The MAX Function........................................................................................................................31
Examples of the MAX Function.......................................................................................................32
15. The MIN Function.........................................................................................................................32
Examples of the MIN Function........................................................................................................33
16. What is the COUNT Function?......................................................................................................34
Examples of the COUNT Function...................................................................................................34
17. The COUNTIF Function..................................................................................................................35
Other COUNTIF Function Operators...............................................................................................35
Advanced COUNTIF Spreadsheet Examples....................................................................................36
18. Logical Function............................................................................................................................39
If function........................................................................................................................................39
Description of the IF Function.........................................................................................................39
Examples of the IF Function.............................................................................................................40
Using AND and IF Functions Together..............................................................................................44
Using OR and IF Functions Together................................................................................................46
19. Conditional Formatting..................................................................................................................47
Highlight orders from Texas.............................................................................................................48
Highlight dates in the next 30 days..................................................................................................49
Highlight column differences..........................................................................................................49
20. Data Sorting..................................................................................................................................50
Sorting by Multiple Columns...........................................................................................................50
21. Filter..............................................................................................................................................51
What are filters?.............................................................................................................................51
Preparing to filter............................................................................................................................51
Advanced Filter...............................................................................................................................53
One condition in two or more columns..........................................................................................53
One condition in one column or another........................................................................................53
One of two sets of conditions for two columns..............................................................................53
To turn off the Advanced Filter.......................................................................................................54
22. Subtotal........................................................................................................................................55
Formatting and sorting your Excel data..........................................................................................55
Applying Subtotal to your table......................................................................................................56
23. References....................................................................................................................................59
24. Naming Cells and Ranges..............................................................................................................60
How do you define a named range?...............................................................................................60
25. Lookup function............................................................................................................................62
Introduction....................................................................................................................................62
Vlookup syntax................................................................................................................................62
Vlookup at work..............................................................................................................................63
Working with exact matches...........................................................................................................66
Converting formulas to values........................................................................................................67
26. Data Validation..............................................................................................................................68
What is Data Validation?.................................................................................................................68
27. Pivot Table....................................................................................................................................69
What is a Pivot Table in Excel?.........................................................................................................69
Create an Excel Pivot Table..............................................................................................................71
Group A Pivot Table in Excel............................................................................................................74
Example 2: Group a Pivot Table by Range........................................................................................75
Common Pivot Table Grouping Error...............................................................................................76
Pivot Table Grouping Error: Cannot Group That Selection...............................................................76
28. Using Excel Auditing Tools.............................................................................................................77
Viewing formulas.............................................................................................................................77
Tracing cell relationships.................................................................................................................77
Identifying precedents....................................................................................................................78
Tracing error values........................................................................................................................78
Fixing circular reference errors.......................................................................................................78
Using the Excel Formula Evaluator..................................................................................................79
Excel Error Values...........................................................................................................................79
29. Comments in Excel........................................................................................................................79
What a comment can do in Excel?..................................................................................................79
How to Add Comments to Cell in Excel...........................................................................................80
How to Show/Hide Comments to Cell in Excel................................................................................81
30. Working with Tables in Excel 2010................................................................................................82
Creating Tables In Excel 2010..........................................................................................................83
Properties of Excel Tables...............................................................................................................84
Deleting an Excel Table...................................................................................................................84
31. Excel 2010 Macros........................................................................................................................85
32. Previewing and Printing................................................................................................................85
Printing the Worksheet...................................................................................................................85
Printing of Worksheet in Multiple Pages.........................................................................................86
Repeating Rows and Columns for Multiple Pages...........................................................................86
Previewing Worksheet....................................................................................................................87
1. Microsoft Excel – An Introduction
Microsoft Excel is a spread sheet program that is used to record and analyse
numerical data.
Data in spread sheet is represented by cells, organized as rows and columns that
form a table and can be text or numeric. Alphabetical letters are assigned to
columns and numbers are assigned to rows. The point where a column and a row
meet is called a cell. The address of a cell is given by the letter representing the
column and the number representing a row.
Why Microsoft Excel
We all deal with numbers in one way or the other. Microsoft Excel comes in handy
when we want to record, analyze and store such numeric data and it becomes
easy to handle data.
With the introduction of Excel 2010, Microsoft is putting the focus on analysing
data, visualising trends, and sharing the results. Along with enhancements to
existing functionality made across the board, Excel 2010 comes with a few
new features too.
• 64-bit support – in fact, all of the Office 2010 apps offer 64-bit support
giving you greater processing power.
• Greater capacity – thanks to 64-bit support, the 2GB file size limit on
previous versions of Excel is blown out of the water with Excel 2010. You
can now work on files that have a staggering 4GB size.
The file you create and edit in MS Excel is called a workbook. You can create
an Excel workbook from a blank workbook or from an existing, customizable
Excel template. Each workbook file contains many worksheets, which are
comparable to individual pages in a Word document. A worksheet is also
referred to as a spreadsheet or a sheet, and you can use these terms
interchangeably. This book also uses the terms “workbook” and “file”
interchangeably.
Ribbon
Formula Bar
Spreadsheet Grid
Status Bar
2. Ribbon:
Ribbon is like an expanded menu. It depicts all the features of Excel in easy
to understand form. Since Excel has 1000s of features, they are grouped in to
several ribbons. The most important ribbons are – Home, Insert, Formulas,
and Page Layout & Data.
3. Formula Bar:
This is where any calculations or formulas you write will appear. You will
understand the relevance of it once you start building formulas.
4. Spreadsheet Grid:
This is where all your numbers, data, charts & drawings will go. Each Excel
file can contain several sheets. But the spreadsheet grid shows few rows &
columns of active spreadsheet. To see more rows or columns you can use the
scroll bars to the left or at bottom. If you want to access other sheets, just
click on the sheet name (or use the shortcut CTRL+Page Up or CTRL+Page
Down).
5. Status bar:
This tells us what is going on with Excel at any time. You can tell if Excel is
busy calculating a formula, creating a pivot report or recording a macro by
just looking at the status bar. The status bar also shows quick summaries of
selected cells (count, sum, average, minimum or maximum values). You can
change this by right clicking on it and choosing which summaries to show.
The Ribbon
Home Tab
This is the most used tab; it incorporates all text and cell formatting features
such as font and paragraph changes. The Home Tab also includes basic
spreadsheet formatting elements such as text wrap, merging cells and cell
style.
Insert Tab
This tab allows you to insert a variety of items into a document from
pictures, clip art, and headers and footers.
Formulas Tab
This tab has commands to use when creating Formulas. This tab
holds an immense function library which can assist when creating
any formula or function in your spreadsheet.
Data Tab
This tab allows you to modifying worksheets with large amounts of data
by sorting and filtering as well as analyzing and grouping data.
Review Tab
This tab allows you to correct spelling and grammar issues as well as
set up security protections. It also provides the track changes and
notes feature providing the ability to make notes and changes
someone’s document.
View Tab
This tab allows you to change the view of your document including
freezing or splitting panes, viewing gridlines and hide cells.
The Name Box is located in the area above Column A, and displays the cell
reference of the selected cell - the cell where the cursor is resting. In our
spreadsheet above, the selected cell is C2. Notice that the column letter
(C) and the row number (2) change color.
The beginning of the Formula Bar can be seen in the area above Column D
on our worksheet. The Formula Bar displays the contents of the selected
cell.
The arrow keys can be used to move left, right, up, and down from the
current cell. Press the Enter key to move to the cell immediately below the
current cell, and press the Tab key to move one cell to the right.
There are multiple ways to propagate or fill data from one cell to adjacent
cells. Let's begin with two popular keyboard shortcuts that allow us to fill
down, or fill to the right:
• To fill adjacent cells with the contents of the cell above, select the cell
with the data and the cells to be filled and press Ctrl + D (the Ctrl key
and the D key) to fill down.
• To fill adjacent cells with the contents of the cell to the left, select the
cell with the data and cells to be filled and press Ctrl + R (the Ctrl key
and the R key) to fill to the right.
To propagate in any direction, use the Fill Handle. Click in a cell with data
to be copied, hover the cursor over the cell's lower right corner until the
cursor changes to a thin plus sign (+) or a dark square, and drag up,
down, left, or right to fill the cells. Excel's Fill Handle is powerful; see our
Fill Handle tutorial.
3. Modifying Spreadsheets
You can use the Cut, Copy, and Paste commands in Microsoft Office
Excel to move or copy entire cells or their contents. NOTE: Excel
displays an animated moving border around cells that have been cut or
copied. To cancel a moving border, press ESC.
Move/Copy Cells
NOTES: Excel replaces existing data in the paste area when you cut and
paste cells to move them. When you copy cells, cell references are
automatically adjusted. If the selected copy or paste area includes
hidden cells, Excel also copies the hidden cells. You may need to
temporarily unhide cells that you don't want to include when you copy
information.
You can copy the contents of a cell as described above, but paste and fill
multiple adjacent cells. Just highlight the block of cells you want to paste
in: click and hold the left mouse button in one corner of the cell range. Still
holding the mouse button down, swipe the cursor over to the opposite
corner until just the cells you want filled are highlighted. Then right-click
and click Paste.
To remove the animated border around the original cell, press the ESC
key, or start typing in a new cell.
5. In the Column Width or Row Height box, type the value that you
want your column or row to be.
Automatically Fit Column/Row Contents
1. Click the Select All button
Merge Cells
To merge cells only, click the arrow next to
Merge and Center , and then click
Merge Across or Merge Cells.
Split Cells
1. Select the merged cell you want to split
. The cells will split
2. To split the merged cell, click Merge and Center and the contents of
the merged cell will appear in the upper-left cell of the range of split
cells.
2. Move your curser to the small black square in the lower-right corner
of a selected cell also known as the fill handle. Your pointer will
change to a small black cross.
3. Click and hold your mouse then drag the fill handle across the cells,
horizontally to the right or vertically down, that you want to fill.
4. The cells you want filled will have a gray looking border around them.
Once you fill all of the cells let go of your mouse and your cells will be
populated.
5. Formatting Spreadsheets
Wrap Text
You can display multiple lines of text inside a cell by wrapping the text.
Wrapping text in a cell does not affect other cells.
1. Click the cell in which you want to
wrap the text.
2. On the Home tab, in the Alignment
group, click Wrap Text.
3. The text in your cell will be wrapped.
NOTE: If the text is a long word, the characters won't wrap (the word
won't be split); instead, you can widen the column or decrease the font
size to see all the text. If all the text is not visible after you wrap the text,
you might have to adjust the height of the row. On the Home tab, in the
Cells group, click Format, and then under Cell Size click AutoFit Row
Format Numbers
In Excel, the format of a cell is separate from the data
that is stored in the cell. This display difference can
have a significant effect when the data is numeric. For
example, numbers in cells will default as rounded
numbers, date and time may not appear as
anticipated.
After you type numbers in a cell, you can change the format in which they
are displayed to ensure the numbers in your spreadsheet are displayed as
you intended.
1. Click the cell(s) that contains the numbers that you want to format.
2. On the Home tab, in the Number group, click the arrow next to the
Number Format box, and then click the format that you want.
If you are unable to format numbers in the detail
you would like that you can click on the More
Number Formats at the bottom of the Number
Format drop down list.
NOTE: Cell borders that you apply appear on printed pages. If you do not
use cell borders but want worksheet gridline borders for all cells to be
visible on printed pages, you can display the gridlines.
3. Click No Border .
NOTES: The Borders button displays the most recently used border
style. You can click the Borders button (not the arrow) to apply that style.
When the Excel program is first opened, the user is presented with a
workbook containing three empty worksheets (spreadsheets). The first
empty worksheet is displayed, and in the bottom left corner of Excel we
see three tabs - one for each worksheet - with the names Sheet1, Sheet2,
and Sheet3 as shown in the screenshot below. We also see arrows that are
used to scroll right and left to locate worksheet tabs when a workbook has
a large number of worksheets.
If you're only using one worksheet, you don't have to delete the two
unused worksheets - most folks don't bother. Excel workbooks are saved
with a file extension of xlsx in newer versions of Excel. Older versions
used the xls extension.
How many Excel worksheets can we have in one workbook? Microsoft says
the number is limited to your computer's memory! It's handy to group
together worksheets that are VERY closely related, and especially if you
are linking data from one worksheet to another. But hopping back and
forth using the worksheet tabs can become confusing.
To view a worksheet, click on its tab. If the workbook window is not wide
enough to display all of the tabs because of long worksheet names and/or
many worksheet tabs, use the arrows to the left of the tabs to navigate
left or right, or right-click on any of the arrows and select the desired
worksheet from the list that displays.
There are two ways to move a worksheet in the same workbook. The easy
way is to click and hold the left mouse button on a worksheet's tab and
slide the tab to its desired position. Watch the little black arrow that
appears just above. When it is to the right of left of the adjacent
worksheet, release the mouse and the worksheet will be moved.
If you dislike dragging with the mouse, here is another method. Right-click
on the tab of the source worksheet and click "Move or Copy..." In the Move
or Copy window, click the name of the worksheet that you want the sheet
to be inserted before, and click OK.
As a rather messy alternative, you can copy and paste the contents as
follows. In the source worksheet, right-click in the top left corner cell to
select all the workbooks cells and select Copy.
Then, open the other Excel workbook, find an empty worksheet, right-click
in the top left corner cell to select all cells, and click Paste. Save the
workbook.
Return to the first (source) worksheet and press the ESC key to remove
the animated border and then click in an empty cell to deselect all of the
cells.
10. Important Excel shortcuts
Up one box
Ctrl +
To the sheet in the right of the current sheet.
PageDown
Once you have created a basic spreadsheet there are numerous things
you can do to make working with you data easier. Some of these elements
are hiding, freezing and splitting rows. You can also sort and filter data,
these
features are quite helpful when working with a
large amount of data.
TIP: You can also right-click the selection of visible rows and columns
surrounding the hidden rows and columns, and then click Unhide
When you split panes, Excel creates either two or four separate
worksheet areas that you can scroll within, while rows or columns in
the non-scrolled area remain visible. This
worksheet has been split into four areas.
Notice that each area contains a separate
view of the same data. Splitting panes is
useful when you want to see different
parts of a large spreadsheet at the same
time.
NOTE: You cannot split panes and freeze
panes at the same time.
Freeze Panes
1. On the worksheet, select the row or column that you want to keep
visible when you scroll.
2. On the View tab, in the Window group, click the arrow below Freeze
Panes.
3. Then do one of the following:
• To lock one row only, click Freeze Top Row. To lock one
column only, click Freeze First Column.
Unfreeze panes
1. On the View tab, in the Window group, click the arrow below
Freeze Panes.
2. Click Unfreeze Panes.
Split Panes
1. To split panes, point to the split box at the top of the
vertical scroll bar or at the right end of the horizontal
scroll bar.
2. When the pointer changes to a split pointer or , drag the split box
down or to the left to the position that you want.
3. To remove the split, double-click any part of the split bar that divides
the panes.
1. All Excel formulas start with an equal (=) sign. This tells Excel that it
is a formula.
2. The answer to the formula displays in the cell into which the formula
is entered.
3. Cells are referenced in a formula by their column-row identifier, ie.
A1, B2.
4. The symbols for addition, subtraction, multiplication, and division
are: + - * /
5. You do not have to enter capital letters in your formula; Excel will
automatically capitalize them.
We can combine multiple operations in one formula. Make sure you use
parentheses where needed or you may not get the correct results (see
Order of Operations below). Here are some examples:
Note: Even though the Aunt Sally phrase may imply that multiplication is
done before division, and addition is done before subtraction, that is not
true. They are performed during the same step, or pass, through the
formula.
To copy the contents of a cell, click in the cell, right-click, and click Copy.
(Or use the keyboard shortcut Ctrl+C.) Then place the cursor in the
receiving cell, right-click, and click Paste. (Or use the keyboard shortcut
Ctrl+V.)
To remove the animated border on the original cell, press Enter, press the
Esc key, or click in another cell and begin typing.
When pasting the contents of a cell into multiple cells, the cell contents
need only be copied once. Use the arrows on the keyboard to move to the
other cells and paste.
The SUM function allows the user to easily add values from a range of
cells.
Description of the SUM Function
It's easy to add in Excel. To add the contents of cells G3 and G4, merely
type =G3+G4. But the SUM function in vital when adding lengthy columns
of cells.
The syntax for the SUM function is:
We often use the word "average" in our daily lives. But in the world of
mathematics, the average, also called the mean, of a group of numbers
has a strict definition and must be calculated.
When you find the average of a group of numbers, you calculate their sum
and then divide the sum by the number of numbers in the group. Microsoft
Excel calculates averages with the AVERAGE function.
Example #1:
Example #2:
Example #3:
Example #4:
=AVERAGE(C1:C2,C4) . . . This example mixes a cell range with a cell
reference. Since C4 contains the number 5, the answer is the same as
Example #3 above
The MAX function determines the largest value from the range specified in
the arguments..
Example 1:
Example 4:
The MIN function determines the smallest value from the range specified
in the arguments.
Look at the last two examples in the worksheet below that show the MIN
function:
Example 1:
Example 2:
Example 3:
COUNT(value1, [value2], . . . )
Where:
► value1 is required and is an item, cell reference, or range of
cells, and
► [value2] . . . are optional and are 1 to 255 additional items, cell
references, or ranges.
Example 1:
Example 2:
Example 3:
=COUNT(A1:A5,B1:B5) - This Excel function counts all cells containing
numeric values in cells A1 to A5, and cells B1 to B5. Excel returns a value
of 5 (cells A2, A3, A5, B2, and B4)
This Excel function allows you to display the number of cells in a single
range whose values meets specific criteria. The default action or operator
for the COUNTIF function is equals and is not included when writing
the function. The syntax of the COUNTIF function is:
Example #1:
Example #2:
Example #3:
The image below shows our Excel spreadsheet containing seven advanced
examples of the COUNTIF function.
Read the explanation of each example, and then study the worksheet. We
repeat the worksheet image several times for your convenience.
Example 2: Count the cells in a range that are < the contents of a
particular cell
Referencing a cell name with an operator is one of the few instances that
concatenation must be specified.
Excel will count all cells other than cells containing text: empty cells, cells
with numbers, and cells with error messages. Excel will not count,
however, cells that have been cleared of data by pressing the space bar.
Clearing cells this way places a blank space character in the cell. Use the
delete key to clear the contents of a cell instead.
Example 4: Count the number of cells in a range that are not
empty
When counting the number of cells in the lower half of the alphabet, the
criterion should read "<N" (and not "<=M"). Always use < on the first
letter after the range's upper limit.
And when counting the number of cells in the upper half of the alphabet,
code ">=N" (not ">M"). Always use >= on the lowest letter of the range.
Example 6: Count the cells in a range that are greater than the
average of the cells in that range
=COUNTIF(A1:A7,"Smith")/(ROWS(A1:A7)-COUNTIF(A1:A7"<>*")) - This
example illustrates how to ask Excel to determine what percent as
particular text value is compared to all of the cells in the range with text
values. It can be modified with wildcards; or empty cells could also be
eliminated from the dividend before calculating the percentage. Do
remember that Excel does not consider a cell empty if the space is
pressed when the cell is active. Use the delete key to clear a cell of all
data.
We begin with a COUNTIF function that counts the cells containing Smith
(2). We then divide that number by the number of rows, as determined by
the ROWS function (7), less the number of cells without text values (1).
If function
One of the most useful functions in Excel is the IF function. The IF function
allows you to test a condition and have one value returned if the condition
is TRUE, and another value returned if the condition is FALSE.
The IF function allows the user to ask Excel to test certain criteria and to
perform different actions depending on if the criteria is met or not.
Because data analysis can be complex, often the logical-test, value-if-true,
and/or value-if-false portions of our IF function must, in themselves,
contain an IF function. When IF functions are used inside of IF functions,
we call this nested IFs.
Excel allows both the "value-if-true" parameter and the "value-if-false"
parameter of the IF statement to contain IF statements. These are
called Nested IFs.
Here is an example of an IF statement for the value-if-false parameter:
=IF(B9>=18,"Adult",IF(B9>12,"Teen","Child"))
This function evaluates the value in cell B9. If the value in B9 is ≥18, the
logical test is true, so Excel displays Adult and stops reading the function.
If the value is not ≥18, Excel executes the value-if-false argument. This
argument contains an IF statement testing to see if the value in B9 is >12.
If true, Excel returns a value of Teen. If not true, Excel displays Child in the
cell.
Review the worksheet below. Each team plays two rounds and their scores
are added. Scores are always integers; there are no "half" points for
example. If their total score is 12 or greater (> 11), they get a Gold medal.
If the total score is 8, 9, 10, or 11 (>7 but < 12), they are awarded a Silver
Medal. If 7 or less, they receive no prize.
The formula for Team A which we have entered into cell E2 can be seen in
the worksheet's formula bar. We also show the formula below:
=IF((C2+D2)>11,"Gold",IF((C2+D2)>7,"Silver","No Prize"))
Let's look at how Excel processes Team A's formula. First, it encounters an
IF statement asking if the sum of cells C2 and D2 is greater than 11. The
sum is 10, so Excel processes the value-if-false portion of the IF
statement which begins with another IF function.
In this second IF function, Excel now compares the sum of the contents of
C2 and D2, to see if the sum is greater than 7. Since the sum is 10, the
test is true, so Excel does what the value-if-true portion of the IF
statement instructs, which is to display Silver in the cell and quit
processing the formula.
=IF((C2+D2)>=12,"Gold",IF((C2+D2)>=8,"Silver","No Prize"))
The spreadsheet below shows the first 6 students of a class. The cells in
Column C contain a formula with nested IF functions for Excel to
determine the letter grade based upon the numeric grade that the
instructor entered in column B.
The formula with nested IFs for the third student on the list, Mr. Cole, can
be seen in the worksheet's formula bar, and is shown below. We've color
coded the parentheses to make it easier to see the nested IF statements.
=IF(B4>89,"A",IF(B4>79,"B",IF(B4>69,"C",IF(B4>59,"D","F"))))
Now we'll take a step-by-step look at how Excel handles the nested IFs in
this long formula. If we had examined the formula for the second student
in the list who got a score of 95, Excel would process the first IF
statement, display an A, and quit! But fortunately for us, this student's
score is quite low. So let's begin.
STEP 1
Excel begins by testing if B4 is > 89. If the test is true, Excel will display
an A and quit processing. But the test is not true as the value in cell B4 is
55, so Excel proceeds to the value-if-false argument - which is another IF
statement which we have underlined in purple.
STEP 2
Now Excel looks to see if the score in cell B4 is > 79. If so, it would display
a B. But 55 in not %gt; 79, so Excel proceeds to the value-if-false
argument. This is another IF statement and is underlined in purple.
STEP 3
This IF statement asks Excel to see if the value in cell B4 is > 69. It is not,
so Excel does not display a C, but proceeds to the value-if-false
argument which, of course, another IF statement (underlined in purple).
STEP 4
We are finally at the end of the formula. The last IF statement asks Excel
to test to see if the value in cell B4 is > 59. If it is, Excel will display a D. If
not, Excel will display an F. Since the value in cell B4 is 55, Excel displays
an F, and is finished processing the formula.
By using AND function you can specify more than one condition.
If all the conditions are true then AND function will return true and IF
function will return the value which you have specified for true.
And, if any of the conditions is false then AND function will return false
and IF function will return the value which you have specified for false.
Now let's look at our worksheet examples. Each month sales reps make a
bonus of 500 or 250. To make a 500 bonus, they must sell 11 or more
units AND sell more than 800 cost. So our IF function tests to see if BOTH
of these conditions are met via an AND function. If so, Excel returns a
value of 500; otherwise, a value of 250.
We've entered our functions in Column D, and the function for raju is:
=IF(AND(B2>10,C2>800),500,250)
Then we copied and pasted the function into column D for the other 3
persons. Notice that since we're dealing with whole numbers, we specified
B2>10 instead of B2>=11 because it's easier to write. The function for
Ian can also be seen in the formula bar of our spreadsheet below
Raju's function: =IF(AND(B2>10,C2>800),500,250)
For Raju, the value in B2 (11) is > 10 and the cost in cell C2 (810) is >
800, so the value of the AND function is true. Therefore, the result of the
IF function will be the value-if-true: 500. (We formatted column D to
display currency.)
The value for Kiran in cell B3 (9) is NOT > 10. Even though the next
condition of the AND function is met, the result of the AND function is still
false. So the value produced by the IF function is 250 - the value-if-false.
The value for Sam in B4 (14) is > 10 and the cost in cell C4 (860) is > 800,
so the AND function is true, and Excel displays 500 in cell D4.
The value for Uma in cell B5 (14) is > 10. However, the value in cell C5
(770) is NOT > 800, so the AND function is false. Therefore, the result of
the IF function is 250 (value-if-false).
Wrap-up
IF(logical_test,value_if_true,value_if_false)
If any of the conditions is true OR will return true and IF will return the
specific value.
And, if none of the conditions is true OR with return false and IF will return
another specific value.
In this way, we can test more than one value with IF function.
The teams are listed in column A, the number of systems sold in column
B, and the total price of the sales in column C. Column D contains the
functions and the function for Team 1 is shown in the formula bar and
follows: =IF(OR(B2>=4,C2>=9000),"Yes","No").
19. Conditional Formatting
With conditional formatting, you can do things like highlight dates in the
next 30 days, flag data entry problems, highlight rows that contain top
customers, show duplicates, and more.
Excel ships with a large number of "presets" that make it easy to create
new rules without formulas. However, you can also create rules with your
own custom formulas. By using your own formula, you take over the
condition that triggers a rule, and can apply exactly the logic you need.
Formulas give you maximum power and flexibility.
For example, using the "Equal to" preset, it's easy to highlight cells equal
to "apple".
But what if you want to highlight cells equal to "apple" or "kiwi" or "lime"?
Sure, you can create a rule for each value, but that's a lot of trouble.
Instead, you can simply use one rule based on a formula with the OR
function:
Here's the result of the rule applied to the range B4:F8 in this
spreadsheet:
=OR(B4="apple",B4="kiwi",B4="lime")
To highlight rows that represent orders from Texas (abbreviated TX), use a formula
that locks the reference to column F:
=$F5="TX"
=AND(B4>NOW(),B4<=(NOW()+30))
With a current date of August 18, 2016, the conditional formatting highlights dates
as follows:
Highlight column differences
Given two columns that contain similar information, you can use
conditional formatting to spot subtle differences. The formula used to
trigger the formatting below is:
=$B4<>$C4
In excel, we can re arrange data on values, cell color, font color, or cell
icon. When we sort on values it may be in the order A to Z, Z to A (Text),
Smallest to Largest, largest to Smallest (Numbers), oldest to newest,
newest to oldest (Date) or custom list.
Sort
21. Filter
Filtering is a quick and easy way to find and work with a subset of data in
an Excel range. Filters enable you to quickly find all the entries for a
particular item, e.g. an employee name or a product, in a large worksheet.
Filters allow you to select just the data you need, and to hide any data
that is not relevant to your search. For example you might want to find the
students with the highest grade, or the records for a specific department.
You can also create your own filters, such as figures within a specific range
or above a particular amount.
Unlike sorting, filtering does not rearrange your data, it simply hides the
rows you don’t want. This will allow you to then edit, format, chart and
print your filtered data as you wish.
Preparing to filter
Ensure the data in your worksheet is neat and tidy and you will find
filtering easy. Use the following guidelines to prepare your data:
The AutoFilter command on the Home Tab is usually the quickest way to filter a list.
However, if you want to filter a list using multiple sets of criteria or criteria containing
formulas use the Advanced Filter command on the Data Tab.
The Advanced Filter enables you to filter data by using a criteria range to display only the
rows that meet all the criteria you specify.
To find data that meets one condition in two or more columns, enter all
the criteria in the same row of the criteria range.
To find rows that meet one of two sets of conditions, where each set
includes conditions for more than one column, type the criteria in
separate rows.
Deptt Name Location Basic
Finance >=15000
Procurement >30000
As an example, we will extract from the list all Employees whose Basic Pay
is greater than 15,000 from the Finance Department and also employees
from the Procurement Department with a Basic Pay greater than 30,000
Insert several blank rows at the very top of your worksheet. (Your
column headings should now be on row 10 of the worksheet)
Select the column headings in Row 10 and copy. Paste the headings into
Row 1 of the worksheet.
Click OK. This will return you to the worksheet, and display the records
that match the criteria.(Three records meet the criteria)
Emp Code Name Deptt Name Location DOJ Designation Basic
E101 Rahul Jain Finance Delhi 21-Jan-01 Manager 56699
E164 Sahiba Tandon Finance Mumbai 30-Nov-08 Executive 43381
E172 Vimi Gupta Procurement Mumbai 22-Oct-06 Executive 42028
To turn off the Advanced Filter
From the Data tab in the Sort & Filter Group click on Clear.
22. Subtotal
Subtotals are an ideal way to get totals of several columns of data that
need to be broken down in several different categories. It, like the title
suggests, will subtotal each category for you making it a quick and easy
way to get your Excel data summarized.
As always make sure your data is set up in a format that makes sense -
like a database, headers across the top with all your information in the
columns below the headers, see my sample below:
Make sure that the category that we need to subtotal by is sorted. In this
case we will be using the Department Name, and all my Departments are
sorted. If you don't sort the data prior to running the Subtotals function,
Excel will run your subtotals but it does a subtotal at each change in your
chosen column. So if you don't sort the data, you may have multiple
subtotals for the same item and have a messy situation to clean up. This
will make more sense as we go through the steps and run our subtotals.
Applying Subtotal to your table
First go to the Data tab on the ribbon and select the Subtotal:
After selecting Subtotal, this window pops up on top of your data file:
Go to the At each change in: area.
This is where we tell Excel how we
want our data sorted. I want this data set to be sorted by Department
Name, that way when we are all done, I can see the Location,
Designation by Department. You must think this through because if you
choose a category that is moot, then your Subtotal will end up
being meaningless. For example if I choose Location as my category,
then at each change in location I will have a subtotal for the columns I
choose and this will be meaningless to me for what I am trying to do.
Moving on, I am choosing Department Name, and in this case I want the
sum, but there are other options as well that you might need for your data
analysis, (Sum, Count, Average, Max, Minimum, Product, Count Numbers,
Standard Deviation, Standard Deviation Population, Variance, Variance
Population). Again, I am choosing SUM as my function:
If you notice Excel has added an outline to the data on the left hand side.
There are 3 levels, and this view is the expanded, or level 3 view. If we
select the 2 in the upper left hand corner by the red arrow... Then our data
will look like this:
If I hit the 1 in the upper left hand corner, by the 2 we just hit, our data
looks like this:
This view gives us the Grand Total of all of our data ready to use for easy
copying to a summary elsewhere.
When you open the Subtotal window, the Summary below data button is
selected for you. This is the default selection and puts a Subtotal line at
the bottom of each change in your selected variable. By unselecting this
button, it puts the subtotal at the top, and your Grand Total at the top of
the page, see picture below:
Also, if you uncheck the Replace current subtotals checkbox, you can add
a few subtotals into your table and get some interesting results.
If you are done with your Subtotals, just open the Subtotals window and
click on the Remove All button, and your data will go back to the previous
format. The Subtotals will be removed and it is as though you have not
touched your data, sometimes a good way to start over if you have made
an error or if you realize you need to add or remove columns from your
Subtotals.
23. References
• Relative
• Absolute
• Mixed
An absolute reference is one that does not change. If you refer to a cell in
a certain row and column and then copy that reference elsewhere, it will
still refer to exactly the same cell or range.
An absolute address is defined with the use of the “$” symbol. This can be
typed in at the time of creating the formula, or by editing the cell
afterwards.
The “$” sign can be hand typed or inserted by pressing the keyboard
shortcut F4. As you press F4 the cell address will cycle between the four
variations of an address – for example A4 would cycle between:
A4 A$4
$A4 $A$4
If you have a range of cells that hold a specific type of data e.g. Sales, No.
of students etc. then you can give that range a meaningful name. Later if
you want to refer to the range you can do that by specifying its name
instead of using its cell reference.
In the example below we have two columns, Month (column A) and Sales
Value (column B).
If we want to sum the total sales for the 12 months then we will use this
formula:
=sum(B2:B13)
Alternatively we can give the range B2:B13 a name like this “SalesValue”
and then use the sum formula as follows:
=sum(SalesValue)
2. In the Formulas tab, Defined Names group click Define Name. The New
Name window will open.
3. In the Name field enter the name you want to give to your range.
4. In the Scope combo box, if you want this name to be known to other
sheets in the workbook, select Workbook. If the name will only be used
in the current worksheet, then select the name of the worksheet.
5. In the Refers To field make sure that the required range is specified.
6. Click OK when you are done. Your defined name is now ready to be used
in any formula.
NOTES:
• Range names must be one word – if you require 2 words, join them with
an underscore as in the example below.
• The names can be a combination of numbers and letters, but must not
start with a number.
• As a default, names are workbook level i.e. the name you create is
available throughout the whole workbook.
• If the worksheet has been named with a name that includes spaces,
the worksheet name will have to be enclosed in single quotation marks.
There are multiple lookup functions in Microsoft Excel and these include
vlookup, the very similar hlookup, and lookup. You use vlookup to find data
in a table by searching for a value in the first column of the table and then
returning the corresponding value in another column.
Vlookup syntax
To use vlookup to return a value from a table you will provide Excel with
the value to look for in the first column of the table, the table range and
the column which contains the value to return.
When you provide the table range, Excel looks for the value you specify in
the first column of that range - typically the first column will be the row
headings for your data. When describing the column you do so as the
number of the column in the table range you've provided. Column 1 is the
first column and 2 is the one immediately to its right and so on. If you
specify a column number that is out of the range of your table - such as
less than 1 or greater than the number of columns in your table range
you'll get an error.
There is one optional True/False argument for this function which lets you
force an exact match or an approximate one - the default is the latter. If
you specify an exact match (False) then the table need not be sorted. If
you do not include this argument or if you specify an approximate match
(True) you must sort the table so that the values in the first column are in
ascending order - if not - the function may not return the correct result.
Where you omit this argument or use True, if there is not an exact match,
then Excel uses the nearest value, in the first column, to the value that
you are searching for that is smaller than that value.
So, for example, in this table where we are showing pounds weight, a
handling and a shipping charge, we can use vlookup to search for a weight
and determine the handling and shipping charge for a parcel of that
weight. Of course most parcels won't weigh exact amounts so we will use
the True value (or omit it) so the formula will return a result even if an
exact match is not found. This also means we need to sort the table so the
data in the first column is in ascending order.
Vlookup at work
If we try to find a match for a 1.5 pounds weight parcel there is no entry
for 1.5 pounds. In this case, the lookup function will return the entry for
the largest value that is less than the value that we're looking up. So if
we're looking up 1.5 and there is no match for it, Excel will look for the
number that is nearest 1.51 but less than it - in other words 1.
To look up a value in cell B11 that is the pounds weight of a parcel (in this
case 1.5lbs) and to return the handling value, you would write this
formula:
=VLOOKUP(B11,D2:F7,2)
The formula returns the handling cost of $4 - the value in column 2 of the
table opposite the next nearest but smaller value to the one we are
looking up.
If you want to be able to copy the formula down a column, then you will
need to alter it so that the table reference is absolute, so it would look like
this:
=VLOOKUP(B11,$D$2:$F$7,2)
Now you can use the table name when you are creating the formula. Here
the named range appears in place of the range itself:
=VLOOKUP(B12,shipping_and_handling,2)
We can adapt the formula for the handling to deal with the shipping. In
this situation because the shipping is in column 3 of the table, the only
change will be to the last value in the formula:
=VLOOKUP(B12,shipping_and_handling,3)
Hlookup works similarly, it takes the same values, in other words the value
to look up, the range of the table, but in this case you'll be providing a row
number rather than a column number. The rows will be numbered 1, 2, 3
and so on with row 1 being the first row in the table.
In other circumstances you may want an exact match and there may be
no room for the next nearest values. The example below for rug sizes and
costs is exactly that. If you don't have an order for a green weave rug then
there is no next lowest value. In this situation, we want an exact match or
an error message.
For this, we'll look up the value in column A and return a value from
column 2 or 3 depending on whether the order is for a medium or a large
rug. In this circumstance we'll need to use an If function to determine
which column number to use. The lookup function will read as follows:
=VLOOKUP(A7,A2:C4,IF(B7="M",2,3),FALSE)
In this case, we're looking up the value in column A and looking for a
match in column B or C depending on whether it's a medium or a large
rug. If there is not an exact match, in other words if the rug description
being ordered is not a direct match for one of the rug descriptions in
column A then a #N/A error will be returned. If the rug size isn't one of the
two options it will default to the large size because of the way the IF
function is written.
If you have a range of formulas that will always produce the same result
(that is, dead formulas), you may want to convert them to values. If, say,
range A1:A20 contains formulas that have calculated results that will
never change — or that you don’t want to change. For example, if you use
the RANDBETWEEN function to create a set of random numbers and you
don’t want Excel to recalculate those random numbers each time you
press Enter, you can convert the formulas to values.
1. Select A1:A20.
2. Choose Home ➪ Clipboard ➪ Copy (or press Ctrl+C).
3. Choose Home ➪ Clipboard ➪ Paste Values (V).
4. Press Esc to cancel Copy mode.
Usage notes
VLOOKUP searches for a value in the first column of a table. At the match
row, it retrieves a value from the specified column.
Use VLOOKUP when lookup values are located in the first column of a table
with information organized vertically. Use HLOOKUP when lookup values
are located in the first row of a table, and each "record" appears in a new
column.
In Excel, the data validation feature helps you control what can be entered
in your worksheet. For example, you can:
You can also create data validation lists to enter the value M or L as the
rug size using the data from cells B1:C1 as the source data for the list.
Now when the user goes to enter a rug style they can select an item from
the dropdown list. This ensures that they will always spell the name
correctly so that they will always choose an item that is in the list. It also
means that if they change their selection and choose a different rug, the
vlookup function will recalculate automatically and produce the desired
cost.
A Pivot Table gathers all the data in an Excel spreadsheet (or range of a
spreadsheet) and presents a summary of this data in a table. This table
allows you to see, at a glance, information such as:
1. The number of items of each type;
2. The sum of a data column, broken down into data types;
3. The average of a data column, broken down into data types.
This is best explained by way of an example...
The spreadsheet below lists every sale that was made by a company
during the first quarter of 2016. The spreadsheet records the sale date,
the invoice reference, the invoice total, the name of the sales
representative, and the sales region.
A B C D E
1 Date Invoice Ref Amount Sales Rep. Region
2 01/01/2016 2016-0001 $819 Barnes North
3 01/01/2016 2016-0002 $456 Brown South
4 01/01/2016 2016-0003 $538 Jones South
5 01/01/2016 2016-0004 $1,009 Barnes North
6 01/02/2016 2016-0005 $486 Jones South
7 01/02/2016 2016-0006 $948 Smith North
8 01/02/2016 2016-0007 $740 Barnes North
9 01/03/2016 2016-0008 $543 Smith North
10 01/03/2016 2016-0009 $820 Brown South
. . . . .
. . . . .
11 . . . . .
An Excel pivot table can summarise the data
in the above spreadsheet for easy analysis.
For example, the pivot table on
the right shows the total sum of all sales,
for each of the four sales people.
A more complex pivot table is shown below. In this pivot table, the sales
totals are broken down by month for each sales person. The sales totals
for each area are also shown.
A further feature of Excel pivot tables is the ability to quickly extract the
data from any part of the pivot table.
For example, if you wanted to see a list of Brown's sales during January
2016, you would simply use the mouse to double click on the cell showing
this value (the value $28,741 in the above example Pivot Table).
Excel then creates the new worksheet (shown below), listing Brown's sales
during January 2016.
For this pivot table example we use the spreadsheet below, which lists a
company's sales figures during the first quarter of 2016. The spreadsheet
records the sale date, the invoice reference, the invoice total, the name of
the sales representative, and the sales region.
A B C D E
1 Date Invoice Ref Amount Sales Rep. Region
2 01/01/2016 2016-0001 $819 Barnes North
3 01/01/2016 2016-0002 $456 Brown South
4 01/01/2016 2016-0003 $538 Jones South
5 01/01/2016 2016-0004 $1,009 Barnes North
6 01/02/2016 2016-0005 $486 Jones South
7 01/02/2016 2016-0006 $948 Smith North
8 01/02/2016 2016-0007 $740 Barnes North
9 01/03/2016 2016-0008 $543 Smith North
10 01/03/2016 2016-0009 $820 Brown South
. . . . .
. . . . .
11 . . . . .
We will first create a very simple pivot table, which shows the total sales
for each of the four sales reps in the above spreadsheet. To do this:
1. Select any cell within the data range or select the entire data range
to be used in your Pivot Table.
Note: If you select a single cell in the data range, Excel will automatically
identify, and select the whole data range for your Pivot Table.
2. Click on the Pivot Table
button, which is located
within the 'Tables' grouping,
on the 'Insert' tab of the
Excel ribbon.
3. You will be presented with the 'Create PivotTable' dialog box (shown
on the right).
Make sure that the selected range refers to the range of cells that you
want to use for your Pivot Table.
There is also an option asking where you want the Pivot Table to be
placed.
This allows you to place your pivot table in a specified worksheet.
If you are not sure, select the option 'New worksheet'.
Click OK.
4. You will now be presented with an empty Pivot Table, and the 'Pivot
Table Field List' task pane, which
contains several data fields. Note that
these are the column headers from your
data spreadsheet.
Within the 'Pivot Table Field List' task pane:
5. Your Pivot Table will be populated with the total sales for each sales
rep, as shown on the right.
Pivot Table before Formatting: Pivot Table after Currency
When analysing data in an Excel Pivot Table, it is often useful to group the
Pivot Table data into categories.
For example, instead of displaying total sales values for each day, you
might prefer to group the days into months and display the total sales
values for each month.
Excel can automatically group numeric values (including dates & times) in
pivot tables. This is shown in the following examples.
Right click on the left column of the pivot table (containing the dates)
and select the option Group...;
You will be presented with the 'Grouping' dialog box for dates;
This will group the figures by month, as shown in the pivot table below.
Imagine you have created the pivot table on the left, which groups 150
children according to age. The ages range from 5 to 16 years.
If you want to group the ages into the age ranges 5-8 years, 9-12 years
and 13-16 years, you can this as follows:
• Right click on left column of the
pivot table (containing the ages)
and select the option Group...;
• You will be presented with the
'Grouping' dialog box for numbers;
• Right click on left column of the pivot table (containing the grouped
values);
• Select the option Ungroup...
Once you have done this, right click on the pivot table and select Refresh.
This will update the values in the pivot table, and you should now be able
to group the selected row or column values.
Excel includes a number of tools that can help you track down formula
errors. This section describes the auditing tools built in to Excel.
Viewing formulas
Tip
You can also press Ctrl+` (the accent grave key, typically located above
the
Tab key) to toggle between Formula view and Normal view. N
For example, consider this simple formula entered into cell A4:
=SUM(A1:A3)
Cell A4 has three precedent cells (A1, A2, and A3), which are all direct
precedents. Cells A1, A2, and A3 each have a dependent cell (cell A4), and
they’re all direct dependents.
Identifying cell precedents for a formula cell often sheds light on why the
formula isn’t working correctly. Conversely, knowing which formula cells
depend on a particular cell is also helpful. For example, if you’re about to
delete a formula, you may want to check whether it has any dependents.
Identifying precedents
You can identify cells used by a formula in the active cell in a number of
ways:
• Press F2. The cells that are used directly by the formula are outlined
in color, and the color corresponds to the cell reference in the
formula. This technique is limited to identifying cells on the same
sheet as the formula.
• Display the Go to Special dialog box. (Choose Home ➪ Editing ➪ Find
& Select ➪ Go to Special.) Select the Precedents option and then
select either Direct Only (for direct precedents only) or All Levels (for
direct and indirect precedents). Click OK, and Excel selects the
precedent cells for the formula. This technique is limited to
identifying cells on the same sheet as the formula.
• Press Ctrl+[. This selects all direct precedent cells on the active
sheet.
• Press Ctrl+Shift+{. This selects all precedent cells (direct and
indirect) on the active sheet.
• Choose Formulas ➪ Formula Auditing ➪ Trace Precedents. Excel will
draw arrows to indicate the cell’s precedents. Click this button
multiple times to see additional levels of precedents. Choose
Formulas ➪ Formula Auditing ➪ Remove Arrows to hide the arrows.
Tracing error values
If a formula displays an error value, Excel can help you identify the cell
that is causing that error value. An error in one cell is often the result of an
error in a precedent cell. Activate a cell that contains an error value and
then choose Formulas ➪ Formula Auditing ➪ Error Checking ➪ Trace Error.
Excel draws arrows to indicate the error source.
Formula Evaluator lets you see the various parts of a nested formula
evaluated in the order that the formula is calculated. To use Formula
Evaluator, select the cell that contains the formula and then choose
Formula ➪ Formula Auditing ➪ Evaluate Formula to display the Evaluate
Formula dialog box
Excel Error Values
Text and picture are two different kinds of content in comment. The way to
add them is also different. So now let’s see how to create the two kinds of
comments for cell in Excel (2010).
Text comment:
Step 1: Select the cell that you want to add comment.
Step 2: Add comment to cell with three ways.
1. Go to the Review tab, and click on New Comment icon in Comments
group.
2. Right click the cell and select Insert Comment option from the context
menu.
3. Press Shift + F2 to easily add comment to cell.
Now you can edit the comment, including changing default user name
and entering content in the comment textbox. Or later, you can select the
comment and click Edit Comment button to begin to change the
comment.
If there are lots of comments having been created in Excel, you have
several choices to display one or all of the comments in Excel.
With Previous and Next button in Review tab and Comments session,
you can view the comments one by one in the Excel.
Until all the comments are showed, it would give you a warning message
about that you have seen all of the comments.
If you decided to
show all the
comments
instantly in
Excel, Show
Comments
optio n in Excel
tab would help
you to do
that easily.
Navigate
to Show All
Comment locati
on in Excel, and click it. All comments would display for cells and
you can see all of them.
Option 3: Show or Hide Comment with command “Show/Hide
Comment”
Surely, if you want to edit comment for cell, you can select the cell and
click “Edit Comment“. Or if you want to delete comment, just choose the
cell has the comment, and click “Delete“.
A table is a range of cells that hold data, with each row corresponding to a
single occurrence of an entity. When you create a table, you can manage
and analyze the data in that table independently of data outside the table.
You can format the table, filter the table columns and also publish a table
to a server that is running Windows SharePoint Services 3.0 or Windows
SharePoint Services “4″. Usually there is an initial row of text headings
that describe the columns of data. For example, you might have rows and
rows of employee data with the following column headings:
• First Name
• Last Name
• Age
• Salary
Each row in the table would hold the above details for a particular
employee. But as Excel 2010 handles tabular data perfectly well by
default, why would you want to put your data into a table? Well, tables
allow Excel to respond more appropriately to your data if it is held in a a
table. For example, if you create a chart based on the data in a table, the
chart will expand as you add more rows to that table.
It’s quite easy to create a table in Excel 2010; you simply make a cell
active that is in the range of cells you want to convert into a table and
then click Insert > Tables > Table. If your data has headers, make sure to
check the My table has headers box in the create table window, and then
those headers will be used. The good thing is that you don’t need to select
the entire range of cells: Excel can identify the limits of the data and also
identify the headings.
If you later decide that you’d prefer your data in its original form (i.e. not
in a table), you can convert it back to a range of cells. Click anywhere in
the table and then on the Table Tools tab, click Design > Tools > Convert
To Range. Once the data is converted back to a range, the table features
are no longer available.
Note that the formatting that was applied to the table is still present.
If you want to delete the table and all its data, select the table and press
the delete key.
Excel macros are useful if you find yourself repeating the same actions
time after time. When you create a macro, you record all the actions and
commands you perform to complete a task. Then instead of repeating
those actions you can simply run the macro. Doing this saves you time
and reduces the probability of making mistakes.
Using the macro recorder is by far the easiest method, though you can
create some quite complex macros with the macro editor. The problem
with the macro editor is that it requires some technical expertise
(otherwise known as programming!) to use it effectively.
Size
Size
of the page. There is various size of page for e.g. we normal use Letter
size page for printing or A4 size so, to fix the size of the page this
command will use.
Breaks
This option allows us to
break our long worksheet
in multiple sheets. This is
inserting page break.
Breaks
Print Area
This Print Area allows us to print same row and column to print in multiple
page spreadsheets.
Print Titles
Previewing Worksheet
In excel, we just have worksheet not the pages so cannot make out how
the print will come and how much data will get printed on a page. So,
before giving print in excel we must see the preview of the sheet so that
before giving it to print we can do last min changes. Here, excel has gave
us PrintPreview options so that we can see how much data will print on a
page. File Print Print Preview