0% found this document useful (0 votes)
22 views64 pages

Lec 4

The document provides a comprehensive guide on using Microsoft Excel, covering essential topics such as workbook and worksheet manipulation, cell data management, and creating charts. It includes instructions on opening, creating, saving, and protecting workbooks, as well as manipulating worksheets and cell data types. Additionally, it discusses formatting options, data validation, and the use of formulas and functions within Excel.

Uploaded by

arulmozhin635
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views64 pages

Lec 4

The document provides a comprehensive guide on using Microsoft Excel, covering essential topics such as workbook and worksheet manipulation, cell data management, and creating charts. It includes instructions on opening, creating, saving, and protecting workbooks, as well as manipulating worksheets and cell data types. Additionally, it discusses formatting options, data validation, and the use of formulas and functions within Excel.

Uploaded by

arulmozhin635
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

COM 311 Agro- Informatics (1+1)

Lecture 4:

 Electronic spreadsheet – Microsoft Excel


 Worksheet manipulation: insert, delete, move, copy and hide worksheet
 Cell manipulation: copy, edit and format cell data –
 Charts - Create Bar and Pie charts
 PIVOT table.

1. Getting Started with Excel

Microsoft Excel combines the column-row layout of traditional paper spread sheets with
powerful tools for data calculation, analysis, and formatting.

Opening Excel

1. To open Excel 2010, from the Start menu, select All Programs » Microsoft Office »
Microsoft Office Excel 2010

Terms used in Excel

Workbook
 A collection of worksheets contained within a single file.
Worksheet
 single sheet within the workbook.
 A worksheet can contain data, charts, or both.
 Instead of compiling all of your information into one worksheet, you can
create several worksheets within the one workbook file.
Column
 A vertical group of cells within a worksheet.
Row
 A horizontal group of cells within a worksheet.
Cell
 The intersection of a column and row. Information is stored in cells.

Cell Address
 Consisting of the column and row IDs, of a specific cell.
 The current cell location is displayed in the upper left corner of the worksheet.

Cell Ranges :
 A range in Excel is a collection of two or more cells.

1
2. Creating a Workbook

 An Excel file is called a workbook. The extension of the file is .xlsx


 By default, workbooks open with three blank worksheets, although you can add or
delete worksheets at any time.
 The advantage of having multiple worksheets, is that a variety of data can be
compiled, analyzed, and integrated in a single file.
 Worksheets can contain data, charts, or both.

Create a new workbook

1. In the top left corner of the Excel window, click FILE menu.
From the File menu, select New… Blank workbook
The New Workbook dialog box appears.

Choose Blank workbook

1. A new workbook appears.

A workbook is another word for your Excel file.

Excel automatically creates a blank workbook when you open it.

2
 First ,we will learn how to open a workbook,
 how to create a workbook from a template and
 how to view multiple workbooks at the same time

Open a Workbook

To open an Excel workbook you have created in the past, execute the following steps.

1. Click on the green File tab. The File tab in Excel 2010 replaces the Office Button (or File
Menu) in previous versions of Excel.

What you see next is called the backstage view and it contains all the workbook related
commands. Recent shows you a list of your recently used workbooks.

2. You can quickly open a workbook from here or you can click Open to open another
workbook that is not on the list.

3
Create a Workbook from a template

Instead of creating a workbook from scratch, you can create a workbook from a template.
There are many free templates available, waiting to be used!

1. Click on the green File tab and click on New.

2. To choose a template from one of the sample templates, click on Sample templates.

2. Next, choose Personal Monthly Budget and click on Create.

Result:

4
View Multiple Workbooks

If you want to view multiple workbooks at the same time, execute the following steps.

1. First, open two or more workbooks.

2. Next, click on View and then click on Arrange All.

2. Select the desired arrange setting. For example, choose Horizontal.

5
Result.

Note: to switch back to normal view, click on Arrange All again and check 'Windows of
active workbook'.

Save and Protect a Workbook and worksheet

Save a Workbook

Choose file save option

- specify the path of the file and type the name of the workbook
- select the save as type as 97-2003 format or excel workbook option

6
- click save

Password Protect a Workbook

You can password protect a workbook when you want to be sure that only people who
know the password can open your Excel file.

1. Open the workbook you want to protect.

2. Click on the green File tab and click on Save As.

3. Click on the Tools button and select General Options.

4. Enter a password and click on OK.

7
5. Reenter the password and click on OK.

6. Click on Save.

Your workbook is protected now.

Password Protect a Worksheet

When you share a file with other users, you may want to protect a worksheet to help
prevent it from being changed.

1. Right click on the worksheet tab of the worksheet you want to protect.

