+ Reply to Thread
Results 1 to 4 of 4

referencing an Offset range

  1. #1
    Forum Contributor
    Join Date
    03-27-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    290

    referencing an Offset range

    So im trying to make a function that uses this formula:
    H6=I6-(SUM(C6:G6) but instead of I6 C6 and G6 and H6 a named variable (ill call Ref)
    so Id like something like this...

    Range(ref).Offset(0,1)-(SUM(ref.Offset(0,-5) : ref.Offset(0,-1)
    The first part is easy

    Please Login or Register  to view this content.
    however I dont know how to figure out the next part because ref.offset(0,-5) returns the value rather then the reference as a cell

    Can anyone help?

  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: referencing an Offset range

    Hmm, so maybe something like this:

    Please Login or Register  to view this content.
    _________________
    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
    03-27-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    290

    Re: referencing an Offset range

    close... This is what I wanted:
    Please Login or Register  to view this content.
    thanks though, helped a lot!

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

    Re: referencing an Offset range

    If that takes care of your original query, please select Thread Tools from the links above and mark this thread as SOLVED. Thanks.

+ 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