+ Reply to Thread
Results 1 to 8 of 8

Auto-Fill Problem

  1. #1
    Registered User
    Join Date
    09-26-2012
    Location
    Texas, United States
    MS-Off Ver
    Excel 2007
    Posts
    14

    Auto-Fill Problem

    Why won't Excel recognize this pattern as I drag it down the column with Autofill?

    L26 cell has =SUM(Sheet1!$C1:$BB7)
    L27 cell has =SUM(Sheet1!$C8:$BB14)
    L28 cell has =SUM(Sheet1!$C15:$BB21)

    But when I highlight these cells and click Autofill in the bottom right, it returns this in cell L29:

    L29 cell returns =SUM(Sheet1!$C4:$BB10)

    Any help would be greatly appreciated.

    Thanks in advance.

  2. #2
    Registered User
    Join Date
    09-26-2012
    Location
    Texas, United States
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Auto-Fill Problem

    I am new to this forum. I apologize if I am doing something wrong. I asked a similar question last week and got over 100 views without garnering a response. Could someone please let me know if I am doing something wrong i.e. viewers can't respond, bad ettiquete, etc.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,057

    Re: Auto-Fill Problem

    It's cycling the three formulae.

    One way:

    L26: =SUM(INDIRECT("Sheet1!$C" & (ROW()-26)*7+1 &" :$BB"& (ROW()-26)*7+7))


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Auto-Fill Problem

    try
    =SUM(OFFSET(Sheet1!$C$1,ROW(A1)*7-7,0,7,COLUMN($BB:$BB))) fill down
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    09-26-2012
    Location
    Texas, United States
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Auto-Fill Problem

    Thank you so much for answering. I am still very much a beginner. In effect, how would that apply to:

    D17 =SUM(Sheet1!$C6:$BB12)
    D18 =SUM(Sheet1!$C13:$BB19)
    D19 =SUM(Sheet1!$C20:$BB26)

    then D20 returns =SUM(Sheet1!$C9:$BB15) when I autofill.
    Sorry about the multiple questions, I am right on the cusp of comprehending this. I appreciate both of your responses

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,057

    Re: Auto-Fill Problem

    Or:

    =SUM(INDIRECT("Sheet1!$C" & (ROW(L26)-26)*7+1 &" :$BB"& (ROW(L26)-26)*7+7))

    Or:

    =SUM(INDIRECT("Sheet1!$C" & (ROW(L26)-ROW(L$26))*7+1 &" :$BB"& (ROW(L26)-ROW(L$26))*7+7))

    Depending on whether or not you want to see the numbers change.

    Regards

  7. #7
    Registered User
    Join Date
    09-26-2012
    Location
    Texas, United States
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Auto-Fill Problem

    Hm, I tried to make an adjustment by filling in the information to meet the criteria for my second question, but it is returning the wrong answer. Here is the formula I used:

    =SUM(INDIRECT("Sheet1!$C" & (ROW(D17)-17)*7+1 &" :$BB"& (ROW(D17)-17)*7+7))

    Is there an error in this?

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,057

    Re: Auto-Fill Problem

    Is there an error in this?
    Yes.

    Try:

    =SUM(INDIRECT("Sheet1!$C" & (ROW(D17)-17)*7+6 &" :$BB"& (ROW(D17)-17)*7+12))

    Regards, TMS

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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