8
2. Click on Protect Sheet...

3. Enter a password.

4. Check the actions you allow the users of your worksheet to perform.

5. Click on OK.

6. Confirm the password and click on OK.

Your worksheet is protected now.

Note: to unprotect a worksheet, right click on the worksheet tab again and click on
Unprotect Sheet..

9
3. Worksheet Manipulation

3.1 Select a Worksheet

When you open Excel, Excel automatically selects Sheet1 for you. The name of the
worksheet appears on its sheet tab at the bottom of the document window.

1. To select one of the other two worksheets, simply click on the sheet tab of Sheet2 or
Sheet3.

3.2 Rename a Worksheet

By default, the worksheets are named Sheet1, Sheet2 and Sheet3. To give a worksheet a
more specific name, execute the following steps.

1. Right click on the sheet tab of Sheet1.

2. Choose Rename.

10
3. For example, type Sales 2010.

Result:

3.3 Insert a Worksheet

You can insert as many worksheets as you want. To quickly insert a new worksheet, click
the Insert Worksheet tab at the bottom of the document window.

Result:

3.4 Move a Worksheet

To move a worksheet, click on the sheet tab of the worksheet you want to move and drag it
into the new position.

1. For example, click on the sheet tab of Sheet4 and drag it before Sheet2.

11
Result:

3.5 Delete a Worksheet

To delete a worksheet, right click on a sheet tab and choose Delete.

1. For example, delete Sheet4, Sheet2 and Sheet3.

Result:

3.6 Copy a Worksheet

Imagine, you have got the sales for 2010 ready and want to create the exact same sheet for
2011, but with different data. You can recreate the worksheet, but this is time-consuming.
It's a lot easier to copy the entire worksheet and only change the numbers.

1. Right click on the sheet tab of Sales 2010.

2. Choose Move or Copy.

12
The 'Move or Copy' dialog box appears.

3. Select (move to end) and check Create a copy.

4. Click on OK.

Result:

3.7 Hide and Unhide worksheet

1. Right click on the selected sheet to hide


2. Choose hide option

13
Unhide

1. Select any sheet


2. Right click and choose unhide
3. Select the sheet to unhide

4. Cell Manipulation

4.1 Data types

 Data type refers to the characteristics of the information stored in a worksheet cell.

For the purposes of this introductory, the main types of data in Excel:

 Text
 Numbers

14
Text data

 It is most often words that are used for worksheet headings, names, and for
identifying columns of data.
 Text data can contain letters numbers, and specialty characters such as ! or &. By
default, text data is left aligned in a cell.

Numbers

 It can be used in calculations. By default, numbers are right aligned in a cell.


 In addition to actual numbers - such as 10, 20, 30, 40 - Excel also stores dates and
times as numbers.

Problems can arise if numbers get stored as text data. This can prevent them from being
used in calculations.

Formulas:

 A formula is a mathematical equation such as adding or subtracting two numbers.


 Formulas, which includes Excel's functions are usually considered to be Numbers
but they are sometimes identified as a separate type of data.

4.2 Copy/Paste a Cell data

To copy a range, execute the following steps.

1. Select the range, right click and then click on Copy.

15
2. Select the cell where you want the first cell of the range to appear, right click, and click on
Paste under the 'Paste Options:' group.

Note: the other Paste Options are not important at this stage, but you can have a go with it
if you want.

4.3 Insert Row, Column

To insert a row between the values 20 and 40 below, execute the following steps.

1. Right click on the row 3 header.

2. Click on Insert.

16
Result:

The rows below the new row are shifted down. In a similar way, you can insert a column.

4.4 Edit cell data

Change Complete Cell Contents

Click on the cell, type over the existing entry, and press the ENTER key on the keyboard.

Change Part of the Cell Contents

Method 1

 Click on the cell to make it the active cell.


 Click on the data in the formula bar.
 Delete the part to be changed and type in the new data.
 Press the ENTER key.

17
Method 2

 Double click on the cell.


 Edit the part of the cell you want to change.
 Press the ENTER key.

Moving around the spreadsheet

 Home key: moves the active cell highlight to column A without changing rows.

 Ctrl + Home keys: moves the active cell highlight to cell A1.

 Ctrl + End keys: moves the active cell highlight to the last cell of the spreadsheet
containing data.

 Ctrl + Down Arrow keys: moves the active cell highlight to the last row of the
spreadsheet without changing columns.

 Ctrl + Up Arrow keys: moves the active cell highlight to the first row of the
spreadsheet without changing columns.

 Ctrl + Page Down keys: moves the active cell highlight to the next sheet of the
