Results 1 to 4 of 4

Dynamically applying a formula to all of a SPILL range

Threaded View

  1. #1
    Registered User
    Join Date
    11-23-2019
    Location
    Edinburgh, Scotland
    MS-Off Ver
    365
    Posts
    19

    Dynamically applying a formula to all of a SPILL range

    I have a master file which imports codes of items from a source file using VBA. The number of codes can vary each time they are imported. The codes are imported into a sheet on the master file called ‘source data’. I then use an INDEX formula to transfer all those codes from the source data sheet into a calculations sheet. The transfer uses a dynamic spill range so that the correct number of codes are transferred to the calculations sheet. Each of the items has a score from various tests in a sheet called ‘score data’ also forming part of the master file. I then calculate an average of each score for each item.

    My issue is that I would like to have the formula to calculate the average appear on every row of the spill range and extend / contract dynamically as the spill range changes. So looking at the example below, if the spill range (red) expanded to (say) row 20, I would like the AVERAGE formula (yellow) to appear in every row up to 20; if the spill range expanded to 25, I’d like the AVERAGE formula to extend to row 25. I could achieve this by a VBA routine as the data is imported or by brute force extending it all the way to the last row or some arbitrary row far enough down that it wouldn't be an issue. However, the latter isn’t very elegant.

    A stripped-down and simplified version of my file is attached. Any ideas gratefully received.
    Screenshot 2022-04-11 172214.jpg
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Spill range formula problem
    By zelezni in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-29-2022, 05:09 PM
  2. [SOLVED] Date Range, Return Text, Formula VLookup #Spill! Error
    By CHillFL in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 01-27-2022, 05:05 PM
  3. Extracting data by Xlookup dynamically spill over two ranges
    By paradise2sr in forum Excel General
    Replies: 2
    Last Post: 10-29-2021, 10:04 AM
  4. [SOLVED] Rolling average cascading (spill) dynamic range formula
    By leolapa in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 05-10-2021, 08:32 AM
  5. Replies: 5
    Last Post: 01-27-2021, 12:07 PM
  6. Applying Formula Dynamically
    By sathishkm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-29-2018, 11:14 AM
  7. Applying Mid Formula To A Range
    By Steve0492 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-08-2013, 03:03 AM

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