+ Reply to Thread
Results 1 to 7 of 7

Thread: Changing a range of cells to an absolute reference

  1. #1
    Registered User
    Join Date
    10-30-2009
    Location
    Salem, Oregon
    MS-Off Ver
    Excel 2003
    Posts
    4

    Changing a range of cells to an absolute reference

    I have a spreadsheet with two worksheets in it and one uses cell values from the other. 'Data Entry' is where the data is entered and 'Summary Final' is where the information ends up. I need to be able to change the reference in the 'Summary Final' sheet to Absolute ($). I know I can change one cell at a time by using F4 (I learned that here) but I need to be able to do a large number of cells at one time. I have 15,000 cells to do and doing it 1 cell at a time is not practical.
    Thank you in advance for help, I hope I have used the correct terms for this problem as I am not well versed in Excel.
    Last edited by Otto Heider; 11-04-2009 at 02:12 PM.

  2. #2
    Valued Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2007
    Posts
    949

    Re: Changing a range of cells to an aboslute reference

    Post the workbook, or an example of the workbook which accurately portrays the formula and cell locations.

    mew!
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

  3. #3
    Registered User
    Join Date
    10-30-2009
    Location
    Salem, Oregon
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Changing a range of cells to an aboslute reference

    Here is a spreadsheet with entries. Summary Final has 3 blocks of numbers, the first block does not have the reference to Data Entry as absolute, the other blocks do. I need to be able to change this.
    Attached Files Attached Files

  4. #4
    Forum Guru Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007
    Posts
    3,523

    Re: Changing a range of cells to an aboslute reference

    Might take a look at this link and use the code there.
    Convert Excel Formulas from Relative to Absolute
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  5. #5
    Registered User
    Join Date
    10-30-2009
    Location
    Salem, Oregon
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Changing a range of cells to an aboslute reference

    There is an error in that code and I am not able to trouble shoot it. This looks like it will do what I want if it will work. Thank you very much.

  6. #6
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,777

    Re: Changing a range of cells to an absolute reference

    Try this:
    Sub ChangeRefs()
        Dim vRef        As Variant
        Dim cell        As Range
    
        vRef = InputBox(Prompt:="Change formulas to?" & vbLf & vbLf & _
                                "1. Absolute all" & vbLf & _
                                "2. Absolute Row / Relative column" & vbLf & _
                                "3. Relative Row / Absolute column" & vbLf & _
                                "4. Relative all")
        
        If vRef = vbNullString Then Exit Sub
        If Not IsNumeric(vRef) Or vRef < 1 Or vRef > 4 Then
            MsgBox "Invalid selection"
            Exit Sub
        End If
    
        On Error Resume Next
        For Each cell In Intersect(Selection, ActiveSheet.UsedRange).SpecialCells(Type:=xlFormulas)
            cell.Formula = Application.ConvertFormula(cell.Formula, xlA1, xlA1, vRef)
        Next cell
    End Sub
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Registered User
    Join Date
    10-30-2009
    Location
    Salem, Oregon
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Changing a range of cells to an absolute reference

    Yippee! Thank you Thank you Thank you! Palmetto and Shg thank you for your help. I will mark this solved
    Otto Heider

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0