+ Reply to Thread
Results 1 to 4 of 4

Name Range - Relative Reference

  1. #1
    Forum Contributor
    Join Date
    08-10-2007
    Posts
    106

    Name Range - Relative Reference

    Hi,

    attached you will find a sample..

    Could you please help me out, how can i copy the cell C10 to D10 so that name range changes aswell. When copied the formula with Class1 (Range 1) right next it should sum the name range class2 (Range 2)
    I know the name ranges are absolute reference and it cant be modified when copied down.
    Is there a trick to make it relative Reference.. i want to keep the added Name Definitions untouched.

    Thanks
    Attached Files Attached Files
    Last edited by Sultix; 12-30-2012 at 12:32 PM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Name Range - Relative Reference

    hi Sultix, you can try:
    =SUMIFS(INDIRECT("Class"&COLUMNS($C10:C10)),TYP,$B10)

    in fact, SUMIF is sufficient
    Attached Files Attached Files
    Last edited by benishiryo; 12-30-2012 at 10:09 AM. Reason: added file

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    08-10-2007
    Posts
    106

    Re: Name Range - Relative Reference

    Quote Originally Posted by benishiryo View Post
    hi Sultix, you can try:
    =SUMIFS(INDIRECT("Class"&COLUMNS($C10:C10)),TYP,$B10)

    in fact, SUMIF is sufficient
    i get only zero values if i try that formula..
    Name Range Class1 (B2:B9)
    Name Range Class2 (C2:C9)

    I overwrote the text Class with Class1 .. still no correct summing.. any idea where the error is ?

  4. #4
    Forum Contributor
    Join Date
    08-10-2007
    Posts
    106

    Re: Name Range - Relative Reference

    Quote Originally Posted by benishiryo View Post
    hi Sultix, you can try:
    =SUMIFS(INDIRECT("Class"&COLUMNS($C10:C10)),TYP,$B10)

    in fact, SUMIF is sufficient
    Thanks works now with attached file.

+ 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