spreadsheet.

 Ctrl + Page Up keys: moves the active cell highlight to the previous sheet of the
spreadsheet.

4.5 Format cell data

1. Modify Fonts
Modifying fonts in Excel will allow you to emphasize titles and headings. To modify a font:

 Select the cell or cells that you would like the font applied
 On the Font group on the Home tab, choose the font type, size, bold, italics,
underline, or color

18
Comma Formatting in Excel

2. Format Cells Dialog Box


In Excel, you can also apply specific formatting to a cell. To apply formatting to a cell or
group of cells:

 Select the cell or cells that will have the formatting


 Click the Dialog Box arrow on the Alignment group of the Home tab

19
There are several tabs on this dialog box that allow you to modify properties of the cell or
cells.

Number : Allows for the display of different number types and decimal places
Alignment : Allows for the horizontal and vertical alignment of text, wrap text,
shrink text, merge cells and the direction of the text
Font : Allows for control of font, font style, size, color, and additional
features
Border : Border styles and colors
Fill : Cell fill colors and styles

Add Borders and Colors to Cells

 Borders and colors can be added to cells manually or through the use of
styles. To add borders manually:
 Click the Borders drop down menu on the Font group of the Home tab
 Choose the appropriate border

To apply colors manually:

 Click the Fill drop down menu on the Font group of the Home tab
 Choose the appropriate color

20
To apply borders and colors using styles:

 Click Cell Styles on the Home tab


 Choose a style or click New Cell Style

4. Change Column Width and Row Height


To change the width of a column or the height of a row:

 Click the Format button on the Cells group of the Home tab
 Manually adjust the height and width by clicking Row Height or Column Width
 To use AutoFit click AutoFit Row Height or AutoFit Column Width

21
5. Hide or Unhide Rows or Columns
To hide or unhide rows or columns:

 Select the row or column you wish to hide or unhide


 Click the Format button on the Cells group of the Home tab
 Click Hide & Unhide

22
6. Merge Cells

 To merge cells select the cells you want to merge and click the Merge & Center
button on the Alignment group of the Home tab. The four choices for merging
cells are:

Merge & Center:

 Combines the cells and centers the contents in the new, larger cell
Merge Across: Combines the cells across columns without centering data
Merge Cells: Combines the cells in a range without centering
Unmerge Cells: Splits the cell that has been merged

7. Align Cell Contents

 To align cell contents, click the cell or cells you want to align and click on the
options within the Alignment group on the Home tab. There are several options
for alignment of cell contents:

Top Align : Aligns text to the top of the cell


Middle Align : Aligns text between the top and bottom of the cell
Bottom Align : Aligns text to the bottom of the cell
Align Text Left : Aligns text to the left of the cell
Center : Centers the text from left to right in the cell
Align Text Righ: Aligns text to the right of the cell
Decrease Indent : Decreases the indent between the left border and the text
Increase Indent : Increase the indent between the left border and the text
Orientation : Rotate the text diagonally or vertically

23
Date Formatting in Excel

8. Formatting for date

1. Select cells B12.


2. Choose Format > Cells from the menu to open the Format Cells dialog box.

With the Format Cells dialog box open:

1. Click on the Number Tab (circled in red in the image above).


2. Select Date in the Category Window.
3. Select *3/14/2001 in the Type Window.

When finished, Click OK at the bottom of the Format Cells dialog box.

9. Percentage Format

To apply a percentage format to a number, execute the following steps.

1. Enter the value 0.8 into cell B2.

2. On the Home tab, in the Number group, click the Percentage symbol.

24
Result:

Select the cell and click format option.

8. Change the value

10. Data validation

You can use data validation to make sure that users enter certain values into a cell. Input
messages can be used to tell the user what to enter. If users ignore this message and enter a
value that is not valid, you can show them an error alert.

Data Validation Example


In this example, we restrict users to enter a whole number between 0 and 10.

25
1. Open the Excel file.

Create Data Validation Rule


To create the data validation rule, execute the following steps.
1. Select cell C2.
2. On the Data tab, click Data Validation.

The Data Validation dialog box appears. On the Settings tab:


3. In the Allow list, click Whole number.
4. In the Data list, click between.
5. Enter the Minimum and Maximum values.

Input Message
 Input messages appear when the user selects the cell (in this example, selects cell
C2) and tell the user what to enter.
On the Input Message tab:
1. Check 'Show input message when cell is selected'.

26
2. Type a title.
3. Type an Input message.

Result when you select cell C2:

Error Alert
 If users ignore the input message and enter a number that is not valid, you can
show them an error alert.
 On the Error Alert tab:
1. Check 'Show input message when cell is selected'.
2. Type a Title
3. Enter an error message.

