Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Axel
 
Posts: n/a
Default Changing formulas from relative to absolute

I have many already existing formulas in a sheet, now I'm looking for an easy
way to change all these formulas from relative to absolute.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Don Guillett
 
Posts: n/a
Default Changing formulas from relative to absolute

Have a look in vba help index for CONVERTFORMULA

--
Don Guillett
SalesAid Software

"Axel" wrote in message
...
I have many already existing formulas in a sheet, now I'm looking for an
easy
way to change all these formulas from relative to absolute.



  #3   Report Post  
Posted to microsoft.public.excel.misc
Pete_UK
 
Posts: n/a
Default Changing formulas from relative to absolute

You can use Find and Replace, but you might need to apply it several
times. Many cell references will be like this in a formula:

=function(A1)

so you can search for "(A" (no quotes) and replace with "($A$" (no
quotes).

Often you have cell references following a comma, like =SUM(A1,C1,E1),
so in a case like this you can search for ",C" and replace with ",$C$".

The second reference in a range will follow a colon, so you can search
for ":A" and replace with ":$A$".

Hope this helps.

Pete

Don Guillett wrote:
Have a look in vba help index for CONVERTFORMULA

--
Don Guillett
SalesAid Software

"Axel" wrote in message
...
I have many already existing formulas in a sheet, now I'm looking for an
easy
way to change all these formulas from relative to absolute.


  #4   Report Post  
Posted to microsoft.public.excel.misc
Axel
 
Posts: n/a
Default Changing formulas from relative to absolute

Thanks a lot Don and Pete! This helped.

"Don Guillett" wrote:

Have a look in vba help index for CONVERTFORMULA

--
Don Guillett
SalesAid Software

"Axel" wrote in message
...
I have many already existing formulas in a sheet, now I'm looking for an
easy
way to change all these formulas from relative to absolute.




  #5   Report Post  
Posted to microsoft.public.excel.misc
Gord Dibben
 
Posts: n/a
Default Changing formulas from relative to absolute

Axel

Will a macro solution be OK with you?

Try these. Ignores cells without formulas.

Sub Absolute()
Dim cell As Range
For Each cell In Selection
If cell.HasFormula Then
cell.Formula = Application.ConvertFormula(cell.Formula, _
xlA1, xlA1, xlAbsolute)
End If
Next
End Sub


Sub AbsoluteRow()
Dim cell As Range
For Each cell In Selection
If cell.HasFormula Then
cell.Formula = Application.ConvertFormula(cell.Formula, _
xlA1, xlA1, xlAbsRowRelColumn)
End If
Next
End Sub


Sub AbsoluteCol()
Dim cell As Range
For Each cell In Selection
If cell.HasFormula Then
cell.Formula = Application.ConvertFormula(cell.Formula, _
xlA1, xlA1, xlRelRowAbsColumn)
End If
Next
End Sub


Sub Relative()
Dim cell As Range
For Each cell In Selection
If cell.HasFormula Then
cell.Formula = Application.ConvertFormula(cell.Formula, _
xlA1, xlA1, xlRelative)
End If
Next
End Sub


Gord Dibben MS Excel MVP
On Wed, 14 Jun 2006 05:03:02 -0700, Axel wrote:

I have many already existing formulas in a sheet, now I'm looking for an easy
way to change all these formulas from relative to absolute.


Gord Dibben MS Excel MVP


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
how to switch between relative and absolute references KeKe New Users to Excel 2 June 9th 06 05:23 PM
Changing relative to absolute for a column John K Excel Worksheet Functions 6 May 17th 06 02:51 AM
Automatic absolute formulas Greenback Excel Discussion (Misc queries) 2 February 2nd 06 05:37 PM
How to convert relative to absolute addressing instantly in Excel loudun Excel Discussion (Misc queries) 3 November 24th 05 05:37 PM
Relative goes absolute between worksheets in data sort! Kevryl Excel Discussion (Misc queries) 6 January 20th 05 05:01 AM


All times are GMT +1. The time now is 11:16 PM.

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

About Us

"It's about Microsoft Excel"