When you copy and paste a formula with absolute cell reference Excel substitutes new reference to reflect the new formula location?

In Excel (2007), when cells that contain absolute references (for example: $A$3) are copied, the absolute reference remains the same. This is by design, and the reason of using absolute references.

Problem -- However, sometimes I want copy a block of cells (that contain absolute and probably also relative references), and paste them with the absolute references shifted correctly for the new block. That is, I want the absolute references to behave like relative references when copying, but still be absolute references in the final copied result.

Example -- In the example screenshot, I want to copy the block A2:B3 downwards. When copied, I basically want to have the formula in B3 (=$A$3) changed so that it refers to the cell to the left of it, for example becoming =$A$11 when copied to B11, as in the bottom part of the screenshot.

Workaround -- I have found a workaround to do this, by:

  1. making a copy of the entire worksheet (ctrl-drag worksheet tab to new location),
  2. then cutting (ctrl-X) the relevant block of cells from the new worksheet
  3. pasting (ctrl-v) into the original worksheet.
  4. finally deleting the new, temporary worksheet (right-click worksheet tab and delete).

Question -- But this is too many actions for my taste. Is there an easier way (perhaps some Paste Special hidden option)?

by Karyn Stille

Excel uses two types of cell references to create formulas.  Each has its own purpose.  Read on to determine which type of cell reference to use for your formula. 

Relative Cell References

This is the most widely used type of cell reference in formulas.  Relative cell references are basic cell references that adjust and change when copied or when using AutoFill.

Example:

=SUM(B5:B8), as shown below, changes to =SUM(C5:C8) when copied across to the next cell.

Absolute Cell References

Situations arise in which the cell reference must remain the same when copied or when using AutoFill.  Dollar signs are used to hold a column and/or row reference constant.

Example:

In the example below, when calculating commissions for sales staff, you would not want cell B10 to change when copying the formula down.  You want both the column and the row to remain the same to refer to that exact cell.  By using $B$10 in the formula, neither changes when copied.

A more complicated example:

Let's pretend that you need to calculate the prices of items in stock with two different price discounts. Take a look at the worksheet below.

Examine the formula in cell E4. By making the first cell reference $C4, you keep the column from changing when copied across, but allow the row to change when copying down to accommodate the prices of the different items going down.  By making the last cell reference A$12, you keep the row number from changing when copied down, but allow the column to change and reflect discount B when copied across.  Confused?  Check out the graphics below and the cell results.

Copied Across

Copied Down

Now, you might be thinking, why not just use 10% and 15% in the actual formulas?  Wouldn't that be easier? Yes, if you are sure the discount percentages will never change - which is highly unlikely.  It's more likely that eventually those percentages will need to be adjusted.  By referencing the cells containing 10% and 15% and not the actual numbers, when the percentage changes all you need to do is change the percentage one time in cell A12 and/or B12 instead of rebuilding all of your formulas. Excel would automatically update the discount prices to reflect your discount percentage change.

Summary of absolute cell reference uses:

$A1 Allows the row reference to change, but not the column reference.
A$1 Allows the column reference to change, but not the row reference.
$A$1 Allows neither the column nor the row reference to change.

There is a shortcut for placing absolute cell references in your formulas!

When you are typing your formula, after you type a cell reference - press the F4 key.  Excel automatically makes the cell reference absolute!  By continuing to press F4, Excel will cycle through all of the absolute reference possibilities.  For example, in the first absolute cell reference formula in this tutorial, =B4*$B$10, I could have typed, =B4*B10, then pressed the F4 key to change B10 to $B$10.  Continuing to press F4 would have resulted in B$10, then $B10, and finally B10. Pressing F4 changes only the cell reference directly to the left of your insertion point.

I hope this tutorial has made these cell reference types "absolutely" clear! 

 

Microsoft Office Tutorials
//tutorials.esmartweb.com

Which if the following is true when you copy and paste formulas using the fill handle?

Which of the following is true when you copy and paste formulas using the fill handle? The AutoFill Options button lets you fill cells with specific elements of the copied cell.

When used in formulas names become relative cell references by default?

By default, all cell references are relative references. When copied across multiple cells, they change based on the relative position of rows and columns. For example, if you copy the formula =A1+B1 from row 1 to row 2, the formula will become =A2+B2.

When you change a name Excel automatically updates the blank in any formulas that reference it?

Excel includes a special group of functions to modify text. When you change a name, Excel automatically updates the name in any formula that references that name. To move or copy more than one non-consecutive worksheet, press _______ on the keyboard and click the worksheets you want to copy or move.

Which of the following cell addresses will change when it is copied?

Which of the following cell addresses will change when it is copied? The cell address F2 is a relative address and will change when copied.

Toplist

Neuester Beitrag

Stichworte