+ Reply to Thread
Results 1 to 4 of 4

Problem with formula and autofill

  1. #1
    Registered User
    Join Date
    12-06-2013
    Location
    Stockholm
    MS-Off Ver
    Excel 2007
    Posts
    4

    Problem with formula and autofill

    Hi!

    How do I make this work? I have the formula =sumproduct(A1:A5 ; B1:B5) but when I drag it down

    it becomes =sumproduct(A2:A6 ; B2:B6), =sumproduct(A3:A7 ; B3:B7), =sumproduct(A4:A8 ; B4:B8) etc.

    I want it to look like =sumproduct(A6:A10 ; B6:B10), =sumproduct(A11:A15 ; B11:B15), =sumproduct(A16:A20 ; B16:B20) etc.

    Thanks a lot.

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Problem with formula and autofill

    Hi,

    One way:

    =SUMPRODUCT(INDEX(A:A,5*(ROWS($1:1)-1)+1):INDEX(A:A,5*(ROWS($1:1)-1)+5),INDEX(B:B,5*(ROWS($1:1)-1)+1):INDEX(B:B,5*(ROWS($1:1)-1)+5))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    12-06-2013
    Location
    Stockholm
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Problem with formula and autofill

    Thank you very much, it worked out perfect

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Problem with formula and autofill

    You're welcome.

+ 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. Autofill problem with Dragging the formula down
    By mollyray2 in forum Excel General
    Replies: 3
    Last Post: 06-14-2017, 07:14 AM
  2. Replies: 4
    Last Post: 06-26-2012, 09:11 AM
  3. (Logic) Complicated formula-autofill problem
    By Maroosh in forum Excel General
    Replies: 1
    Last Post: 12-31-2010, 06:24 PM
  4. formula autofill problem
    By obrien2003 in forum Excel General
    Replies: 7
    Last Post: 09-14-2009, 12:44 PM
  5. Formula Autofill Problem
    By maxson in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-28-2006, 02:37 PM

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