spreadsheets

66
Spreadsheet s Skills Builder

Upload: great-baddow-high-school-media

Post on 19-May-2015

392 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Spreadsheets

SpreadsheetsSkills Builder

Page 2: Spreadsheets

Creating A Simple Spreadsheet – What you will make

Page 3: Spreadsheets

Cell Reference A Cell Reference is used to locate a cell in your Spreadsheet. Like coordinates.

Example: A1 B2 B3

Letters Represent the columnNumbers represent the row

Page 4: Spreadsheets

Entering Data To enter data simply click in the cell you

want to enter data into and type.

Page 5: Spreadsheets

Task One Copy the ingredients from the board and

enter them into a new Spreadsheet. Put the name of the ingredient in

column A, the Quantity that unit comes in in column B and the unit in column C and the cost in column D.

HINT: Do NOT type in a £ sign in front of your cost.

Page 6: Spreadsheets
Page 7: Spreadsheets

Simple Calculations Spreadsheets can carry out simple

calculations just like a calculator. The most simple including:

Add (+) Subtract (-) Divide (/) Multiply (*)

You always start a formula with an ‘=‘ E.g. =A1+B1

Page 8: Spreadsheets

ExampleIn the example below I have worked out the cost of one gram of basil. To do this I need to dived £1.89 by 25. The formula for this is:

=D2/B2

Page 9: Spreadsheets

Task Two Add a Cost Per g heading into column E. Using simple calculation formulas

calculate the cost for one gram of each ingredient.

Only type in formulas for the first three to get the hang of it.

Page 10: Spreadsheets

Fill Handle One of the reasons we use formulas

rather than typing in the numbers is so that we can apply the same calculation to lots of cells.

When you click on a cell you will notice a small black square in the bottom right of the box. Click and hold down on this square and drag down to your bottom ingredient.

Page 11: Spreadsheets

Example

Page 12: Spreadsheets

Relative Cell Reference You should now notice that the same

calculation has been copied down and all the letters in the formula have stayed the same but the numbers have changed to the number for the row they are in.

This is what is called a relative cell reference.

Page 13: Spreadsheets

Cell Formatting Your might have automatically

formatted your cost to currency and put a £ in front of your numbers.

If not you will need to format the cells. Formatting is your way of telling the

Spreadsheet what type of data is in the cell. i.e. Currency, Number, Text

Page 14: Spreadsheets

Example Select the cells

you want to format.

Then right click inside the blue box and click on Format Cells.

Page 15: Spreadsheets

Select Currency from the category list.

Pick the number of decimal places you want to be shown.

Set it to 2.

Page 16: Spreadsheets

Making it look good Now we have finished our simple

Spreadsheet we need to make it look neater.

Using Boarders and Aligning text we can make a table look clearer and more professional.

Page 17: Spreadsheets

Example Select the cells

you want to add a border to and then use the Borders drop down to select the style you want.

Page 18: Spreadsheets
Page 19: Spreadsheets

Naming Worksheets To help keep your work organized

rename the sheets you are using by right clicking on the tab.

Page 20: Spreadsheets

Formulas and Functions We are now going to create a more

complex Spreadsheet using functions.

A function is a pre programed calculation in the software that you only need to enter the name of to make it perform the calculation.

E.g. SUM, MIN, MAX

Page 21: Spreadsheets

What you will make

Page 22: Spreadsheets

Task Three Rename Sheet 2 as Recipes. Copy the smoothie recipes shown or

make your own. Each smoothie must have at least four ingredients.

tomato, bean and carrot smoothie     frozen blueberry smoothie  tomato juice 150 ml frozen blueberries 75 gcarrot juice 150 ml low fat vanilla yoghurt 120 mltabasco sauce 1 ml skimmed milk 120 mlworcestershire sauce 1 ml honey 40 g

basil 1 g ice cubes 10 gcanned borlotti beans 125 g

raspberry strawberry smoothie  