27
Result when you enter a number that is not valid.

You can create all sorts of other data validation rules for cells.

 For example, you can restrict data entry


o To a date within a date range (select Date in the Allow list),
o To a decimal number within a certain range (select Decimal in the Allow list),
o To text of specific length (select Text length in the Allow list), etc.

5. Printing in Excel

 To print the entire worksheet or just a selection and how to change some important
print settings, such as fitting a sheet on one page, printing gridlines and headings,
adjusting page margins, and centering a range of cells on a page automatically.

Print a Worksheet
 To print a worksheet in Excel 2010 (or Excel 2007), execute the following steps.
1. On the File tab, click Print.
2. To preview the other pages that will be printed, click 'Next Page' or 'Previous
Page' at the bottom of the window.

28
3. To print the worksheet, click the big Print button.

Print Selection
Instead of printing the entire worksheet, you can also only print the current selection.
1. First, select the range of cells you want to print.
2. Next, under Settings, select Print Selection.

29
3. To print the selection, click the big Print button.

Fit Sheet on One Page


 If you want to fit more data on one page, you can fit the sheet on one page. To
achieve this, execute the following steps.
1. Under Settings, select 'Fit Sheet on One Page' from the Scaling drop-down
list.

30
Print Gridlines & Headings

 Printing gridlines (the horizontal and vertical lines you see on your worksheet) and
row/column headers (1, 2, 3 etc and A, B, C etc) makes your copy easier to read. To
print gridlines and headings, execute the following steps,

1. On the Page Layout tab, check Print under Gridlines and check Print under Headings.

Page Margins
To adjust the page margins, execute the following steps.
1. First, click on the 'Show Margins' icon at the bottom right window.
2. Next, you can drag the lines to change the page margins.

31
Center on Page
To center a range of cells on a page automatically, execute the following steps.
1. Under Settings, select 'Custom Margins' from the Margins drop-down list.

32
2. Next, check horizontally and vertically.

6. Save Excel File as PDF

One new feature that comes with Excel 2010, is the ability to save files in PDF format. The
PDF (Portable Document Format) allows others to view your Excel spreadsheets without
having Excel installed on their computer.

You can download the accompanied Excel file if you like. Let's get started!

To save files in PDF format in Excel 2007, you can download the 2007 Microsoft Office Add-
in. To save an Excel file in PDF Format in Excel 2010, execute the following steps.

1. Open the Excel file.


2. On the File tab, click on Save As.

3. Set the Save as type to PDF.

33
4. Select 'Minimum size' if you want to keep the file size as small as possible.

5. Click on Options.

5. Here you can select which sheets you want to publish. By default, all pages of the Active
sheet will be published.

6. Click OK and then Click on Save.

