PC Review


Reply
Thread Tools Rate Thread

Copy without relative formulas changing

 
 
murphyobrien@gmail.com
Guest
Posts: n/a
 
      12th May 2006
I am looking for a way to copy a range of cells somewhere else without
the formula references changing. For instance I want to select B1:B3
and copy to C1:C3. Say they contain the formulas =A1+$A$1, =A2+$A$1,
A3+$A$1 but I want C1:C3 to still contain =A1+$A$1, =A2+$A$1,
=A3+$A$1.

I don't want to change from relative to absolute.

The only ways I have found is

1) Create a new sheet, Copy B1:B3 into the new sheet at the same
position (B1:B3). Then select the cells in the new sheet and move them
(with drag and drop) to C1:C3, then copy them to the original sheet
into C1:C3.

2) There is another trick where you replace the = in the formula so
Excel is fooled into not changing it, but that is even more labor
intensive.

Anyone know a better way to do this?

Murphy.

 
Reply With Quote
 
 
 
 
Niek Otten
Guest
Posts: n/a
 
      12th May 2006
Hi Murphy,

Change your formula to =$A1+$A$1.
That will change the row number when copied down, but will retain the column letter when copied to the right

--
Kind regards,

Niek Otten

<(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
|I am looking for a way to copy a range of cells somewhere else without
| the formula references changing. For instance I want to select B1:B3
| and copy to C1:C3. Say they contain the formulas =A1+$A$1, =A2+$A$1,
| A3+$A$1 but I want C1:C3 to still contain =A1+$A$1, =A2+$A$1,
| =A3+$A$1.
|
| I don't want to change from relative to absolute.
|
| The only ways I have found is
|
| 1) Create a new sheet, Copy B1:B3 into the new sheet at the same
| position (B1:B3). Then select the cells in the new sheet and move them
| (with drag and drop) to C1:C3, then copy them to the original sheet
| into C1:C3.
|
| 2) There is another trick where you replace the = in the formula so
| Excel is fooled into not changing it, but that is even more labor
| intensive.
|
| Anyone know a better way to do this?
|
| Murphy.
|


 
Reply With Quote
 
murphyobrien@gmail.com
Guest
Posts: n/a
 
      12th May 2006
That works in my simplified example, but in reality I don't want
anyabsolute references. Anyone else?

Murphy

 
Reply With Quote
 
MartinW
Guest
Posts: n/a
 
      12th May 2006
Are you duplicating them or just moving them?
If the latter just use cut instead of copy.


 
Reply With Quote
 
murphyobrien@gmail.com
Guest
Posts: n/a
 
      12th May 2006
Duplicating, so I want the equivalent of CUT but leaving the originals.

Murphy

 
Reply With Quote
 
Ardus Petus
Guest
Posts: n/a
 
      12th May 2006
Change your formulae to:
=INDIRECT("A1")+$A$1

Not optimized, but answers your needs.

HTH
--
AP

<(E-Mail Removed)> a écrit dans le message de news:
(E-Mail Removed)...
>I am looking for a way to copy a range of cells somewhere else without
> the formula references changing. For instance I want to select B1:B3
> and copy to C1:C3. Say they contain the formulas =A1+$A$1, =A2+$A$1,
> A3+$A$1 but I want C1:C3 to still contain =A1+$A$1, =A2+$A$1,
> =A3+$A$1.
>
> I don't want to change from relative to absolute.
>
> The only ways I have found is
>
> 1) Create a new sheet, Copy B1:B3 into the new sheet at the same
> position (B1:B3). Then select the cells in the new sheet and move them
> (with drag and drop) to C1:C3, then copy them to the original sheet
> into C1:C3.
>
> 2) There is another trick where you replace the = in the formula so
> Excel is fooled into not changing it, but that is even more labor
> intensive.
>
> Anyone know a better way to do this?
>
> Murphy.
>



 
Reply With Quote
 
Bernie Deitrick
Guest
Posts: n/a
 
      12th May 2006
Copy these to a codemodule. Then, select the cells, run FormulaToText, copy the cells, paste them,
and then select all the cells and run TransformToFormula.

HTH,
Bernie
MS Excel MVP

Sub FormulaToText()
TurnOff
Dim myCell As Range
For Each myCell In Selection
myCell.Formula = "'" & myCell.Formula
Next myCell
TurnOn
End Sub