summer berry smoothie     strawberries 150 graspberries 100 g raspberries 150 gstrawberries 100 g pineapple juice 125 mlmilk 75 ml low fat natural yoghurt 250 mllemon juice 20 g ice cubes 10 g

Page 23: Spreadsheets
Page 24: Spreadsheets

Linking Sheets Together Not only can you use formulas to do

calculations with data on a sheet but you can also do it with information on different sheets.

To do this we need to add the name of the sheet in front of the cell reference.

Page 25: Spreadsheets

Example To work of the cost of the ingredients

used in each smoothie we need to multiply the amount used in the smoothie which is on the Recipes sheet by the cost of a single g of the ingredient which is on the Cost of Ingredients sheet.

Hint: Excel will do this automatically when you click in the cell you are using.

Page 26: Spreadsheets

=B2*'Cost of Ingredients'!E17

Because we are typing the formula in the Recipes sheet we do not need to add the sheet name for Recipes.

Page 27: Spreadsheets

Task Four Use a simple formula to calculate the

cost of each ingredient in the smoothie by multiplying the amount use by the cost for a gram.

Note: Using the auto fill handle wont work here! Why not?

Page 28: Spreadsheets

To make your layout the same as this you will need to merge (put together) the cells above the amount number and unit using the Merge and Centre Button

Page 29: Spreadsheets

SUM Function The SUM function will add a list of

numbers together. This is useful as it is easier than using individual cell references.

E.g. = A1 + A2 + A3 +A4 + A5 + A6 + A7 +

A8vs.

= SUM(A1:A8)

Page 30: Spreadsheets

Task Five Use the SUM function to add all of the

ingredients for each smoothie together.

You have four smoothie’s so you will need to write 4 SUM functions.

Page 31: Spreadsheets

Example

Page 32: Spreadsheets

Borders and Shading Just as we added boarders before now

add borders and shading to make the tables look better.

Page 33: Spreadsheets
Page 34: Spreadsheets

Task Six Now we you know how to use formulas and functions

make a summary table that will show much profit would be made if the numbers shown below for £2.80 each.

It should look like this.

Page 35: Spreadsheets
Page 36: Spreadsheets

User Input We now want to allow a user to input

information to make new smoothie’s.

To make sure the user enters the correct type of information we need to restrict what they can do. This is called validation.

Page 37: Spreadsheets

What you will make

Page 38: Spreadsheets

Task Seven Before we get started create the table

shown below on a new Sheets and rename the Sheet Smoothie Maker.

Page 39: Spreadsheets

Dropdown Boxes One great way of controlling a users

input is using drop boxes.

This is what we will use to allow the user to enter the ingredients they want to use in the new smoothie.

Page 40: Spreadsheets

Example

Select the cells you want to be drop boxes

Select the Data Tab and click on data validation.

Page 41: Spreadsheets

Select list from the allow menu.

Click on the Source and select the ingredients in your Spreadsheet.

Click Ok

Note: I have included a None ingredient

Page 42: Spreadsheets

Task Eight

Follow the steps to add dropdown boxes.

When you click in these Cells a drop down box should appear.

Page 43: Spreadsheets

Data Validation It would be impractical to use a

dropdown box when entering the amount as this could be anything number between 1 and 1000.

Another way of restricting a user's input is to only allow them to enter one type of data . i.e. Number, Date, Text

Page 44: Spreadsheets

Example Again select the cells you want to

validate. Click the Data Tab and click on data validation.

This time pick Whole Number from the list and enter a Minimum number and a Maximum.

Page 45: Spreadsheets

Before clicking ok. Click on the Input Message Tab and add a message to tell the user what they need to type in these cells.

Then click on the Error Alert Tab and add a message that will appear should the user enter something incorrect into the cell.

Page 46: Spreadsheets

Vlookup Now that the user can enter a ingredient

from a list and type the amount of that ingredient they want we need to calculate the cost.

Because the ingredient entered will not always be the same we cant use a normal cell reference to the ingredients cost.

What we need to do is LOOKUP the cost using the name of the ingredient

