Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Change relative to absolute references in a block of cells

(Please note that I've worked around the issue below by changing every cell
manually, so this isn't an urgent request - but I imangine I may need a
better answer in future, and it's possible other people might also be
grateful if anyone has a solution.)

I have a block of cells containing a variety of unrelated formulae. I want
to change one element of each formula from a relative to an absolute
reference.

I tried highlighting all the cells, clicking in the formula bar and pressing
f4 (three times, to make column reference absolute and leave the row
reference relative) but this changes only the first cell in the block.

If the formulae were in sequence I could change one and copy it to the other
cells, but since they are all different that won't work. Does anyone know how
to change the references throughout a selecteed group of cells?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 81
Default Change relative to absolute references in a block of cells

Hi Giles,

Gord Dibben answered something similar on the 30th Oct 2008, if you go to
page 211 and look for the thread titled "Convert selected formula references
from relative to absolute" it should answer your question.
--
Regards
Warren
Excel Novice
Addiewell, Scotland.

If this helps please click the Yes button.


"Giles" wrote:

(Please note that I've worked around the issue below by changing every cell
manually, so this isn't an urgent request - but I imangine I may need a
better answer in future, and it's possible other people might also be
grateful if anyone has a solution.)

I have a block of cells containing a variety of unrelated formulae. I want
to change one element of each formula from a relative to an absolute
reference.

I tried highlighting all the cells, clicking in the formula bar and pressing
f4 (three times, to make column reference absolute and leave the row
reference relative) but this changes only the first cell in the block.

If the formulae were in sequence I could change one and copy it to the other
cells, but since they are all different that won't work. Does anyone know how
to change the references throughout a selecteed group of cells?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 133
Default Change relative to absolute references in a block of cells

Hi
Try the following macro :

Sub test()
Dim c As Range
For Each c In Selection
If c.HasFormula = True Then
c.Formula = Application.ConvertFormula(c.Formula, xlA1, , xlA1)
End If
Next c
End Sub

HTH
Daniel

Hi Giles,

Gord Dibben answered something similar on the 30th Oct 2008, if you go to
page 211 and look for the thread titled "Convert selected formula references
from relative to absolute" it should answer your question.
--
Regards
Warren
Excel Novice
Addiewell, Scotland.

If this helps please click the Yes button.


"Giles" wrote:

(Please note that I've worked around the issue below by changing every cell
manually, so this isn't an urgent request - but I imangine I may need a
better answer in future, and it's possible other people might also be
grateful if anyone has a solution.)

I have a block of cells containing a variety of unrelated formulae. I want
to change one element of each formula from a relative to an absolute
reference.

I tried highlighting all the cells, clicking in the formula bar and pressing
f4 (three times, to make column reference absolute and leave the row
reference relative) but this changes only the first cell in the block.

If the formulae were in sequence I could change one and copy it to the other
cells, but since they are all different that won't work. Does anyone know
how to change the references throughout a selecteed group of cells?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Change relative to absolute references in a block of cells

Warren, Daniel,

Thanks, both, for your replies - just what I needed (and astonishingly fast,
too).

Giles.

"Daniel.C" wrote:

Hi
Try the following macro :

Sub test()
Dim c As Range
For Each c In Selection
If c.HasFormula = True Then
c.Formula = Application.ConvertFormula(c.Formula, xlA1, , xlA1)
End If
Next c
End Sub

HTH
Daniel

Hi Giles,

Gord Dibben answered something similar on the 30th Oct 2008, if you go to
page 211 and look for the thread titled "Convert selected formula references
from relative to absolute" it should answer your question.
--
Regards
Warren
Excel Novice
Addiewell, Scotland.

If this helps please click the Yes button.


"Giles" wrote:

(Please note that I've worked around the issue below by changing every cell
manually, so this isn't an urgent request - but I imangine I may need a
better answer in future, and it's possible other people might also be
grateful if anyone has a solution.)

I have a block of cells containing a variety of unrelated formulae. I want
to change one element of each formula from a relative to an absolute
reference.

I tried highlighting all the cells, clicking in the formula bar and pressing
f4 (three times, to make column reference absolute and leave the row
reference relative) but this changes only the first cell in the block.

If the formulae were in sequence I could change one and copy it to the other
cells, but since they are all different that won't work. Does anyone know
how to change the references throughout a selecteed group of cells?




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Something other than Absolute, Relative or Mixed references veryeavy Excel Discussion (Misc queries) 16 January 7th 09 12:46 AM
Help with converting a block of cells with Absolute and mixed references to relative references Vulcan Excel Worksheet Functions 3 December 13th 07 11:43 PM
change a long column of references from relative to absolute ams228 New Users to Excel 1 January 17th 07 10:17 PM
Relative, absolute & mixed references in many cells FTM Excel Worksheet Functions 11 June 19th 06 09:38 AM
How do I change an Excel range of cells from relative to absolute. Jrhenk Excel Worksheet Functions 2 November 15th 04 10:55 PM


All times are GMT +1. The time now is 02:19 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"