Excel automatically opens the PDF file for you (unless you deselected the 'Open file after
publishing' checkbox earlier on).

34
7. Charting

Charts are graphic depictions of data in your worksheet. Excel can build a chart
automatically based on existing data, after which the chart can be moved, resized, and
deleted without affecting your worksheet data. Charts do not appear within a specific cell,
but rather appear over other cells. When creating a chart, there are some basic rules to keep
in mind to make the process easier. This document gives an overview of the necessary
elements of a chart.

Excel 2007 offers several types of charts, each with its own unique functions. Be sure to
choose the type of chart that best serves your purposes. The following table provides a
quick summary of all the chart types available to you, as well as their functions:

Chart Example Description


Type Image

Column Shows data changes among many data series over a


period of time

Line Indicates the relationship of one variable to another


over time in equal intervals

Pie Proportionally compares the items in one data series


NOTE: For more information, refer to Using Pie Charts.

Bar Shows data changes between many data series

Area Displays the highest value or total value of items in a


data series over time

XY Displays the relationship of several data series on a


(Scatter) coordinate plane, marked by points

Stock Illustrates fluctuation or stability in certain data series,


not necessarily only for stock prices

Surface Displays combinations of two sets of data, each with a


common data series, in a three-dimensional coordinate
plane

35
Doughnut Proportionally compares the items in two or more data
series

Bubble Displays the relationship of two data series on a


coordinate plane, marked by points, and a third data
series that influences the size of the point

Radar Compares multiple values of multiple data series

In Excel, charts are visual representations of data on a spreadsheet. There are many types of
charts available, so you should find one that is right for your project.

1. Create the data to be charted


For information about entering data in Excel.
2. Select the data to be charted
NOTE: To select data from different areas of your worksheet or to select non-
contiguous cells, hold down [Ctrl] and select the cells.
3. From the Insert command tab, in the Charts group, click the type of chart you prefer
A pull-down list appears.

4. Click the specific chart you want


The chart appears on the spreadsheet.
The Design, Layout, and Format command tabs appear on the Ribbon.
5. OPTIONAL: If the information is represented on the incorrect axes, in the Design

command tab, from the Data group, click Switch Row/Column

About Charting Elements

A chart contains several elements, which are illustrated in this graphic.

36
The following list describes the various elements in this chart.

Title

Identifies the chart, and frequently includes a date or time period.


EXAMPLE: Average Monthly Temperatures

Category (X) Axis

 Identifies the data being charted on the horizontal x-axis; values in this section will
be used as labels along the x-axis.
 EXAMPLE: Cities (Minneapolis, Albuquerque, Tampa)

Category Axis Title

 Identifies the title of the category (x) axis.

Value (Y) Axis

 Identifies the data being charted on the vertical y-axis; values in this section will
determine where points fall in relation to the y-axis.
 NOTE: The x-axis can also be used as a value axis.
EXAMPLE: Average temperatures (0–90)

Value Axis Title

 Identifies the title of the value (y) axis.

37
Legend

 Identifies the information being charted. This is especially important when you have
more than one type of information charted.
 Using the example of the above chart, the legend identifies which information
relates to each month.

Ticks

 Ticks, indicating measurement increments, appear on both the y-axis and x-axis and
can help improve the readability of a chart. Both y-axis and x-axis ticks are optional.

Origin

 The origin is the point where the x-axis and y-axis meet. The origin is generally at
zero (0) but can be modified.

8. Function

Math and trigonometry functions

1. ABS
Returns the absolute value of a number. The absolute value of a number is the
number without its sign.
Syntax
ABS(number)

Formula Description (Result)


=ABS(2) Absolute value of 2 (2)
=ABS(-2) Absolute value of -2 (2)
=ABS(A2) Absolute value of -4 (4)
2. COS
Returns the cosine of the given angle.
Syntax
COS(number)
Formula Description (Result)
=COS(1.047) Cosine of 1.047 radians (0.500171)

3. EXP
 Returns e raised to the power of number. The constant e equals 2.71828182845904,
the base of the natural logarithm.
Syntax
EXP(number)

38
Formula Description (Result)
=EXP(1) Approximate value of e (2.718282)
=EXP(2) Base of the natural logarithm e raised to the power of 2 (7.389056)

4. FACT
 Returns the factorial of a number. The factorial of a number is equal to 1*2*3*...*
number.
Syntax
FACT(number)
Formula Description (Result)
=FACT(5) Factorial of 5, or 1*2*3*4*5 (120)
=FACT(1.9) Factorial of the integer of 1.9 (1)

5. LOG
 Returns the logarithm of a number to the base you specify.
Syntax
LOG(number, [base])

Formula Description (Result)


=LOG(10) Logarithm of 10 (1)
=LOG(8, 2) Logarithm of 8 with base 2 (3)

6.Mod
 Returns the remainder after number is divided by divisor. The result has the same
sign as divisor.
Syntax
MOD(number, divisor)

Formula Description (Result)


=MOD(3, 2) Remainder of 3/2 (1)

7.PI
 Returns the number 3.14159265358979, the mathematical constant pi, accurate to 15
digits.
Syntax
PI()
Formula Description (Result)
=PI() Pi (3.14159265358979)

39
=PI()/2 Pi/2 (1.570796327)

8. Power
 Returns the result of a number raised to a power.
Syntax
POWER(number, power)
Formula Description (Result)
=POWER(5,2) 5 squared (25)

9. Product
 The PRODUCT function multiplies all the numbers given as arguments and returns
the product.
Syntax
PRODUCT(number1, [number2], ...)

Data
5
15
30
Formula Description Result
=PRODUCT(A2:A4) Multiplies the numbers in cells A2 2250
through A4.

10.RAND
 Returns an evenly distributed random real number greater than or equal to 0 and
less than 1. A new random real number is returned every time the worksheet is
calculated.
Syntax
RAND()

Formula Description (Result)


=RAND() A random number between 0 and 1 (varies)
=RAND()*100 A random number greater than or equal to 0 but less than 100 (varies)
11. SIGN
 Determines the sign of a number. Returns 1 if the number is positive, zero (0) if the
number is 0, and -1 if the number is negative.
Syntax
SIGN(number)
Formula Description (Result)

40
=SIGN(10) Sign of a positive number (1)
=SIGN(4-4) Sign of zero (0)
=SIGN(-0.00001) Sign of a negative number (-1)

12. SQRT
 Returns a positive square root.
Syntax
SQRT(number)
A B
Data
-16
Formula Description (Result)
=SQRT(16) Square root of 16 (4)
=SQRT(A2) Square root of the number above. Because the number is
negative, an error is returned (#NUM!)

13. SUM
 The SUM function adds all the numbers that you specify as arguments. Each
argument can be a range, a cell reference, an array, a constant, a formula, or the
result from another function.
Syntax
SUM(number1,[number2],...])

A B C
Data
-5
15
30
'5
TRUE
Formula Description Result
=SUM(3, 2) Adds 3 and 2. 5

41
MATRIX Operation

14. MMULT
 Returns the matrix product of two arrays. The result is an array with the same
number of rows as array1 and the same number of columns as array2.
Syntax
MMULT(array1, array2)
A B
1 Array 1 Array 1
2 1 3
3 7 2
4 Array 2 Array 2
5 2 0
6 0 2
7 Formula Formula
8 =MMULT(A2:B3,A5:B6)

15. MINVERSE
 Returns the inverse matrix for the matrix stored in an array.
Syntax
MINVERSE(array)
A B
Data Data
4 -1
2 0
Formula Formula
=MINVERSE(A2:B3)

2. Statistical function

1. Average
 Returns the average (arithmetic mean) of the arguments
Syntax
AVERAGE(number1, [number2], ...)
Formula Description Result
=AVERAGE(A2:A6) Average of the numbers in cells A2 through A6. 11

42
2. Count
 The COUNT function counts the number of cells that contain numbers, and counts
numbers within the list of arguments..
Syntax
COUNT(value1, [value2], ...)
A B C
Data
Sales
12/8/2008

19
22.24
TRUE
#DIV/0!
Formula Description Result
=COUNT(A2:A8) Counts the number of cells 3
that contain numbers in cells
A2 through A8.
3. Countif
 The COUNTIF function counts the number of cells within a range that meet a single
criterion that you specify.
Syntax
COUNTIF(range, criteria)

 range Required. One or more cells to count, including numbers or names,


arrays, or references that contain numbers. Blank and text values are ignored.
 criteria Required. A number, expression, cell reference, or text string that
defines which cells will be counted. For example, criteria can be expressed as
32, ">32", B4, "apples", or "32".
A B C
Data Data
apples 32
oranges 54
peaches 75
apples 86
Formula Description Result

43
=COUNTIF(A2:A5,"apples") Number of cells with 2
apples in cells A2
through A5.
4. Large
 Returns the k-th largest value in a data set.
Syntax
LARGE(array, k)
The LARGE function syntax has the following arguments:
 Array Required. The array or range of data for which you want to determine the
k-th largest value.
 K Required. The position (from the largest) in the array or cell range of data to
return.
A B
Data Data
3 4
5 2
3 4
5 6
4 7
Formula Description (Result)
=LARGE(A2:B6,3) 3rd largest number in the
numbers above (5)
5. MAX
 Returns the largest value in a set of values.
Syntax
MAX(number1, [number2], ...)
Formula Description (Result)
=MAX(A2:A6) Largest of the numbers

6. Min
 Returns the smallest number in a set of values.
Syntax
MIN(number1, [number2], ...)
Formula Description (Result)
=MIN(A2:A6) Smallest of the numbers

44
7. Median
 Returns the median of the given numbers. The median is the number in the
middle of a set of numbers. All the numbers should be arranged in ascending
order.
Syntax
MEDIAN(number1, [number2], ...)
The MEDIAN function syntax has the following arguments:
 Number1, number2, ... Number1 is required, subsequent numbers are optional.
1 to 255 numbers for which you want the median.
Formula Description (Result)
=MEDIAN(A2:A6) Median of the first 5 numbers in the list above (3)

8. Small
 Returns the k-th smallest value in a data set. Use this function to return values with
a particular relative standing in a data set.
Syntax
SMALL(array, k)
The SMALL function syntax has the following arguments:
 Array Required. An array or range of numerical data for which you want to
determine the k-th smallest value.
 K Required. The position (from the smallest) in the array or range of data to
return.
Formula Description (Result)
=SMALL(A2:A10,4) 4th smallest number

3. Date and Time Function

1. Date

 The DATE function returns the sequential serial number that represents a
particular date. For example, the formula
=DATE(year,month,day)
Formula Description Result
=DATE(2008,1,1) Serial date for the date derived by using cells A2, B2, 1/1/2008
and C2 as the arguments for the DATE function, and
using the 1900 date system.

2. Now

 Returns the serial number of the current date and time


Syntax

45
NOW()

3.Day,Month,Year
 Returns the day, month and year corresponding to a date.
Syntax
DAY(serial_number)
MONTH(serial_number)
YEAR(serial_number)
A B
Date
15-Apr-2008
Formula Description (Result)
=DAY(A2) 15
=month(A2) 4
=year(A2) 2008
4. Today
 Returns the serial number of the current date.
example, if you know that someone was born in 1963, you might use the following formula
to find that person's age as of this year's birthday:
=YEAR(TODAY())-1963
Syntax
TODAY()

A B
Formula Description
=TODAY() Returns the current date.
=TODAY()+5 Returns the current date plus 5
days. For example, if the current
date is 1/1/2008, this formula
returns 1/6/2008.
=DATEVALUE("1/1/2030")- Returns the number of days
TODAY() between the current date and
1/1/2030.

5. Time
 Returns the decimal number for a particular time.
Syntax : TIME(hour, minute, second)

Example
=time(12,5,3) returns 12:05 P

46
9. PIVOT Table
 A PivotTable is a powerful tool to calculate, summarize, and analyze data that lets
you see comparisons, patterns, and trends in your data.
 The user have a lot of data, it can sometimes be difficult to analyze all of the
information in the worksheet.
 PivotTables can help make the worksheets more manageable by summarizing data
and allowing you to manipulate it in different ways.

Input Data

Question
What is the amount sold by each salesperson?

 Answering this question could be time consuming and difficult—each salesperson


appears on multiple rows, and we would need to total all of their different orders
individually.
 A PivotTable can instantly calculate and summarize the data in a way that's both
easy to read and manipulate. When we're done, the PivotTable will look something
like this:

47
 Once you've created a PivotTable, you can use it to answer different questions by
rearranging—or pivoting—the data. ‘
 For example, if we wanted to answer the question:

What is the total amount sold in each month? we could modify our PivotTable to look
like this:


To create a PivotTable:

 Select the table or cells (including column headers) containing the data you want to
use.

 From the Insert tab, click the PivotTable command.

48
1. The Create PivotTable dialog box will appear. Choose your settings, then
click OK. In our example, we'll use Table1 as our source data and place the
PivotTable on a new worksheet.

2. A blank PivotTable and Field List will appear on a new worksheet.

3. Once you create a PivotTable, you'll need to decide which fields to add.

49
Each field is simply a column header from the source data. In
the PivotTable Field List, check the box for each field you want to add.
In our example, we want to know the total amount sold by each salesperson,
so we'll check the Salesperson and Order Amount fields.

4. The selected fields will be added to one of the four areas below the Field List.
In our example, the Salesperson field has been added to the Rows area, while
the Order Amount has been added to the Values area. Alternatively, you can
click, hold, and drag a field to the desired area.

50
5. The PivotTable will calculate and summarize the selected fields. In our
example, the PivotTable shows the amount sold by each salesperson.

 Just like with normal spreadsheet data, you can sort the data in a PivotTable using
the Sort & Filter command in the Home tab.
 You can also apply any type of number formatting you want. For example, you may
want to change the Number Format to Currency. However, be aware that some
types of formatting may disappear when you modify the PivotTable.

 If you change any of the data in your source worksheet, the PivotTable will not
update automatically.
 To manually update it, select the PivotTable and then go to Analyze > Refresh.

51
Pivoting data

 One of the best things about PivotTables is that they can quickly pivot—or
reorganize—data, allowing you to look at your worksheet data in different ways.

 Pivoting data can help you answer different questions and even experiment with the
data to discover new trends and patterns.

In our example, we used the PivotTable to answer the question:

What is the total amount sold by each salesperson? But now we'd like to answer a
new question:

What is the total amount sold in each month? We can do this by simply changing
the field in the Rows area.

To change the row:

1. Click, hold, and drag any existing fields out of the Rows area. The field will
disappear.

2. Drag a new field from the Field List into the Rows area. In our example, we'll
use the Month field.

52
3. The PivotTable will adjust—or pivot—to show the new data. In our example,
it now shows the total order amount for each month.

53
To add columns:

So far, our PivotTable has only shown one column of data at a time. In order to
show multiple columns, you'll need to add a field to the Columns area.

1. Drag a field from the Field List into the Columns area. In our example, we'll
use the Region field.

2. The PivotTable will include multiple columns. In our example, there is now a
column for each region.

54
Filters
 Sometimes you may want focus on just a certain section of your data.

 Filters can be used to narrow down the data in your PivotTable, allowing you to
view only the information you need.

To add a filter:

In our example, we'll filter out certain salespeople to determine how they affect the total
sales.

1. Drag a field from the Field List to the Filters area. In this example, we'll use
the Salesperson field.

2. The filter will appear above the PivotTable. Click the drop-down arrow, then
check the box next to Select Multiple Items.

55
3. Uncheck the box for any items you don't want to include in the PivotTable. In
our example, we'll uncheck the boxes for a few different salespeople, then
click OK.

4. The PivotTable will adjust to reflect the changes.

56
Slicers

 Slicers make filtering data in PivotTables even easier.

 Slicers are basically just filters, but they're easier and faster to use, allowing you to
instantly pivot your data.

 If you frequently filter your PivotTables, you may want to consider using slicers
instead of filters.

To add a slicer:

1. Select any cell in the PivotTable.


2. From the Analyze tab, click the Insert Slicer command.

3. A dialog box will appear. Select the desired field. In our example, we'll
select Salesperson, then click OK.

57
4. The slicer will appear next to the PivotTable. Each selected item will be
highlighted in blue. In the example below, the slicer contains a list of all
salespeople, and six of them are currently selected.

5. Just like filters, only selected items are used in the PivotTable. When
you select or deselect items, the PivotTable will instantly reflect the changes.

58
Try selecting different items to see how they affect the PivotTable. Press and
hold the Ctrl key on your keyboard to select multiple items from a slicer.

You can also click the Filter icon in the top-right corner to select all items from the slicer at
once.

PivotCharts

 PivotCharts are like regular charts, except they display data from a PivotTable.

 Just like regular charts, you'll be able to select a chart type, layout, and style that will
best represent the data.

To create a PivotChart:

In this example, our PivotTable is showing each person's total sales per month. We'll use a
PivotChart so we can see the information more clearly.

1. Select any cell in your PivotTable.

59
2. From the Insert tab, click the PivotChart command.

3. The Insert Chart dialog box will appear. Select the desired chart
type and layout, then click OK.

4. The PivotChart will appear.

60
Try using slicers or filters to change the data that is displayed. The PivotChart will
automatically adjust to show the new data.

61
Exercise!
1. Open an existing Excel workbook. If you want, you can use our practice
workbook.
2. Create a PivotTable using the data in the workbook.
3. Experiment by placing different fields in the rows and columns areas.
4. Filter the report with a slicer.
5. Create a PivotChart.
6. If you are using the example, use the PivotTable to answer the question, Which
salesperson sold the lowest amount in January? Hint: First decide
which fields you need in order to answer the question.

62
Questions
1. You can use the formula pallette to

A) format cells containing numbers


