+ Reply to Thread
Results 1 to 8 of 8

change from relative reference to absolute reference

  1. #1
    Forum Contributor
    Join Date
    04-29-2011
    Location
    South Korea
    MS-Off Ver
    Excel 2019
    Posts
    176

    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.

    Please Login or Register  to view this content.
    Appreciate your reply.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: change from relative reference to abosulte reference

    You needed to add some more specific comparisons to include the type of fund, too. Like so...
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    04-29-2011
    Location
    South Korea
    MS-Off Ver
    Excel 2019
    Posts
    176

    Re: change from relative reference to abosulte reference

    Thanks for your reply.

    As I use the macro to change from relative to absolute reference, it changed to #VALUE!.

    The formula like that =SUMPRODUCT(--(Table!$C$3:$C$20=$A4), --(Table!$F$3:$F$20=B$1), --(Table!$E$3:$E$20=B$2), (Table!$L$3:$L$20)+(Table!$N$3:$N$20))


    I would like to have the macro that can change the formula in relative reference to absolute reference in the formula of sumif and sumproduct...

    Thanks for your reply.

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: change from relative reference to abosulte reference

    hi, ronlau, try to shorten the file name to 1 symbol, for example: 1.xls and check if everything is working as expected

  5. #5
    Forum Contributor
    Join Date
    04-29-2011
    Location
    South Korea
    MS-Off Ver
    Excel 2019
    Posts
    176

    Re: change from relative reference to abosulte reference

    Dear watersev,

    May I ask where is the file? I am sorry that I can't find it. Thanks

  6. #6
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: change from relative reference to abosulte reference

    the file is in post #2
    Last edited by watersev; 08-10-2011 at 06:01 PM.

  7. #7
    Forum Contributor
    Join Date
    04-29-2011
    Location
    South Korea
    MS-Off Ver
    Excel 2019
    Posts
    176

    Re: change from relative reference to absolute reference

    Dear Watersev,

    After I tried several times, it doesn't work. You mean you attached file in post 2, JBeaucaire attached file?

    It still turns to #Value

  8. #8
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: change from relative reference to absolute reference

    please check attachment, it is the same file as originally posted by you, I've just made its name shorter. After I use the macro (select the range from B18 to C20), I do not get #value error.
    Attached Files Attached Files
    Last edited by watersev; 09-13-2011 at 05:23 AM.

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