+ Reply to Thread
Results 1 to 5 of 5

"Advanced" formula dragging

  1. #1
    Registered User
    Join Date
    03-08-2017
    Location
    Washington
    MS-Off Ver
    2002 (10.6871.6870) SP3
    Posts
    6

    "Advanced" formula dragging

    My spreadsheet has multiple worksheets. The data I enter into sheet 2 (named data) is summarized on sheet 1, for example. A formula looks like:

    Please Login or Register  to view this content.
    Every week, I drag the entire row of formulas down so I can summarize the new week. But I have to manually adjust each formula to reference the correct seven cells. The drag function changes the formula to
    Please Login or Register  to view this content.
    but it needs to be
    Please Login or Register  to view this content.
    And of course each subsequent summary week on sheet 1 needs to reflect the NEXT seven days of data from sheet 2.

    ctrl+f is fine obviously, but if I didn't have to make the changes manually...

    I tried to search the forum for this, but I don't know what term to use other than 'drag formula'. And I know how to do that.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,753

    Re: "Advanced" formula dragging

    Try this:

    =SUM(OFFSET(Data!$J$2:$J$8,7*(ROWS(A$1:A1)-1),0))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,852

    Re: "Advanced" formula dragging

    If you want to avoid a volatile function (like INDIRECT or OFFSET), you can do this:

    =SUM(INDEX('data'!J:J,(rows($1:1)-1)*7+1):INDEX('data'!J:J,rows($1:1)*7))

    then copy down as required.

    Hope this helps.

  4. #4
    Registered User
    Join Date
    03-08-2017
    Location
    Washington
    MS-Off Ver
    2002 (10.6871.6870) SP3
    Posts
    6

    Re: "Advanced" formula dragging

    Quote Originally Posted by AliGW View Post
    Try this:

    =SUM(OFFSET(Data!$J$2:$J$8,7*(ROWS(A$1:A1)-1),0))
    YES!

    Success.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,753

    Re: "Advanced" formula dragging

    Glad to have helped!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 07-30-2017, 09:35 PM
  2. Replies: 7
    Last Post: 03-17-2014, 01:51 PM
  3. [SOLVED] Emulate Excel 97 getopenfilename "Advanced" find including "Search subfolders"
    By FORTRANguru in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-06-2014, 08:21 PM
  4. Replies: 4
    Last Post: 05-20-2013, 02:06 AM
  5. Dragging "INDIRECT" formula
    By hamspankin1 in forum Excel General
    Replies: 3
    Last Post: 12-08-2010, 08:25 AM

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