chapter 4 - ms excel

50
DAC 10203 4 -1 TOPIC 4 ELECTRONIC SPREADSHEET USING MS EXCEL INTRODUCTION This topic will introduce Microsoft Excel. Microsoft Excel is a popular computer program for spreadsheet application. It features calculation, graphing tools, pivot tables and a macro programming language called VBA (Visual Basic for  Applications ). LEARNING OBJECTIVES The objectives of this topic are to: 1. Understand the MS Excel. 2. Apply MS Excel to create and edit spreadsheet application. LEARNING OUTCOMES  After com pleting this topic, the s tudents s hould be able to: 1. Use M s Ex cel to create and edit sp readsheet applications. 4.1 GETTING STARTED WITH EXCEL 2003 Microsoft Excel is the most widespread program for creating spreadsheets on the market today. Spreadsheets allow you to organize information in rows and tables (which create cells), with the added bonus of automatic mathematics. Spreadsheets have been used for many, many years in business to keep track of expenses and other calculations. Excel will keep track of numbers you place in cells, and if you define cells to refer to each other, any changes made in one cell will be reflected in these referring cells. It sounds a bit complicated, but Excel makes it all a breeze. Microsoft Excel will automatically open with a blank spreadsheet spanning many columns and rows. You will notice a number of toolbars with many more options included.

Upload: anonymous-59kjvq4olb

Post on 04-Apr-2018

221 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 1/50

DAC 10203 4 -1

TOPIC 4ELECTRONIC SPREADSHEET USING MS EXCEL

INTRODUCTION

This topic will introduce Microsoft Excel. Microsoft Excel is a popular computer program for spreadsheet application. It features calculation, graphing tools,pivot tables and a macro programming language called VBA (Visual Basic for 

 Applications).

LEARNING OBJECTIVES

The objectives of this topic are to:1. Understand the MS Excel.

2. Apply MS Excel to create and edit spreadsheet application.

LEARNING OUTCOMES

 After completing this topic, the students should be able to:1. Use Ms Excel to create and edit spreadsheet applications.

4.1 GETTING STARTED WITH EXCEL 2003

Microsoft Excel is the most widespread program for creating spreadsheets onthe market today. Spreadsheets allow you to organize information in rows andtables (which create cells), with the added bonus of automatic mathematics.Spreadsheets have been used for many, many years in business to keep trackof expenses and other calculations. Excel will keep track of numbers you placein cells, and if you define cells to refer to each other, any changes made in onecell will be reflected in these referring cells. It sounds a bit complicated, butExcel makes it all a breeze.

Microsoft Excel will automatically open with a blank spreadsheet spanningmany columns and rows. You will notice a number of toolbars with many moreoptions included.

Page 2: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 2/50

DAC 10203 4 -2

4.1.1 Standard Toolbar:

Figure 4.1 (a) Standard Toolbar 

1. New: Create a new, blank spreadsheet2. Open: Open a previously saved spreadsheet3. Save: Save your current spreadsheet4. Permission:5. Print: Prints the current document.6. Print Preview: Preview the potential print of the current document.7. Research: Microsoft has enabled Information Rights Management

(IRM) within the new version of Excel, which can help protect sensitivedocuments from being copied or forwarded. Click this for moreinformation and options.

8. Copy: Copies the current selection to the clipboard, which can then bepasted elsewhere in the document.

9. Paste: Takes the current clipboard contents and inserts them.10.Undo: Undoes the last action in the document, reverting “back” a step

in time.11.Insert Hyperlink: Inserts a hyperlink to an Internet location.12.AutoSum: A drop-down menu of available mathematical operations to

perform.13.Sort Ascending: Sorts the current selection in ascending order.14.Chart Wizard: Opens the “Chart Wizard,” which will walk you through

the creation of a chart / diagram using the currently selectedinformation.15.Microsoft Excel Help: Brings up the Excel Help window, which will

allow you to type in a key-word for more information, or click anythingon screen to directly bring up further information on that subject.

16.More Options: There are a variety of extra options you can call or addto the toolbar, such as Spell Check, Sort Descending, Cut, Redo, etc.By clicking the triangle, you can access these options; at the sametime, you can drag this toolbar outwards more to make more availablespace for these options directly on the toolbar.

Page 3: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 3/50

DAC 10203 4 -3

4.1.2 Formatting Toolbar:

Figure 4.1 (b): Formatting Toolbar 

1. Font: Change the font of the selected cell(s)2. Size: Change the font size of the selection3. Bold: Put the selection in bold face4. Italics: Italicize the selection5. Underline: Underline the selection6. Align Left: Align the current selection to the left7. Center: Align the current selection to the center 

8. Align Right: Align the current selection to the right9. Merge & Center: Combine two selected cells into one new cell thatspans the width of both and center the contents of this new cell

