Docsity

Excel-Fundamentals-Manual, Slides of Computer Science

Partial preview of the text

Download Excel-Fundamentals-Manual and more Slides Computer Science in PDF only on Docsity!

Excel

Fundamentals

Mr Oddo

St. George’s Information Services

St. George’s Information Services

UNDERSTANDING WORKBOOKS

In Microsoft Excel the data you enter, whether it consists of numbers, text, or formulas, is stored in a file known as a workbook. Workbooks are just like huge electronic books with pages (or

sheets ) that have been ruled into columns and rows. Before using Excel it is helpful to know what the various parts and elements that make up a workbook are.

A worksheet (or page) in a workbook contains 16,384 columns that are labelled using letters of the alphabet. The first column in a worksheet is labelled column A , while the last is labelled XFD

A worksheet (or page) in a workbook contains 1,048,576 rows that are labelled using numbers from 1 to 1,048,

Where a column and row intersect we get what is known as a cell. You enter your data into these cells. Each cell in a worksheet can hold up to 32,767 characters – although it would be unrealistic to ever push it this far. Cells are referred to by their column and row labels. For example, in the screen above the cell we are pointing to is C11 – this reference is known as the cell address and is most important as it is frequently used in commands and formulas

When you start typing something, you want it to appear somewhere in the worksheet. As a consequence when the Status Bar shows Ready mode, at least one cell in the worksheet will be highlighted – this is known as the active cell. In the screen above, the active cell is cell A1 – notice that the column label and the row label also appears coloured to indicate the active cell. You can have more than one active cell – when this occurs you have what is known as a range

A workbook (as you would expect) is made up of pages known as worksheets. You can have as many sheets in a workbook as your computer resources can accommodate. As a default, a new blank workbook normally has 3 worksheets labelled Sheet1 , Sheet2 , and Sheet3. Of course these labels are pretty boring and meaningless and can be changed to something more relevant

The Insert Worksheet button here will insert another worksheet into the current workbook should you need it

TYPING TEXT OR NUMBERS INTO A WORKSHEET

Generally when you start a new spreadsheet project, the first task is to enter some headings into rows and columns. To type anything into a worksheet you need to make the cell into which

you wish to enter the data active. This can be done in a number of ways but the most common is to click in it first before typing.

Try This Yourself:

Before you begin ensure that there is a blank workbook on the screen…

Click in cell A3 to make this the active cell, type Garden Settings and press

When you press the next cell down automatically becomes the active cell. By the way, even though the text looks like it is in cells A and B3 it really only is in cell A3 – since there is nothing in B3, Excel allows the spill over to be displayed giving the illusion it is in 2 cells…

Type Pool Covers and press

Repeat the above steps and enter the remaining text in column A as shown

Click in cell B2 to make this the active cell, type UK and press

When you press the cell to the right becomes the active cell…

Enter the remaining text in row 2 as shown

For Your Reference…

To enter text :

  1. Click the cell pointer on the desired cell and type the required information
  2. Press , an arrow key or to confirm the data entry and to move the cell pointer to another cell

Handy to Know…

 You don’t have to use or to make adjacent cells active. You can simply use the mouse and click in the cells if you want or even press the arrow keys to move up, down, left, or right.

For Your Reference…

To save a new document :

  1. Click on the File Tab and select Save As
  2. Locate the storage folder in the Navigation pane
  3. Type a File name and click on [Save]

Handy to Know…

 In the exercise above we have named the workbook Garden Department Sales and filed it in C:\Course Files for Excel 2010. Each time you start Excel it will most likely assume you want to file your workbooks in a folder called Documents which is associated with the user name you use on the computer.

TYPING SIMPLE FORMULAS IN A WORKSHEET

The whole idea behind Excel is to get it to perform calculations. In order for it to do this you need to type formulas in the worksheet. Usually these formulas reference existing numbers, or

even other formulas, already in the worksheet using the cell addresses of these numbers rather than the actual value in them. Formulas must be typed beginning with an equal sign ( = ).

For Your Reference…

