Results 1 to 8 of 8

change from relative reference to absolute reference

Threaded View

ronlau123 change from relative... 08-06-2011, 07:46 PM
JBeaucaire Re: change from relative... 08-07-2011, 12:25 AM
ronlau123 Re: change from relative... 08-07-2011, 12:44 PM
watersev Re: change from relative... 08-10-2011, 07:47 AM
ronlau123 Re: change from relative... 08-10-2011, 09:36 AM
watersev Re: change from relative... 08-10-2011, 02:29 PM
ronlau123 Re: change from relative... 08-10-2011, 11:34 PM
watersev Re: change from relative... 09-13-2011, 04:57 AM
  1. #1
    Forum Contributor
    Join Date
    04-29-2011
    Location
    South Korea
    MS-Off Ver
    Excel 2019
    Posts
    178

    change from relative reference to absolute reference

    Dear all big brothers and sisters,

    May I ask is there any macro that can change the formula from relative reference to absoulte reference?

    I have the one as the following, however, it can't be applied on the formula with sumproduct and sumif.

    I have the formula like as =SUMPRODUCT(--(Table!$C$2:$C$20=A18),--(Table!$F$2:$F$20="others"),Table!$L$2:$L$20)+SUMPRODUCT(--(Table!$C$2:$C$20=A18),--(Table!$F$2:$F$20="others"),Table!$N$2:$N$20)

    However, after I use the macro (select the range from B18 to C20), it changed to #value.

    Sub Absolute()
    Dim cell As Range
    With Application: .ScreenUpdating = 0: .Calculation = xlManual
    For Each cell In Selection
        If cell.HasFormula Then cell = Application.ConvertFormula(cell.Formula, xlA1, , xlAbsolute)
    Next: .ScreenUpdating = 1: .Calculation = xlCalculationAutomatic: End With: End Sub
    Appreciate your reply.
    Attached Files Attached Files

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.6.0 RC 1