10.Currency Style: Change the style in which currency is displayed11.Percent Style: Change the style in which percents are displayed12.Decrease Indent: Decrease the indent of a cell by approximately one

character 13.Border: Add or alter the style of borders to format a cell with14.Fill Color: Select a color to fill the background of a cell with15.Font Color: Select a color to apply to a selection of text

4.2 WORKING WITH SPREADSHEETS

 A spreadsheet is an electronic document that stores various types of data.There are vertical columns and horizontal rows. A cell is where the column androw intersect. A cell can contain data and can be used in calculations of datawithin the spreadsheet. An Excel spreadsheet can contain workbooks andworksheets. The workbook is the holder for related worksheets.

Page 4: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 4/50

DAC 10203 4 -4

Figure 4.2 (a): Example of new spreadsheet

§ Entering Data

There are different ways to enter data in Excel: in an active cell or in theformula bar.To enter data in an active cell:

· Click in the cell where you want the data· Begin typing

Figure 4.2 (b): Click the cell and type the data

To enter data into the formula bar 

· Click the cell where you would like the data

Formula Bar 

Page 5: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 5/50

DAC 10203 4 -5

· Place the cursor in the Formula Bar · Type in the data

Figure 4.2(c): Click the Formula Bar And Type The Data

Excel allows you to move, copy, and paste cells and cell content throughcutting and pasting and copying and pasting.

§ Select Data

To select a cell or data to be copied or cut:

· Click the cell

Figure 4.2 (d): Click the cell to copy, cut or edit

· Click and drag the cursor to select many cells in a range

Figure 4.2 (e): Click and Drag Cursor To Select Cell

Page 6: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 6/50

DAC 10203 4 -6

§ Cut, Copy and Paste

To cut, copy and paste data:

· Select the cell(s) that you wish to copy· On the Edit menu bar, click Copy at the menu list· Select the cell(s) where you would like to copy or cut the data· On the Edit menu, click Paste at the menu list

Figure 4.2 (f): Select Cell To Cut, Copy Or Paste

4.2.1 Insert Rows & Columns

· To insert a new blank row, place your cursor directly below where youwould like a new row. Select Insert >> Rows.

· To insert a new column, place the cursor in a cell directly to the right of where you would like the column. Select Insert >> Columns.

Figure 4.2 (g): Select Insert Rows

4.2.2. Delete cells

· Place the cursor in the cell, row, or column that you want to delete· Click the Edit at the menu bar · Click Delete at the menu list

Page 7: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 7/50

DAC 10203 4 -7

Figure 4.2.(h): Insert And Delete Rows, Columns

4.2.3 Find and Replace

To find data or find and replace data:

· Click the Edit at the menu bar 

· Choose Find or Replace

· Complete the Find What text box

· Click on Options for more search options

Figure 4.2(i): Find Function

Figure 4.2(j): Replace Function

Page 8: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 8/50

DAC 10203 4 -8

4.3 Add a Comment to a Cell

. To add a comment to cell eg. at B1, do the following:

·Click on cell B1·From the menu bar, click on Insert·From the drop down menu, click on Comment· A yellow text box will appear to the right of cell B1, as in the image

below:

Figure 4.3(a): To Insert Comment

Excel will add to the comment the name of the person whose computer it is. Inthis case it was done on Keys computer. You can delete this name by pressingthe backspace key on your keyboard.

To add your comment, just start typing. You can enlarge the text box by holdingdown your left mouse button on one of the white squares and dragging.

Figure 4.3(b): Typing A Comment

Click on any other cell in your spreadsheet and the comment will disappear.The cell will have a red triangle in the top right corner, indicating that it contains

a comment.

Page 9: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 9/50

DAC 10203 4 -9

Figure 4.3(c): Cell Contains A Comment

If you move your mouse over cell B1 the comment will pop up.

If you want to get rid of a comment, do the following:

· Click inside the cell that contains the comment

· Click once with your right mouse button

· A menu appears

· Click "Delete Comment" with your left mouse button

· The comment is deleted

4.4 Entering Data into a Spreadsheet

To begin this part of the course, we'll do something really simply: we'll enter some text and numbers into some cells.

To enter something into a cell, do the following:· Click on cell egg. A1 with your left hand mouse button

· Type the text "Numbers" (without the quotation marks)

· Press the Return key on your keyboard

· The darker border will jump down one cell to A2

· Type a 3 and then press the Return Key on your keyboard

· The darker border will jump down one cell to A3

· Enter a 6 and a 9 in exactly the same way

Page 10: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 10/50

DAC 10203 4 -10

Figure 4.4(a): Entering Data in a Cell

4.4.1 Editing data in a cell