To enter a formula :

  1. Click the cell pointer on the desired cell and type the formula commencing with =
  2. Press , an arrow key or to confirm the data entry and to move the cell pointer to another cell

Handy to Know…

Operators + Addition

**- Subtraction

  • Multiplication / Division**

Try This Yourself:

Continue using the previous file with this exercise...

Click in cell B8 to make this the active cell

Type =B3+B4+B5+B6+B7 and examine what is happening on the screen

Press to enter the formula and move to the next cell

Notice that a calculation has now been performed. We have entered a formula in B8 that says “add the values in B3, B4, B5, B6, and B7 and show them here”…

Ensure that C8 is the active cell, type =SUM(C3:C7) and press

This is an alternative type of formula known as a “function”. Again a calculation will appear in the cell…

Click in cell B8 and notice that the formula you typed appears in the Formula Bar, while the result of the calculation appears in the worksheet

Repeat step 5 with cell C

 Click on the^ File Tab and select Save to save the additions that have been made

INSERTING AND DELETING WORKSHEETS

Once you’ve decided on a structure for your workbook, you may find that there are some worksheets that can be deleted. Alternatively, you may find that you need additional blank

worksheets inserted. However, remember that deletion of worksheets is permanent and can’t be undone using Undo , so always save your workbook before making these changes.

Try This Yourself:

OpenFile

Before starting this exercise you MUST open the file E1324 Worksheet Techniques_1.xlsx…

Examine the workbook – it currently contains one worksheet named Sheet

Click on the New Sheet icon at the end of the worksheet tabs A new worksheet named Sheet2 will be inserted. You can also use the keyboard shortcut...

Press + to insert another new worksheet This sheet is named Sheet and is inserted before the currently selected sheet. Now let’s delete a sheet...

Right-click on the Sheet worksheet tab to display the shortcut menu

Select Delete to remove the worksheet As the worksheet contains no data, the sheet will be deleted immediately. If a worksheet contains data, Excel will ask you to confirm your actions...

Repeat steps 4 and 5 to delete Sheet

For Your Reference…

To insert a new worksheet into a workbook :  Click on the New Sheet icon to the right of the worksheet tabs To delete a worksheet from a workbook :  Right click on the worksheet tab, then select Delete

Handy to Know…

 To insert a worksheet between existing worksheets, right-click on the worksheet tab before which you want to insert a new sheet, then click on Insert to display the Insert dialog box. Select Worksheet and click on [OK].

COPYING A WORKSHEET

Just as you can copy the contents of cells and ranges within a worksheet, you can duplicate worksheets within a workbook. This technique is ideal for replicating layouts. For example, if you

have a budget workbook that contains data for several departments, you can create a worksheet for the first department and then copy it to create identical worksheets for other departments.

Try This Yourself:

SameFile

Continue using the previous file with this exercise, or open the file E1324 Worksheet Techniques_1.xlsx...

Right-click on Sheet1 to display the worksheet shortcut menu

Select Move or Copy to display the Move or Copy dialog box

Click on Create a copy so it appears ticked, then click on [OK]

The new worksheet is named Sheet1 (2). Let’s create a “template” from this worksheet by deleting unwanted data...

Select the range B7:E9 , then press to clear it

Repeat step 4 to clear the ranges B14:E23 , G7:J9 and G14:J23 , then press + to return to cell A

Now we can copy this “template” to create additional worksheets...

Repeat steps 1 to 3 three times to create three copies of the template worksheet – this time without data

The final worksheet should be named Sheet1 (5)

For Your Reference…

To copy a worksheet :

  1. Right-click on the worksheet to copy, then select Move or Copy
  2. Click on Create a copy so it appears ticked
  3. Click on [OK]

Handy to Know…

 You can copy the current worksheet using the HOME tab by clicking on Format in the Cells group, then clicking on Move or Copy Sheet.  The Before sheet options in the Move or Copy dialog box allow you to position the copied worksheet where you want.

MOVING OR COPYING A SHEET TO ANOTHER WORKBOOK

You can copy worksheets to other workbooks as required. For example, you might need to keep records for six different divisions – rather than send each division the entire set of records, you

