Results 1 to 14 of 14

Spill/array formula to calculate average for specified ranges?

Threaded View

  1. #1
    Registered User
    Join Date
    01-21-2021
    Location
    Sweden
    MS-Off Ver
    Office 365 Business
    Posts
    14

    Spill/array formula to calculate average for specified ranges?

    I would like to do the following with measuring data:
    1) Each row contains a set of data
    2) For each row of data, I want to make a reference to a range of other rows
    3) For each row of data, I want to calculate the average over this associated range of other rows
    4) So far I can manage this, but I would like to make the formula "spill" over the entire target array, so I don't have to worry about updating formulas when rows of data are inserted in the middle etc.

    E.g., this could be a set of measuring data with multiple zero values taken on several instances, where I want to specify which range of zero values that should be associated to each row, but I have other applications as well (all for interpolating).
    Value 1st pr 0 Last pr 0 1st suc 0 last suc 0 <pr 0> <suc 0> zero corrected
    0 1 2 7 8 0,05 0,25 0,03 -0,03
    0,1 1 2 7 8 0,05 0,25 0,07 0,03
    5,0 1 2 7 8 0,05 0,25 0,10 4,90
    5,1 1 2 7 8 0,05 0,25 0,13 4,97
    10,2 1 2 7 8 0,05 0,25 0,17 10,03
    10,2 1 2 7 8 0,05 0,25 0,20 10,00
    0,2 1 2 7 8 0,05 0,25 0,23 -0,03
    0,3 1 2 7 8 0,05 0,25 0,27 0,03
    0,0 9 10 ... ... ... ... ... ...
    0,0 9 10 ... ... ... ... ... ...

    The example Excel sheet shows the four calculating approaches I've tried so far, where every attempt to make the formula spill, using ranges like B2:B19 or G2# as parameters, has failed.
    (Note that the example sheet has different row referrals, because I wanted a little more data for the example calculations.)

    All my other columns in the calculations rely on "spill" so it could be a risk if one column suddenly needs manual updating. I also tried to find appropriate Control-Shift-Enter (CSE) formulas instead, but ran into the same problems there.
    Attached Files Attached Files
    Last edited by ErikBerger; 01-21-2021 at 05:53 AM. Reason: should have given graphic example

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: 01-27-2021, 12:07 PM
  2. Using UNIQUE function with table ranges, cant avoid #SPILL! error
    By Lacaycer in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-22-2020, 09:38 AM
  3. Dynamic, Spilled, Named Ranges - how to override SPILL
    By TimB in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-24-2020, 01:53 PM
  4. Array formula to calculate average
    By MFCPA in forum Excel General
    Replies: 20
    Last Post: 04-04-2012, 07:35 PM
  5. Replies: 10
    Last Post: 08-08-2009, 06:09 AM
  6. Replies: 8
    Last Post: 03-21-2008, 12:09 PM
  7. Replies: 0
    Last Post: 01-05-2005, 09:14 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