If there is already something in a cell, and you tried to type something else, theold contents would be entirely erased.You have to edit from the Formula bar.

Figure 4.4(b): Formula Bar 

Click on the cell A1. Then click inside the formula bar. You will see your cursor flashing away.

Figure 4.4(c): Data at Formula Bar 

To edit the contents,

· Use the backspace key to erase anything you don't want.

· Type something new in the formula bar.

· Press the Return key

Page 11: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 11/50

DAC 10203 4 -11

Figure below shows the text "Numbers" has been changed to "Add thesenumbers". The formula bar now reads "3" when the Return key is pressed. Thecell A2 is showing in the Name Bar.

Figure 4.4(d): Nama Bar (A2)

4.4.2 Widen Column

To widen a column, do the following:

· Move your mouse pointer up to the letter A

· The pointer will be in the shape of a white cross, as in the nextimage

Figure 4.4(e): White Cross

· Move your mouse pointer, the white cross, to the line in between the A and the B

· The mouse pointer will change shape again

· The mouse pointer will be in the shape of a black cross witharrowheads, like the one in the image below:

Page 12: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 12/50

DAC 10203 4 -12

Figure 4.4(f): Black Cross with Arrowheads

· When you mouse pointer changes shape, hold down your left mousebutton

· Keep it held down and drag your mouse to the right

· Let go of the mouse button when you are satisfied with the width of your column.

Widening a Column The Result

Figure 4.4(g): Widening the Column

You can widen a row in exactly the same way. You can also double-click thisdividing line to have Excel automatically choose the best width.

4.4.3 Formatting cellsCentering text in a cell comes under the heading of Formatting. Things likemaking the text bold, changing the font, and adding some color also comeunder Formatting.

4.4.4 Highlighting the Cells.

To highlight cells, do the following:

· Position your mouse pointer over cell A1

· Make sure the pointer is in the shape of a thick white cross

· Hold down your left mouse button

· Keep the left mouse button held and drag downwards

Page 13: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 13/50

DAC 10203 4 -13

· Let go of the left mouse button when all four cells are highlighted

Figure 4.4(h): Highliting Cells

4.4.5 Centering Data in Cell

To centre the data in your four highlighted cells, do the following:

· Click on the word "Format" on the menu bar 

· Click on the word "cells" with your left mouse button

Figure 4.4(i): Format Cells Menu Bar 

Format Cells dialogue box popping up.

Page 14: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 14/50

DAC 10203 4 -14

Figure 4.4(j): Format Cells Dialogue Box

· Click on the word "Alignment" at the heading Tab Strips

Figure 4.4(k): Alignment Headings

Page 15: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 15/50

DAC 10203 4 -15

· Click the little black down-pointing arrow on the right hand side of the

Horizontal box

Figure 4.4(l): Text Alignment Options - Horizontal

There are a number of options you can select for the Horizontal text alignment.

· Click on the word "Center" with your left mouse button.

· Change the Vertical alignment in exactly the same way.

· Click the OK button at the bottom of the dialogue box.

Figure 4.4(m): Text Centered

4.5 Setting Currency Signs

To get the Currency signs in your spreadsheet, do this:

· Enter a number for the price, but enter a zero then a full stop first, thenthe numbers

·

Highlight the cells· With the cells highlighted, click on Format from the menu bar 

· From the menu that drops down, click on "Cells"

Page 16: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 16/50

DAC 10203 4 -16

· Format Cells dialogue box popping up

· Click on "Number", and

Figure 4.5(a): Setting Currency Signs

· Click on Currency from the Category section; and make sure theDecimal Places text box has a 2 in it.

· Click the OK button at the bottom.

4.6 Font Formatting

You can change the font of your text and numbers, and make it bold. You can

also change the size of the font and the font color.

To format the text in the cell A1 do this:

·Click on cell A1 with your left mouse button·Click on Format from the menu bar ·From the menu that drops down, click the word "Cells" with your left

mouse button·The Format dialogue pops up again·Click on the word "Font"

Page 17: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 17/50

DAC 10203 4 -17

Figure 4.6): Font Headings

·From the dialogue box, change the Font Style to Bold·Change the size to 8·Click the OK button at the bottom

Figure 4.6 (b): Text Change to Bold Style

Page 18: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 18/50

DAC 10203 4 -18

4.7 Changing the cell color 

To add a splash of color to your cells, first highlight the cells you want tochange.

· Click on Format from the menu bar 

· From the drop down menu, click on "Cells"· The format dialogue box pops up· Click on the word "Patterns"

Figure 4.7 ( a) : Patterns Heading

· Click on any of the colored squares that take your fancy.

· If you'd prefer a pattern, click the black down-pointing arrow on the dropdown box to the right of "Pattern".