Page 47: Spreadsheets

Example

=VLOOKUP(B4,'Cost of Ingredients'!A2:E19,5)

1 2 3 4 5

The name youare looking up

The table you are looking forThe name in

The number of the column you want returned in that table

Page 48: Spreadsheets

=VLOOKUP(B4,'Cost of Ingredients'!A2:E19,5)*Sheet1!F4

Now you have looked up the cost for that ingredient you need to multiply it by the amount.

Try: What happens if you try and use the auto fill. Does it work? Why does it not work? If it looks like it works try changing one of your ingredients to basil.

Why is this not working?

Page 49: Spreadsheets

Absolute Cell Referencing

The reason it doesn’t work is because we have used relative cell references so as we dragged the auto fill down the position of where we were looking for our table moved.

As you can see the table has moved down and can no longer see some of the ingredients.

Page 50: Spreadsheets

Absolute Cell Referencing

What we need to do is lock some of the cell references so that they don’t change when using auto fill.

This is what absolute cell referencing is. Its really simple to do too. Just add a $ in front of

the letter and number you want to lock.

=VLOOKUP(B4,'Cost of Ingredients'!$A$2:$E$18,5)

These cells are not locked and these are lockedHint: If you select a cell reference and press F4 it will lock it

Page 51: Spreadsheets

We now have a table that allows the user to select different ingredients and there amounts and it will automatically tell you how much it cost to make that smoothie.

You will need to use a SUM function to add up all the costs.

Page 52: Spreadsheets

Task Ten You can easily link one cell to another by

typing = and then the cell reference. Put the cost of the smoothing in using =

E11Use data validation to only allow the user to enter. A decimal.

Page 53: Spreadsheets

IF Function An if function will return an answer IF

something is true.

We will use this to Return the Word “Profit” if the smoothie made is cheaper to make than the Price entered by the user.

It will return “Loss” if it is more expensive.

Page 54: Spreadsheets

Example

=IF(E15>E14,"Profit","Loss")This is the check:

Is E15 bigger than E14?If it is “Profit” will be shown

If it is not “Loss” will be shown

Page 55: Spreadsheets

Conditional Formatting

Conditional formatting allows us to change the colour and shading of cells depending on what data is in them.

This is useful to highlight information.

Page 56: Spreadsheets

ExampleTo apply conditional formatting select the cell you want to format and click on conditional formatting. We are going to use the highlight cells rule use text that contains.

Page 57: Spreadsheets

Type Profit into the box and select green fill from the list.

Then apply formatting again to the same cell but enter Loss into the box and Red Fill

Page 58: Spreadsheets

Now if a Profit is made it will appear light Green.

Now if a Loss is made it will appear light Red.

Page 59: Spreadsheets

Task Eleven Follow the steps to apply the conditional

formatting to the Profit/Loss cell.

Use a simple calculation to work out if money is made on the smoothie by taking the cost to make it away from the price.

Page 60: Spreadsheets

Task Twelve Apply conditional

formatting to highlight the cell green if the number is greater than 0 and red if it is less than 0.01.

Page 61: Spreadsheets

Protecting Cells To stop the user from changing the titles

and any formulas used we need to lock those cells.

The only cells we want unlocked are the ones where the users needs to input information.

Page 62: Spreadsheets

Example

Select the cells you want to be unlocked.

Right click and select Format Cells.

Page 63: Spreadsheets

Click on the protection tab and notice how the Locked option is already ticked.

This is because all cells are locked by default.

Un-tick the box and click ok.

Page 64: Spreadsheets

Even though all cells are locked by default this doesn't do anything until we protect the worksheet.

Under the Review tab select Protect Sheet.

Un-tick the Select locked cells option

Click OK

Page 65: Spreadsheets

Now the user can only click on and enter information into our unlocked cells.

Page 66: Spreadsheets

You have now covered all of the skills and features need in your Spreadsheet. Click on the images below to return to how to make that sheet.

Cost of Ingredients Recipes Smoothie Maker