Skip to main content

Finishing the Spreadsheet

 - To finish off the Excel spreadsheet you have been working on in this section, we'll add figures for the weekly cost and yearly costs of the chocolate addiction. We'll use AutoFill and SUM.

The bottom of our spreadsheet looks like this:
Our Excel 2007 Spreadsheet
We now have how much each individual chocolate bar is costing us each week. The next things to do is to add them all up to arrive at a weekly figure for all chocolate bars.
To calculate the weekly cost of the chocolate addiction, you can use the Excel SUM function. But there's an even easier way - use Auto Fill and SUM. Try this.
  • Click inside cell F20
  • Click inside the Formula bar at the top and enter = SU
  • When you see the drop down list of functions, double click SUM
  • Now click inside D15 of you spreadsheet
  • Excel will enter the Cell for you in the formula bar:
Using SUM with AutoFill
  • Notice the marching ants around Cell D15, and that there is a blue border with blue squares
  • Hold your mouse over the bottom right blue square until your cursor changes to a double-headed arrow:
The cursor is now a double-headed arrow
  • Now hold your left mouse button down and drag down to cell D18
  • Let go and Excel will enter the rest of the formula for you:
Excel 2007 has added the formula
Press the enter key on your keyboard to finish off the rest of the formula:
The formula in cell F20
If you did that correctly, you should have a figure of 26.18 in cell F20. That's how much our chocolate bar addiction is costing each week.
To work out how much the addiction is costing every year, we can multiply the weekly cost of the addiction by 52 (the number of weeks in a year). First, enter some suitable text in cell A21, something like "Annual Cost of Chocolate addiction". The answer can then go in cell F21, under the weekly cost.
  • Click into cell F21 on your spreadsheet
  • Then click into the formula bar at the top
  • Enter the following:
= F20 * 52
Hit the enter key on your keyboard, and the correct answer should appear.
Cell F20 is where the weekly total is. Excel already knows what formula is inside of this cell, so only the cell reference is needed. After the multiply symbol, we then only need to enter the number of weeks in a year.
The answer you should have in cell F21 is 1, 361.36. You spreadsheet should look like ours below:
An Annual total has been added to cell F21
The formula we just used mixes a cell reference with a number. Excel doesn't mind you doing it this way, just as long as there's something to multiply. So you can do things this way:
= 26.18 * 52
Or this way:
= F20 * 52
If you have the number 52 typed into say cell H20, you could just do this:
= F20 * H20
Whichever way you choose, though, just remember to use the asterisk to multiply things.

In the next tutorial, you'll learn how to add a Comment to a Cell in Excel .

Comments

Popular posts from this blog

How to change your Windows XP Desktop Wallpaper - Wallpapers are images that appear in the background on your Desktop, behind all your icons. To change your Desktop wallpaper, do the following: Click anywhere on the Desktop that is not an icon, but click once with your right hand mouse button A menu pops up. The one below Click on  Properties , once with your Left mouse button The following dialogue box pops up This is the Display Properties dialogue box. As you can see, there are tab strips for Themes, Desktop, Screensaver, Appearance, and Settings. Click on the Background tab strip and the dialogue box will change to this one: There is a list of wallpapers we can use. Click on one, and you get a preview of what it will look like. Scroll down to see more wallpapers. If you're satisfied, click the OK button to set your wallpaper. You can use your own images. You are not limited to the ones on the list. If you have an image somewhere on your compute...
Beginners PHP  -This is a complete and free PHP programming course for beginners. It's assumed that you already have some HTML skills. But you don't need to be a guru, by any means. If you need a refresher on HTML, then click the link for the Web Design course on the left of this page. Everything you need to get started with this PHP course is set out in section one below. Good luck! Home Page > PHP Section One - An Introduction to PHP 1. What is PHP and Why do I need it? 2. What you need to get started 3. Installing and testing Wampserver 4. Troubleshooting > PHP Two - Getting Started With Variables 1. What is a Variable? 2. Putting text into variables 3. Variables - some practice 4. More variable practice 5. Joining direct text and variable data 6. Adding up in PHP 7. Subtraction 8. Multiplication 9. Division 10. Floating point numbers > PHP Three - Conditional Logic 1. If Statements 2. Using If Statements 3....