Sub TransformToFormula()
Dim myCell As Range
TurnOff
On Error Resume Next
For Each myCell In Selection
myCell.Formula = myCell.Text
Next myCell
TurnOn
End Sub


Sub TurnOff()
With Application
.ScreenUpdating = False
.Calculation = xlCalculationManual
.EnableEvents = False
End With

End Sub
Sub TurnOn()
With Application
.ScreenUpdating = True
.Calculation = xlCalculationAutomatic
.EnableEvents = True
End With

End Sub

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Duplicating, so I want the equivalent of CUT but leaving the originals.
>
> Murphy
>



 
Reply With Quote
 
MartinW
Guest
Posts: n/a
 
      12th May 2006
OK to move the actual formula I think you're pretty much
stuck with absolutes as Niek said, but as a workaround
you could go back to basics and just have C1=B1,C2=B2,
C3=B3 etc

HTH
Martin


 
Reply With Quote
 
vandenberg p
Guest
Posts: n/a
 
      13th May 2006
Hello:

Twenty years or so ago I used a spreadsheet under DOS called Supercalc.
This product had the option that when you copied and pasted you could choose to
paste in one of three ways: relative, absolute or ask. The ask option
allowed you to choose how each individual cell address would be pasted.

I have never understood why at least the option to paste absolute, (with
out adding $'s) is not part of Paste Special in Excel.

Pieter Vandenberg

(E-Mail Removed) wrote:
: I am looking for a way to copy a range of cells somewhere else without
: the formula references changing. For instance I want to select B1:B3
: and copy to C1:C3. Say they contain the formulas =A1+$A$1, =A2+$A$1,
: A3+$A$1 but I want C1:C3 to still contain =A1+$A$1, =A2+$A$1,
: =A3+$A$1.

: I don't want to change from relative to absolute.

: The only ways I have found is

: 1) Create a new sheet, Copy B1:B3 into the new sheet at the same
: position (B1:B3). Then select the cells in the new sheet and move them
: (with drag and drop) to C1:C3, then copy them to the original sheet
: into C1:C3.

: 2) There is another trick where you replace the = in the formula so
: Excel is fooled into not changing it, but that is even more labor
: intensive.

: Anyone know a better way to do this?

: Murphy.

 
Reply With Quote
 
=?Utf-8?B?Um9uIENvZGVycmU=?=
Guest
Posts: n/a
 
      13th May 2006
Since you are inclined to replace = in the formula with a character, perhaps
this:

Using your posted example:

Select A1:A3
<edit><insert><row>
(that pushes everything down 3 rows)

Copy B4:B6 to B1:B3
Move B1:B3 to C1:C3

Copy A4:B6 up to A1:B3
Clear the contents of A4:B6

Is that something you can work with?

***********
Regards,
Ron

XL2002, WinXP


"(E-Mail Removed)" wrote:

> I am looking for a way to copy a range of cells somewhere else without
> the formula references changing. For instance I want to select B1:B3
> and copy to C1:C3. Say they contain the formulas =A1+$A$1, =A2+$A$1,
> A3+$A$1 but I want C1:C3 to still contain =A1+$A$1, =A2+$A$1,
> =A3+$A$1.
>
> I don't want to change from relative to absolute.
>
> The only ways I have found is
>
> 1) Create a new sheet, Copy B1:B3 into the new sheet at the same
> position (B1:B3). Then select the cells in the new sheet and move them
> (with drag and drop) to C1:C3, then copy them to the original sheet
> into C1:C3.
>
> 2) There is another trick where you replace the = in the formula so
> Excel is fooled into not changing it, but that is even more labor
> intensive.
>
> Anyone know a better way to do this?
>
> Murphy.
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i copy values between tables using relative formulas ther00k Microsoft Excel Misc 1 21st Dec 2007 10:23 AM
How to copy an array without changing relative cell refferences? Dmitry Microsoft Excel Discussion 12 20th Jun 2006 03:07 PM
How to copy an array without changing relative cell references? Dmitry Microsoft Excel Discussion 0 19th Jun 2006 04:08 PM
Changing formulas from relative to absolute =?Utf-8?B?QXhlbA==?= Microsoft Excel Misc 4 14th Jun 2006 10:13 PM
Changing the way relative references in formulas are adjusted when copied Jana L. Microsoft Excel Misc 0 22nd Sep 2003 06:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:09 PM.