can copy their worksheet to another workbook and send them their data only. If worksheets exist in the other workbook, you will need to determine the order in which to place the copied worksheet.

Try This Yourself:

Same File

(^) Continue using the previous file with this exercise, or open the file E1324 Worksheet Techniques_6.xlsx...

Click on the Maintenance worksheet tab

We’ll copy this completed data to another workbook...

Right-click on the worksheet tab to display the shortcut menu, then click on Move or Copy to display the Move or Copy dialog box

Click on the drop arrow for To book , then select (new book)

Click on Create a copy so it appears ticked

This will create a new workbook as well as making a copy of the worksheet...

Click on [OK]

A new workbook will be created and Maintenance will be the only worksheet in the workbook…

Save the new workbook as Maintenance.xlsx , then close it

For Your Reference…

To copy a sheet to another workbook :

  1. Right click on the worksheet tab, then click on Move or Copy
  2. Select either (new book) or the name of another workbook in To book
  3. Tick Create a copy , then click on [OK]

Handy to Know…

 To copy a worksheet into an existing workbook, make sure that you open the destination workbook first to ensure that it is listed in To book in the Move or Copy dialog box.

CHANGING WORKSHEET TAB COLOURS

To make it easier for you to distinguish between worksheets, Excel enables you to change the colours of worksheet tabs. This allows you, for example, to quickly distinguish between different

financial years, departments or months. The active sheet appears as underlined in a gradient version of the selected colour, while inactive tabs will display a solid colour background.

Try This Yourself:

SameFile

Continue using the previous file with this exercise, or open the file E1324 Worksheet Techniques_7.xlsx...

Click on the Admin worksheet tab to select the worksheet

Right-click on the worksheet tab to display the shortcut menu, then point to Tab colour This will display a palette of colour options…

Click on Red under Standard colours to apply the colour to the tab

Right-click on the Maintenance worksheet tab to display the shortcut menu, click on Tab colour , then click on Blue under Standard colours Notice how the Admin worksheet tab colour is now a solid rather than a gradient…

Repeat either technique to apply the following colours: Shop Yellow IT Green

Click on the Admin worksheet tab to view the results

For Your Reference…

To change the colour of a worksheet tab :

  1. Right-click on the worksheet tab to display the shortcut menu
  2. Point to Tab colour to display a palette of colour options
  3. Click on the desired colour

Handy to Know…

 To apply the same colour to two or more sheets at once, select them first. Hold down to select consecutive worksheets or hold down to select non-consecutive worksheets.

FREEZING ROWS AND COLUMNS

When you lay out your data in rows and columns, it is most likely that your headings end up at the top or to the left of your data. If you have a large amount of data, you may find that when you

scroll across or down to particular cells, the headings scroll out of view. This problem can be resolved by freezing the rows and/or columns that hold the headings.

Try This Yourself:

SameFile

Continue using the previous file with this exercise, or open the file E1324 Worksheet Techniques_11.xlsx...

Click on the Maintenance worksheet tab, then spend a few moments examining the worksheet Depending on your screen, it is possible that you won’t be able to see all of the figures on the screen at once...

Click in cell B6 to select the cell

Click on the VIEW tab, click on Freeze Panes in the Window group, then select Freeze Panes Thin black lines appear above and to the left of the selected cell. This indicates that the areas above and to the left are frozen...

Scroll to the right until Yearly Average in column L appears next to column A

Scroll down until Overheads in row 25 is below row 5

Press + to move to cell B6 – this is our temporary home cell, as the cells above and to the left are frozen

On the VIEW tab, click on Freeze Panes in the Freeze Panes group, then click on Unfreeze Panes to unfreeze the rows and columns

For Your Reference…

To freeze panes in a worksheet :

  1. Click in the cell below and to the right of the area you want to freeze/unfreeze
  2. Click on the VIEW tab
  3. Click on Freeze Panes in the Window group, then select Freeze Panes

Handy to Know…

 If you want to freeze only the rows above the selected cell (leaving all columns unfrozen), select the cell in column A of that row – e.g. to freeze rows 1 to 6 , click in cell A7. The same applies to freezing only columns and leaving the rows unfrozen: select the cell in row 1.

