Skip to main content

Entering Formula in Excel (continued)

 - In the last part of this lesson, you saw how to add up a column of numbers using the Sum function in Excel. We left the lesson by asking how we could reduce the amount of typing we had to do. We saw that the answer was to use a colon (:)
We can use a colon in our spreadsheet. So do the following:
  • Click inside cell B9
  • Click cell B9 with your Right mouse button
  • A menu pops up, like the one below
Clearing a formula from a cell
  • Locate "Clear Contents" and then click on it with your left mouse button
  • The formula disappears from your formula bar
  • With Cell B9 still highlighted, click inside the formula bar
  • Type in the following =Sum(B4:B7)
  • Your spreadsheet will look like the one below
What your spreadsheet should look like
When your formula bar looks like the one above, press the return key on your keyboard. Excels again understands what you want to do, and enters the correct sum in cell B9.
So, you should have the number 17 in cell B9. We'll now use an Auto Fill to add up the rest of the days of the week.
  • Move your cursor to the bottom right of cell B9
  • Your cursor will turn into a narrow black cross, like in the image below
The Autofill mouse icon
  • When you see the black cross, hold down your left mouse button
  • Keep it held down, and then drag your mouse across to cell H9, as in the image below
Autofill
When your cursor reaches cell H9, let go of your left mouse button. Excel will Auto Fill the formula from cell B9. Because the cell B9 added up cells in the B column, Excel will assume that that is what you want to do with the others columns as well: add them up. So it does the sums for you.
Your spreadsheet should now look like the one below:
Using Autofill to complete the formulas
Notice that the cell H9 is highlighted. The formula in the formula bar reads =Sum(H4:H7). This means "Add up everything in the cells H4 to H7 and pop the answer in the H9 cell."
But we got all that just by using the Auto Fill. We only had to enter one formula for the cell B9 and Excel did the rest.
If you click in any of the cells on row 9 (Click on cell F9, for example), you'll see the formula bar change, with the correct formulas entered for each cell.

Save your work, and remember the location of your file. That's because we're going to be using the same spreadsheet in the next section of the course - How to use the simple mathematical operators in an Excel Spreadsheet.

Comments

Popular posts from this blog

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....
Visual Basic .NET Contents Page   -This computer course is an introduction to Visual Basic.NET programming for beginners. This course assumes that you have no programming experience whatsoever. It's a lot easier than you think, and can be a very rewarding hobby! You don't need to buy any software for this course! You can use the new FREE Visual Basic Express Edition from Microsoft. To see which version you need, click below: Getting the free Visual Studio Express - Which version do I need? > VB .NET One - Getting Started   1. Getting started with VB.NET 2. Visual Basic .NET Forms 3. Adding Controls using the Toolbox Home Page 4. Adding a Textbox to the Form 5. Visual Basic .NET and Properties 6. The Text Property 7. Adding a splash of colour 8. Saving your work 9. Create a New Project >   VB .NET Two - Write your first .NET code   1. What is a Variable? 2. Add a coding button to the Form 3. Writing y...
The Excel SumIF Function  - Another useful Excel function is SumIF. This function is like CountIf, except it adds one more argument: SUMIF( range ,  criteria ,  sum_range ) Range and criteria are the same as with  CountIF  - the range of cells to search, and what you want Excel to look for. The Sum_Range is like range, but it searches a new range of cells. To clarify all that, here's what we'll use SumIF for. (Start a new spreadsheet for this.) Five people have ordered goods from us. Some have paid us, but some haven't. The five people are Elisa, Kelly, Steven, Euan, and Holly. We'll use SumIF to calculate how much in total has been paid to us, and how much is still owed. So in Column A, enter the names: In Column B enter how much each person owes: In Column C, enter TRUE or FALSE values. TRUE means they have paid up, and FALSE means they haven't: Add two more labels: Total Paid, and Still Owed. Your spreadsheet should look something li...