· Select a pattern that takes your fancy.

· Click the OK button at the bottom. Or 

· Click on the Font tab strip first, and change the text to bold.

· Then click OK.

When you click OK, the cell color will change from white to the color or patternyou have chosen. If you don't like it, you click on Edit from the menu bar, then

click "Undo format cell".

Once you have the numbers formatted in a different color, click on the cell A1.

Page 19: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 19/50

DAC 10203 4 -19

.

Figure 4.7 (b) : Colouring Cells

4.8 Saving your work

To save the spreadsheet do the following:

· Click on "File" from the menu bar 

· From the menu that drops down, click on "Save"· If you have not yet saved your work, the Save As dialogue box will pop

up. Clicking Save otherwise will save the latest version of your work. Inother words, your saved work will be updated

· The Save As dialogue box is this one below

Page 20: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 20/50

DAC 10203 4 -20

·

Figure 4.8(a) Steps to Save a File

The Save As dialogue box is split into three basic sections: Where do you wantto save it; the files already in that location; and what do you want to call your file.

Just to the right of the words "Save in" is a drop down box. At the moment itsays "My Documents", and there is a little folder icon next to it. We can change

to other folder by clicking the down-pointing arrow and select the folder at thebig white area.

Page 21: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 21/50

DAC 10203 4 -21

Figure 4.8 (c): Location to Save

The File name (Book1) is already highlighted. Type a new name for our file. In

box below it- Save as type. The box says "Microsoft Excel Workbook". This isexactly what we want, so no changes are needed. But if you click the blackdown-pointing arrow, you'll see other options: Web page, Template, Text, andso on.

But click the Save button when you've chosen a File name, and set the Save astype to "Microsoft Excel Workbook (*.xls)".

:

Figure 4.8 (d): Naming the File

Your new spreadsheet is saved. Keep clicking File > Save on a regular basis tokeep updating your work. Alternatively, click the Save icon on the toolbar:

Page 22: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 22/50

DAC 10203 4 -22

EXERCISE 1

