Spreadsheets
-
Upload
great-baddow-high-school-media -
Category
Documents
-
view
392 -
download
0
Transcript of Spreadsheets
![Page 1: Spreadsheets](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/1.jpg)
SpreadsheetsSkills Builder
![Page 2: Spreadsheets](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/2.jpg)
Creating A Simple Spreadsheet – What you will make
![Page 3: Spreadsheets](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/3.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/4.jpg)
Entering Data To enter data simply click in the cell you
want to enter data into and type.
![Page 5: Spreadsheets](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/5.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/6.jpg)
![Page 7: Spreadsheets](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/7.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/8.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/9.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/10.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/11.jpg)
Example
![Page 12: Spreadsheets](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/12.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/13.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/14.jpg)
Example Select the cells
you want to format.
Then right click inside the blue box and click on Format Cells.
![Page 15: Spreadsheets](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/15.jpg)
Select Currency from the category list.
Pick the number of decimal places you want to be shown.
Set it to 2.
![Page 16: Spreadsheets](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/16.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/17.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/18.jpg)
![Page 19: Spreadsheets](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/19.jpg)
Naming Worksheets To help keep your work organized
rename the sheets you are using by right clicking on the tab.
![Page 20: Spreadsheets](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/20.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/21.jpg)
What you will make
![Page 22: Spreadsheets](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/22.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/23.jpg)
![Page 24: Spreadsheets](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/24.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/25.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/26.jpg)
=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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/27.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/28.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/29.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/30.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/31.jpg)
Example
![Page 32: Spreadsheets](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/32.jpg)
Borders and Shading Just as we added boarders before now
add borders and shading to make the tables look better.
![Page 33: Spreadsheets](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/33.jpg)
![Page 34: Spreadsheets](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/34.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/35.jpg)
![Page 36: Spreadsheets](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/36.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/37.jpg)
What you will make
![Page 38: Spreadsheets](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/38.jpg)
Task Seven Before we get started create the table
shown below on a new Sheets and rename the Sheet Smoothie Maker.
![Page 39: Spreadsheets](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/39.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/40.jpg)
Example
Select the cells you want to be drop boxes
Select the Data Tab and click on data validation.
![Page 41: Spreadsheets](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/41.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/42.jpg)
Task Eight
Follow the steps to add dropdown boxes.
When you click in these Cells a drop down box should appear.
![Page 43: Spreadsheets](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/43.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/44.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/45.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/46.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/47.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/48.jpg)
=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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/49.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/50.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/51.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/52.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/53.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/54.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/55.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/56.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/57.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/58.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/59.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/60.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/61.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/62.jpg)
Example
Select the cells you want to be unlocked.
Right click and select Format Cells.
![Page 63: Spreadsheets](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/63.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/64.jpg)
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](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/65.jpg)
Now the user can only click on and enter information into our unlocked cells.
![Page 66: Spreadsheets](https://reader035.fdocuments.us/reader035/viewer/2022062220/555a1d9dd8b42a7d498b55f3/html5/thumbnails/66.jpg)
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