Skip to main content

Copying and Pasting in Excel (continued)

-  Your spreadsheet from the previous part of the lesson should look like the one below.
What your spreedsheet should look like
For the Number column, you can Copy and Paste the figures from the Individual Totals column.
  • So highlight the four totals in the J column
  • Click on Edit from the menu bar
  • Click on copy
  • You get the marching ants again around your highlighted cells
The marching ants
  • Now click inside cell C15 under the Numbers heading
  • Hit the Return key on your keyboard to paste the numbers to the new location
  • Something odd happens. Your spreadsheet will look like the one below:
The #REF  comments in a cell
So what went wrong? Why did we get all those #REF comments in the cells?
The problem is that there's a formula underneath the numbers we copied. And Excel tried to paste the formulas as well as the numbers. But the formulas are for the J column, and the cell references belong to that column. They don't belong in the C column. So Excel gives you the #REF error comments.
To solve the problem, do this:
  • Click on Edit from the menu bar. From the drop down menu, click on "Undo Paste"
  • Highlight the four cells in the J column again
  • Click on Edit from the menu bar. From the drop down menu, click on "Copy"
  • Click inside cell C15 and highlight the four cells down to C18
  • Click with your right hand mouse button anywhere in the highlighted area. A menu pops up, as in the picture below:
Paste Special in Excel
  • When you see the pop up menu, click on Paste Special with your left hand mouse button
  • A dialogue box pops up - Paste Special
  • Right at the top of the dialogue box there will be a black circle next to the word "All"
  • Click the word "Values"
  • Then click the OK button at the bottom
The Paste Special dialogue box
When you click the OK button, only the values from the J column cells will be pasted, and not the formulas underneath them.
So your spreadsheet should now look like this:
The figures Pasted
With only four values to copy and paste, it's probably easier just to type then in again! But if you have lots of values to copy and paste, then Paste Special comes in really handy.

OK, the next thing to do is to work out the sums for the Cost column. We need another formula. But only one, because we can Auto Fill the others. But we need to multiply, and we'll do that in the next part.

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...