+ Reply to Thread
Results 1 to 2 of 2

Single Array Sum Every N Rows?

  1. #1
    Registered User
    Join Date
    02-28-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    1

    Single Array Sum Every N Rows?

    Hi,

    I'd like to be able to sum every n rows in a single array so the values are kept and can be multiplied separately?

    Currently the only way I can see to sum every n rows uses 2 arrays which is shown below so the separate values are lost

    =SUMPRODUCT(B1:B15,MOD(ROW(B1:B15)+0,2))

  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: Single Array Sum Every N Rows?

    No, there is not a way to store the individual values within a "result" formula for reuse. But there is no need. Your formula above is already referencing every ODD row and summing them as a group. So this formula already knows how to find the values. You can do multiplication on the initial range of values and get your new result using the same basic formula.

    =SUMPRODUCT(B1:B15,MOD(ROW(B1:B15)+0,2))

    =SUMPRODUCT((B1:B15)*2,MOD(ROW(B1:B15)+0,2))

    =SUMPRODUCT((B1:B15)*M3,MOD(ROW(B1:B15)+0,2))
    _________________
    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!)

+ 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: 1
    Last Post: 04-06-2016, 07:02 AM
  2. Replies: 3
    Last Post: 03-07-2016, 09:54 PM
  3. [SOLVED] Array Formula to Lookup and Return All Rows in Table that Meet Single Criteria
    By Torkel74 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-15-2013, 10:41 PM
  4. [SOLVED] Populate Listbox with all rows of a dynamic array where elements of a single array match.
    By Tayque_J_Holmes in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 08-07-2012, 04:54 AM
  5. Single Conditional Array x two Multi-Column Array - Approach needed
    By David Brown in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-28-2010, 11:41 AM
  6. Array problem: Key words-Variant Array, single-element, type mismatch error
    By davidm in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-09-2005, 01:54 AM
  7. Array problem: Key words-Variant Array, single-element, type mismatch error
    By davidm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-08-2005, 12:30 AM

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