B) create and edit formula containing functions
C) enter assumptions data
D) copy a range of cells

2. Which tool you will use to join some cells and place the content at the middle of
joined cell?

A) From Format Cells dialog box click on Merge Cells check box
B) From Format Cells dialog box select the Centered alignment
C) From Format Cells dialog box choose Merge and Center check box
D) Click on Merge and Center tool on formatting toolbar

3. The Name box on to the left of formula bar

A) shows the name of workbook currently working on


B) shows the name of worksheet currently working on
C) shows the name of cell or range currently working on
D) None of above

4. Each excel file is a workbook that contains different sheets. Which of the following
can not be a sheet in workbook?

A) work sheet
B) chart sheet
C) module sheet
D) data sheet
5. Which of the following is not the correct method of editing the cell content?
A) Press the Alt key
B) Press the F2 key
C) Click the formula bar
D) Double click the cell

6. What happens when you press Ctrl + X after selecting some cells in Excel?

A) The cell content of selected cells disappear from cell and stored in clipboard
B) The cells selected are marked for cutting
C) The selected cells are deleted and the cells are shifted left
D) The selected cells are deleted and cells are shifted up

7. You can auto fit the width of column by

A) double clicking on the column name on column header

63
B) Double click on the cell pointer in worksheet
C) Double clicking on column right border on column header
D) Double clicking on the column left border of column header

8. Long text can be broken down into many lines within a cell. You can do this through

A) Wrap Text in Format >> Cells


B) Justify in Edit >> Cells
C) Text Wraping in Format >> Cells, Layout tab
D) All of above

9. Which of the following you can paste selectively using Paste Special command?

A) Validation
B) Formats
C) Formulas
D) All of above

10. Which of the following is invalid regarding the Protection in Excel?

A) Protect Sheet
B) Protect Workbook
C) Protect Workspace
D) All of above are valid
11. Number of rows and column in excel is ____________ and __________
12. Default number of worksheet in workbook is ____________
13. The extension of excel file is ______________
14. Graphical representation of object in excel is ___________

Write Answer

1. Terms used in Excel


2. Explain statistical function
3. Explain mathematical function
4. Explain date and time function
5. Write cell manipulation operation in excel
6. Explain worksheet manipulation operation in excel
7. Write the procedure for preparation of chart in excel

64

You might also like