The picture below shows a simple spreadsheet. There are no formulas in it, andnothing is being added up or subtracted (we'll do that in the next section).

For Project Number 1, reproduce the spreadsheet above (the famous junk fooddiet!). Your spreadsheet must include the following:

1. Centred text and numbers2. Widened columns3. Bold font for the text and numbers4. Background colours or patterns for the cells5. The changes to make are: click on Currency from the Category section;

and make sure the Decimal Places text box has a 2 in it. Then click the OKbutton at the bottom.

Page 23: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 23/50

DAC 10203 4 -23

4.9 Constructing Spreadsheet

In this section, we'll construct a spreadsheet and learn about: Auto fill,

inserting rows and columns, adding up numbers in columns, formulas, and theformula bar .

4.9.1 Merge Cells

Merge cell is to turn two or more cell into one cell.

· Click on cell A1 with your left mouse button

· Enter the text "My Chocolate Addiction" (without the quotes)

· Press the Return key on your keyboard

· Highlight the cells A1, B1 and C1

· From the menu bar, Click on Format

· From the drop down menu, click on "Cells"

· Format Cells dialogue box pops up

· Click on the Alignment tab strip

· Look for the box at the bottom that says "Merge cells"· Put at tick in this box by clicking it with the left mouse button

Figure 4.9.1 : Merging Cells

4.9.2 Use AutoFill

 AutoFill is a very handy feature of Excel. It allows you to quickly fill a series of data, such as days of the week, months, and consecutive numbers. You canselect list from custom list or you can create a custom fill series.

4.9.2.1 Create a custom fill series

If you've already entered the list of items you want to use as a series, select thelist on the worksheet.

Page 24: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 24/50

DAC 10203 4 -24

· On the Tools menu, click Options,

· Click the Custom Lists tab.Do one of the following:

· To use the selected list, click Import.

· To type a new list, select New list in the Custom lists box,

· Type the entries in the List entries box, beginning with the first entry.

· Press ENTER after each entry.

· When the list is complete, click Add.

Note A custom list can contain text or text mixed with numbers. Tocreate a custom list that contains only numbers, such as 0 through 100

· Select enough empty cells to contain the list.

· On the Format menu, click Cells,

· Click the Number tab.

· Apply the Text format to empty cells,

· Type the list of numbers in the formatted cells.

· Select the list and

· Import the list.

4.9.2.2 Change or delete a custom fill series

You cannot edit or delete the built-in lists for months and days.

· On the Tools menu, click Options,

· Click the Custom Lists tab.

· In the Custom lists box, select the list you want.

· Do one of the following:

To edit the list, make the changes you want in the List entries box, and thenclick Add.To delete the list, click Delete.

4.9.2.3 Auto fill cell

Click inside the cell B3 on the spreadsheet, and type the text Monday. Like thisone below

Page 25: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 25/50

DAC 10203 4 -25

Figure 4.9.2 (a): Insert Text to Auto Fill

· Move your cursor to the bottom right of the B3 cell· Your cursor will change shape from a white cross to a black cross, as

in the images below.

Normal Cursor Auto Fill Cursor 

Figure 4.9.2 (b) Normal and Aut0 Fill Cursor 

· When your cursor looks like the Auto Fill one, hold down your left mousebutton and drag your mouse to the right

· Drag your mouse to the cell H3, Like the one below

· Let go of your left hand mouse button when your cursor is over the H3cell

· Excel will fill in the days of the week for you

· Format your cells while they are highlighted (Centre and Bold)

Figure 4.9.2 (c) : Days of Week Filled

Page 26: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 26/50

DAC 10203 4 -26

4,10 Entering Data into Spreadsheet

So we've got a heading at the top of our spreadsheet, and some days of theweek headings. We can now enter the chocolate bars.

· Click on cell A4 and type in the text "Mars Bars" (without the quotemarks).

· Next enter Twix, Bounty and Others. In cell A9, enter the text "DayTotals".

To enter numbers

· For the Monday column, click on cell B4

· Enter the number 1 then press the Return key on your keyboard

· Enter the number 7 then press the Return key on your keyboard

· Enter the number 8 then press the Return key on your keyboard

· Enter the number 1 then press the Return key on your keyboard

Figure 4.10 (a): Entering numbers

You now need to enter the rest of the numbers. Enter the following figures for the rest of the week:

Tuesday: 2, 5, 3, 2Wednesday: 1, 3, 2, 2

Thursday: 3, 2, 3, 2

Friday: 3, 4, 4, 2

Saturday: 2, 2, 1, 1

Sunday: 5, 4, 4, 1

Page 27: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 27/50

DAC 10203 4 -27

Figure 4.10 (b): Numbers Finished Enter 

4.11 Entering Formula into a Spreadsheet

4.11.1 Adding Up Rows or Column

In a spreadsheet, you have to "tell" Excel which cells you want to add up. So

for the Monday column, the 1 is in cell B4, the 7 is in cell B5, the 8 is in cell B6,and another 1 in cell B7. So we want the answer to B4 + B5 + B6 + B7.

To "tell" Excel to add up, you need an equals sign first. We'll also use the Sumfunction.

You put what you want to add up in between the two brackets. So we wouldneed this:

=Sum( B4 + B5 + B6 + B7)

Figure 4.11 (a): Entering Formula at formula bar 

Press the Return key on your keyboard.

Page 28: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 28/50

DAC 10203 4 -28

Finally, Excel understands what you want to do. It adds up the numbers in thecells you gave it, and puts the answer in cell B9. Your spreadsheet now lookslike this one:

Figure 4.11 (b): Answer to Numbers Above

To add up a long column or rows:

· Type the first cell you want to add up,

· Type a colon.

· After the colon, type the last cell that you want to add up. It would looklike this:

=Sum(B4: B44)

The colon means: "Add up all the cells between the one on the left and the oneon the right."

Once we have the answer in cell, we can use Auto Fill to get the answers to theother columns or rows.

· Click on cell B9

· Move your mouse to the bottom right of the cell

· The cursor turns into a black cross,

· Hold down your left mouse button

· Keep the left mouse button held down and drag your mouse towardsother cells

· When your cursor gets to cell J7, let go of the left mouse button.Excel will Auto Fill the other three cells, inserting a formula based on the

first one.

Page 29: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 29/50

DAC 10203 4 -29

Figure 4.11(c) : Formula Copied Based on First Cell

4.11.2 Multiply Figures

To multiply rows or column, the asterisk symbol is used. The asterisk symbol isthe one above the number 8 on your (English) keyboard.

· Click inside the cell D15

· Click inside the Formula Bar at the top

· Type this formula: = Reference Cells * Reference or Reference Cells *Numbers

· Then press the Return key on your keyboard

· Once we have that formula in place, we can Auto Fill the others.

Figure 4.11(d) : Answer After Reference Cells Multiplied

Page 30: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 30/50

DAC 10203 4 -30

To multiply a long range of values, use the word Product instead of using theword Sum.

=Product(B4:H4)

Just like the Sum function, you can add other cells after a comma. Like this:

= Product(A1:E1, A3)

To Sum cell A1 to A4 and cell A10, you'd do it like this:

= Sum(A1:A4) + A10

You can also use the Sum function alone. Like this:

= Sum(A1:A4, A10)

Here we have entered a range of cells in the brackets - A1:A4. But after that,

we added a comma then the final cell we wanted to add up. If we also wantedto add cells A12 and A14 to our sum, we just add a comma then the cellreference. Like this:

= Sum(A1:A4, A10, A12, A14)

EXERCISE 2

You have just created a spreadsheet on Chocolate addiction. Time now to reveal your addiction!

Create a spreadsheet like the one in the last section, but substitute Chocolate Addiction for something else. Examples might be: drinking, eating out, clothes, andmake-up - in fact, anything that someone might be spending too much money on. (Itdoesn't have to be you doing the spending; it can be entirely made up.)

Your spreadsheet must include the following:

·Daily totals· Individual totals·Weekly total·Columns for Prices·Columns for Number and Cost·Weekly cost· Annual cost

You can format the spreadsheet any way you like. The color scheme is entirely up toyou. Just make sure that your spreadsheet is easy to follow.

Page 31: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 31/50

DAC 10203 4 -31

4.11.3 Subtraction

To subtract one value from another, you just use the minus sign in betweenyour cell references. Like this:

= A1 - A2

Cell A3 is where the answer is displayed, and where we entered the formula.

If you want to subtract more than two cells you can do it like this:

= A1 - B1 - C1

Subtraction is fairly straightforward in spreadsheets, and shouldn't cause youtoo many problems.

4.11.4 Division

If you want to divide one number by another the symbol to use is this one:

 /

That's the forward slash, and can be found just to the right of the full stop onyour keyboard. You use it like this:

= A1 / C1

4.12 Combining the Mathematical Operators

There are times when you will want to combine the arithmetic operators in your calculations. Here are a few examples of combining the operators:

Example 1

·Start a new spreadsheet·Enter the number 25 in cell A1·Enter the number 50 in cell A2·Enter the number 2 in cell A3

Page 32: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 32/50

DAC 10203 4 -32

· In cell A5 enter the following formula

=(A1 + A2) * A3

·Press the Return key on your keyboard to get the answer 

The answer you should have got was 150. Notice the brackets in the formula.The brackets group part of your sum together. Without them, Excel will

normally calculate from left to right. But it does some calculation before others.Excel sees multiplication as more important than adding up. To see whathappens without the brackets, do this:

·Click on cell A5·Click inside the formula bar at the top·Delete both the brackets from the formula·Press the return key on your keyboard to see the answer 

Now the answer is different! This time you should have gotten 125. Here arethe picture versions of both formulas:

With Brackets Without Brackets

Figure 4.12 (a) : Working With Brackets and Without Brackets

You might think the second one is wrong. But it's not. It's just the way Excelworks things out. Because it sees multiplication as more important than addingup, it will multiply cell A2 by cell A3 first. That gets the answer of 100. Excel willthen add this answer to cell A1, which gives the answer 125.

With the brackets in, you force Excel to work things out your way. You're saying"Do the sum in brackets first, then multiply". When you do the brackets first, youget a different answer. A1 + A2 = 75. Multiply 75 by cell A3 and you get theanswer 150.

Page 33: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 33/50

DAC 10203 4 -33

Example 2

Substitute the asterisk symbol from example 1 with the forward slash. So theformula will be changed from this:

= (A1 + A2) * A3

To this:

= (A1 + A2) / A3

Press the Return key on your keyboard to reveal the answer. It should be 37.5.Now take the brackets out and try again. Again, you get a different answer. Thetotal will now be 50!

 Again the same process is at work. Excel sees division as more important thanadding up, so it does that first. So it will divide 50 by 2 to get 25. Then it will addthe contents of cell A1 to get 50. With the brackets, we force Excel to do theadding up first, then divide by the cell A3.

Example 3

This time, enter the following formula for cell A5:

= (A1 * A2) / A3

Press the Return key on your keyboard to reveal the answer. It should be 625.

Remove the brackets and try again. The answer should be 625 again. This isbecause Excel sees Multiplication and division as being of equal importance.When all things are equal, Excel calculates from left to right.

Likewise, Excel sees addition and subtraction as being of equal importance. Soit will calculate from left to right if you use addition and subtraction in the sameformula. As an example, study this formula below:

Figure 4.12 (b): Multiply and Subtract Cell

Page 34: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 34/50

DAC 10203 4 -34

EXERCISE 3

Create a spreadsheet using the following information. You are the owner of a fruitstore; you have owned the fruit store for one complete year. Use the data below toconstruct a spreadsheet to display the sales figures for the first year of operation of your fruit store.

1) Enter the raw data below, applying as many presentation Features (Font, FontSize, Font Color, Number Formats and Color, Cell Shading, Text Rotation, etc) toit as you wish.

2) Apply appropriate number formats to your numbers.