SELECTING RANGES

A contiguous range is any group of selected cells that form either a square or a rectangle. A single cell that is selected is also considered to be a range. Ranges can be selected using the

mouse, the keyboard or a combination of the two. Once selected, you can use the range for input, or apply formatting, or copy the cells as required.

Try This Yourself:

OpenFile

Before starting this exercise you MUST open the file E Ranges_1.xlsx...

Click on cell B7 to select it

Because it is the only cell selected it is the active cell…

Hold down the key and click in cell E

Even though a range has been selected, the active cell is B7 – it appears in a different colour and its contents appear in the formula bar. You can keep the range selected and change the active cell within the range using the keyboard…

Press several times and watch the various cells become active through the selection

Click in cell B7 , hold down the mouse button, and drag down to cell C10 before releasing the mouse The previous selection has disappeared and the range B to C10 is now selected…

Press and to deselect the selected cells and return the cell pointer to cell A

For Your Reference…

To select ranges with the mouse :

  1. Click in the left-most cell of the range
  2. Hold down the key and click in the last cell, Or
  3. Drag the mouse pointer to the bottom right corner of the range

Handy to Know…

 When a range has been selected it can be used as an input range. You can then enter data into the active cell and move the active cell to either the cell below by pressing , or the adjacent cell by pressing.

SELECTING COLUMNS

If you want to make changes to an entire column , such as bolding all of the headings in a column or changing the font of all the cell entries, you must first select the column. This is done by

clicking on the column header directly above the column. Remember that any changes you make will apply to every cell in the column all the way down to row 1,048,576!

Try This Yourself:

SameFile

Continue using the previous file with this exercise, or open the file E705 Ranges_1.xlsx...

Press + to make cell A1 the active cell

Move the mouse pointer to the column heading for column B

Notice that the mouse pointer changes to a black arrow pointing down the column…

Click once to select the column

This time the row headers change to orange to indicate that at least one cell (but not all) in each row is selected…

Click in cell D6 and press

This key combination also selects an entire column…

Click on the column header for column B to select it

Hold down and click on the column header for column D

This time, columns B, C, and D are all selected…

Click in the column header for column A , then hold down the left mouse button and drag the mouse pointer across the column headings to column E

For Your Reference…

To select an entire column :

  1. Click on the column heading of the column that you want to select OR
  2. Click in any cell in the column and press

Handy to Know…

 Make sure that you check your worksheet carefully after you’ve made changes to entire columns. Remember that all of the cells in that column are affected – even those in rows below the visible area.

UNDERSTANDING FORMATTING

In Excel there are always two aspects to a number: how the number presents on the screen (known as formatting ) and the underlying value of the number. Take 2% as an example – on the

screen it is formatted to appear as a number with a percentage sign, whereas the real value in the cell is .02.

Number Formatting – The Veil Placed Over Numbers

All calculations in Excel are performed using numbers – this is only logical. So, when you want to perform a calculation, you type the numbers in various cells, then create formulas to reference those numbers. How do you show what those numbers represent? For example, how do you show you are working with currency , or percentages , or even dates (which in Excel are really numbers )? Excel allows you to show these representations using number formatting. With number formatting you change the way a number looks so that it makes immediate sense to the reader of your worksheet. The underlying value of number, however, remains unchanged. For example, instead of showing sales tax in a worksheet as .1 you show it as 10% , to show 12889.95 as currency it would appears $12,889.95 or € 12,889.95 (depending upon the currency you are working with), and to show 44104 as a date you show it as 30-Sep-2020 (remember, dates are actually numbers representing the number of days from January 1, 1900). The following worksheet contains formatted numbers:

With the formatting removed from the numbers the worksheet looks as follows:

Formatting can also be applied as you type. For example, if you type 30/9/2020 Excel will place the number 44104 in the cell but will format this number as a date and show it as you typed it. There are also a range of number formatting options on the ribbon that allow you to apply formatting to numbers after they have been entered into a worksheet.