+ Reply to Thread
Results 1 to 4 of 4

Thread: How to create a sum that adds more than 1 row to one part of the equation

  1. #1
    Registered User
    Join Date
    06-22-2011
    Location
    Leamington Spa
    MS-Off Ver
    Excel 2010
    Posts
    2

    How to create a sum that adds more than 1 row to one part of the equation

    Hi
    I'm trying to create a sum in Column C that divides column A by column B over 20 rows. Data in Column A is A1:A20 but column B increase by 4 rows everytime, e.g. B1, B5, B9 etc.

    If i copy the formula down, how can i get it to add the 4 rows in B rather than add one?

    thanks

    Gordon

  2. #2
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: How to create a sum that adds more than 1 row to one part of the equation

    Can you give a more detailed example?

    Do you mean you currently have formulas in B1, B5 and B9, but you want them in B1, B2 and B3 instead? If so, what exactly is each cell supposed to calculate from A1:A20 range?
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    06-22-2011
    Location
    Leamington Spa
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: How to create a sum that adds more than 1 row to one part of the equation

    sorry, didn't make it clear!
    i have data in A1:A20 and in B1, B5 and B9
    in C1 i want formula =A1/B1
    then in C2 =A1/B5
    and so on

    how do i get the formula to continue down adding 4 rows to B whilst only adding 1 to A?

    thanks

  4. #4
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: How to create a sum that adds more than 1 row to one part of the equation

    For that pattern you describe, try in C1:

    =INDEX($A$1:$A$20,ROUNDUP(ROWS($A$1:A1)/3,0))/INDEX($B$1:$B$20,4*MOD(ROW()-1,5)+1)

    copied down.
    Last edited by NBVC; 06-23-2011 at 09:57 AM. Reason: Slight adjustment
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

+ 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.2.0