3) Center your spreadsheet horizontally on the page

4) Give your spreadsheet an appropriate title and center it across your spreadsheet.

5) Select the best page orientation for your spreadsheet.

6) Adjust the column width and row height to suit the layout you have selected.

7) Create formula's to calculate totals for each month.8) Create formula's to calculate totals for each fruit item.

9) Setup an appropriate header for this spreadsheet.

10) Setup a page number for this spreadsheet and place it in the footer.

Page 35: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 35/50

DAC 10203 4 -35

Sorting Data in a Chart

In this section you'll learn how to create a chart from data in a spreadsheet.You'll also learn how to sort data.

Before we start this section, though, you need to create the spreadsheet below.Type in the data exactly as it is in this one:

Apples Bananas

January 2298 January 6899.21

February 3512.56 February 6755.33

March 4929.67 March 6541

April 5883 April 6032.79

May 6237.77 May 5822.72

June 6566.78 June 5968

July 6213.88 July 6333.33

August 6001 August 6544.11

September 5799.69 September 6845.45

October 5527 October 7000.01

November 3914.55 November 7216.27

December 2564.99 December 7283

Oranges Kiwifruit

January 4923.88 January 3349.12

February 4444.99 February 3899.87

March 3851 March 4336

April 3399.88 April 4892.01

