Upcoming SlideShare
×

825 views

Published on

0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

• Be the first to like this

Views
Total views
825
On SlideShare
0
From Embeds
0
Number of Embeds
134
Actions
Shares
0
20
0
Likes
0
Embeds 0
No embeds

No notes for slide

2. 2. Creating A Simple Spreadsheet – What you will make
3. 3. Cell ReferenceA Cell Reference is used to locate a cell inyour Spreadsheet. Like coordinates.Example: A1 B2 B3Letters Represent the columnNumbers represent the row
4. 4. Entering Data To enter data simply click in the cell you want to enter data into and type.
5. 5. 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 yourcost.
6. 6. 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
7. 7. ExampleIn the example below I have worked out thecost of one gram of basil. To do this I need todived £1.89 by 25. The formula for this is: =D2/B2
8. 8. 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.
9. 9. 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 youwill notice a small black squarein the bottom right of the box.Click and hold down on this squareand drag down to your bottomingredient.
10. 10. Example
11. 11. 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.
12. 12. 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
13. 13. Example Select the cells you want to format. Then right click inside the blue box and click on Format Cells.
14. 14.  SelectCurrency from the category list. Pick the number of decimal places you want to be shown. Set it to 2.
15. 15. 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.
16. 16.  Select the cells you want to addExample a border to and then use the Borders drop down to select the style you want.
17. 17. Naming Worksheets Tohelp keep your work organized rename the sheets you are using by right clicking on the tab.
18. 18. Formulas and Functions Weare 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
19. 19. What you will make
20. 20. 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 smoothietomato 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 gbasil 1 g ice cubes 10 gcanned borlotti beans 125 g raspberry strawberry smoothiesummer 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
21. 21. Linking Sheets Together Notonly can you use formulas to do calculations with data on a sheet but you can also do it with information on different sheets. Todo this we need to add the name of the sheet in front of the cell reference.
22. 22. Example Towork 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 whenyou click in the cell you are using.
23. 23. =B2*Cost of Ingredients!E17 Because we are typing the formula in the Recipes sheetwe do not need to add the sheet name for Recipes.
24. 24. Task Four Usea 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 workhere! Why not?
25. 25. To make your layout the same as this you will need to merge (puttogether) the cells above the amount number and unit using theMerge and Centre Button
26. 26. SUM Function TheSUM 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 + A8 vs. = SUM(A1:A8)
27. 27. Task Five Usethe SUM function to add all of the ingredients for each smoothie together. Youhave four smoothie‟s so you will need to write 4 SUM functions.
28. 28. Example
30. 30. 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.
31. 31. User Input We now want to allow a user to input information to make new smoothie‟s. Tomake sure the user enters the correct type of information we need to restrict what they can do. This is called validation.
32. 32. What you will make
33. 33. Task Seven Before we get started create the table shown below on a new Sheets and rename the Sheet Smoothie Maker.
34. 34. Dropdown Boxes One great way of controlling a users input is using drop boxes. Thisis what we will use to allow the user to enter the ingredients they want to use in the new smoothie.
35. 35. Example Select the cells you want to be drop boxes Select the Data Tab and click on data validation.
36. 36.  Select list from the allow menu. Click on the Source and select the ingredients in your Spreadsheet. Click OkNote: I have included a None ingredient
37. 37. Task Eight Follow the steps to add dropdown boxes. When you click in these Cells a drop down box should appear.
38. 38. 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 users input is to only allow them to enter one type of data . i.e. Number, Date, Text
39. 39. Example  Again select the cells you want to validate. Click the Data Tab and click on data validation. Thistime pick Whole Number from the list and enter a Minimum number and a Maximum.
40. 40.  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.
41. 41. 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
42. 42. Example , =VLOOKUP(B4,Cost of Ingredients!A2:E19 5) The table you The numberThe name you of the column are looking forare looking up you want returned The name in in that table 1 2 3 4 5
43. 43. =VLOOKUP(B4,Cost of Ingredients!A2:E19,5)*Sheet1!F4Now you have looked up the cost for that ingredient youneed to multiply it by the amount.Try: What happens if you try and use the auto fill. Does itwork? Why does it not work? If it looks like it works trychanging one of your ingredients to basil. Why is this not working?
44. 44. 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.
45. 45. 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 itwill lock it
46. 46.  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.
47. 47. 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 = E11 Use data validation to only allow the user to enter. A decimal.
48. 48. 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.
49. 49. Example =IF(E15>E14,"Profit","Loss")This is the check: If it is “Profit” If it is not “Loss”Is E15 bigger than E14? will be shown will be shown
50. 50. Conditional Formatting Conditionalformatting allows us to change the colour and shading of cells depending on what data is in them. This is useful to highlight information.
51. 51. ExampleTo apply conditional formatting select thecell you want to format and click onconditional formatting. We are going to usethe highlight cells rule use text that contains.
52. 52.  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
53. 53. Now if a Profit ismade it will appearlight Green. Now if a Loss is made it will appear light Red.
54. 54. 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.
55. 55. 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.
56. 56. 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.
57. 57. Example  Select the cells you want to be unlocked.  Right click and select Format Cells.
58. 58.  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.
59. 59.  Eventhough all cells are locked by default this doesnt do anything until we protect the worksheet. Under the Review tab select Protect Sheet. Un-tick the Select locked cells option Click OK
60. 60.  Now the user can only click on and enter information into our unlocked cells.
61. 61. 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