May 3020.03 May 5217.97June 3411.89 June 4764.10

July 3567.09 July 4523.22

August 3999.91 August 4501

September 4255.88 September 4219.91

October 4873 October 3877.49

November 5214.95 November 3712.12

December 5521.17 December 3555.56

Pears Grapes

January 3310 January 4847.23

February 4524.65 February 5361.58

March 5992.76 March 5899.24April 6961.44 April 6853.01

May 7447 May 5471.34

June 7583.87 June 4534.22

July 7393 July 4222.83

August 7110.10 August 4137

September 6637.96 September 3998

October 6275 October 3556.36

November 4841.71 November 3111.44

December 3456.11 December 2789.74

Peaches Nectarines

January 5902.44 January 5310

February 7234.12 February 7772.71

March 5110 March 8219

April 3521.87 April 6989.33

May 1276.34 May 4535.52

June 1227.30 June 1873.38

July 1199.99 July 1198

August 1242.09 August 1241.63

September 1189.73 September 1187.57

October 1195.42 October 1222.21

November 1213.14 November 1432.43

December 1887.49 December 2137.78

Page 36: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 36/50

Page 37: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 37/50

DAC 10203 4 -37

To sort the BBC 1 figures, do the following:

· From Excel's menu bar, click Data· From the drop down menu, click Sort·  A dialogue box appears

Figure 4.13 (c): Sort Dialogue Box

In the Sort By box it says "Column A". To the right of this there a Ascendingradio button and a Descending radio button. A Descending sort. Is the highestviewing figures will be at the top and the lowest at the bottom. A Ascending sortis the other way around, with the lowest first and the highest last.

The Sort By box is actually a drop down list.

· Click the word Descending to select this option· Click the black down-pointing arrow on the Sort By box· From the drop down list, click on Millions· Click the OK button right now and the data would be sorted

The "Then By" boxes are for what happens in the event of a draw. You choosewhich column to sort on next. But click the OK button when your dialogue boxlooks like the one below:

Page 38: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 38/50

DAC 10203 4 -38

Figure 4.13 (d): Column to be Sorted

Your BBC 1 Viewing figures should now look like this:

Figure 4.13 (e): Column Sorted in Ascending Order 

Page 39: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 39/50

DAC 10203 4 -39

4.14 Create a Bar Chart

To start making your chart, you need to highlight the data that will make up thechart.

·So highlight the BBC1 programmers and the viewing figures·From the menu bar, click on Insert·From the drop down list, click Chart·The Chart wizard appears.

Figure 4.14 (a) : Insert Drop Down List (Chart)

There is a four step process to go through with the wizard. The first step is to

select a chart type. The Chart Type showing in the image is a column chart. Tosee what this will look like, click the button "Press and Hold to View Sample".Click with the left mouse button, and keep the button held down

Page 40: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 40/50

DAC 10203 4 -40

Figure 4.14 (b) :Chart Wizard Dialogue Box – Step 1

Let go of the left mouse button and you are returned to the chart types. Thechart we want is Bar. So click on Bar in the Chart Types list. You'll see somedifferent Bar types under Chart Sub Types. Make sure the first one is selected.

When you have selected your Chart sub-type, click the Next button at thebottom, and you'll be taken to Step 2 of the Wizard.

Page 41: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 41/50

DAC 10203 4 -41

Figure 4.14 (c) : Chart Wizard Dialogue Box – Step 2

You can click the Rows radio button and the Columns radio button to set the

data range

The Data Range is the important part of Step 2. This refers to the data that youwant in your spreadsheet. Specify a t range here and press the Next button.

Your are taken to Step 3 of the wizard, and the dialogue box now looks like thefollowing one:

Page 42: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 42/50

DAC 10203 4 -42

Figure 4.14 (d) : Chart Wizard Dialogue Box – Step 3

There a whole lot for us to do in Step 3 of the Wizard! But we're basicallyformatting the chart to how we want it.

Notice the three text boxes: Chart Title, Category (X) Axis, Value (Y) Axis.Enter the text in text boxes:

From the Tab Strips along the top, click on Legend. Your dialogue box will looksomething like this one:

Page 43: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 43/50

DAC 10203 4 -43

Figure 4.14 (e) : Show Legend Button Untick

Untick the box that says "Shows legend" to get your dialogue box looking likethe one above. Then click the Next button at the bottom. You will be taken toStep 4 of the wizard, the final step. Your dialogue box will look like the onebelow.

Figure 4.14 (f) : Chart Wizard Dialogue Box – Step 4

This is where you get to specify the Chart Location.

Page 44: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 44/50

DAC 10203 4 -44

Click the black down-pointing arrow, just to the right of "As object in: Sheet1".From the drop down list, select where you to locate the chart Then click theFinish button at the bottom. The wizard will close down, and the chart will belocated at the location you have stated. Your chart will look something like theone below.

Figure 4.14 (g) : View of the Chart

4.14.1 Format a Chart

To format the chart you created in the last part, do this:

·Click on your chart with your right mouse button· A pop up menu appears·Move your mouse up to "Format Chart Area"

Page 45: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 45/50

DAC 10203 4 -45

Figure 4.14 (g) :Format Chart List Selected

·Click on Format Chart Area with your left mouse button· A dialogue box appears

Figure 4.14 (h): Format Chart Area Dialogue Box

Page 46: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 46/50

DAC 10203 4 -46

Select the Font tab strip, and change your settings to match those above: Arial,Regular, Size 8. Click OK when you're done.

Figure 4.14 (i) : Chart Formatted

To move your chart up, do the following:

·Move your mouse into the Chart Area, but on a white bit·Hold down your left mouse button·Keep the left mouse button held down, and drag your mouse upwards·Your chart should move up

·Let go of the left mouse button when your chart is near the top· In the image below, the top left of the chart has been moved to the cell

B2

Page 47: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 47/50

DAC 10203 4 -47

Figure 4.14 (j): Chart Moved

4.14.2 Resizing a Chart

To resize your chart, do the following:

·Move your mouse pointer to the middle black square on the bottom row(if you can't see any black squares around your chart, click on the chartwith the left mouse button to select it)

·Your mouse pointer will change to the shape of a arrow-headed line, likethe one in the image below:

Figure 4.14 (k) : Arrow Head Mouse Pointer 

·When you mouse pointer changes to the shape above, hold down your left mouse button

·Keep your left mouse button held down and drag downwards·Let go of the mouse button when the bottom of your chart reaches about

Row 22

Page 48: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 48/50

Page 49: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 49/50

DAC 10203 4 -49

· Another dialogue box pops up·Select the Font tab strip·Choose a Bold font style and click the OK button·Your title is made Bold·Do the same with the Programmers title and the Millions title

Your Chart should now look something like the one below:

Figure 4.14 (n) : Font Formatted

. To change the highest viewing figures at the top, do this:

·Click on Sheet 1 to return to your spreadsheet Data·Make sure the data is still highlighted·Click on Data from the menu bar ·From the drop down menu, click on Sort·On the Sort dialogue box, change the two Descending radio buttons to Ascending·Click the OK button·Click back on Sheet 2 to see your Chart·The Highest programmed should now be at the top, and the lowest at

the bottom

Page 50: Chapter 4 - Ms Excel

7/29/2019 Chapter 4 - Ms Excel

http://slidepdf.com/reader/full/chapter-4-ms-excel 50/50

EXERCISE 4

 Add the following data to your spreadsheet:

The P1, P2, etc, means Position 1, Position 2, and so on. The highest viewingfigure is under P1 and the lowest under P10

Make a chart from this data.

SUMMARY

In this topic we have studied how to create spreadsheet using MS Word. We

can also insert data and format cells. Work with mathematical calculation and

create chart.

REFERENCES

1. Joe Kraynak (2001). To Complete Idiot’s Guide to Microsoft Office XP.

Indiana: Alpha Books.

2. Ed Bott & Woody Leonhard (2006). Special Edition using Microsoft

Office. Indiana: Que Publishing.

3. Laurie Ann Ulrich (2003).How to Do Everything with Microsoft Office

2003. New York: McGraw-Hill Professional.

4. http://www.homeandlearn.co.uk/ME/MicrosoftExcel.html