Results 1 to 9 of 9

Spilling a BYCOL/LAMBDA function across rows

Threaded View

  1. #1
    Registered User
    Join Date
    04-14-2014
    Location
    Cape Town, South Africa
    MS-Off Ver
    MS 365 v. 2304 64-bit
    Posts
    3

    Spilling a BYCOL/LAMBDA function across rows

    Hi all,

    See attached a sample workbook of my problem.

    I have a given set of NxK input data. The example sheet has 20 data rows across 10 column variables.

    I am trying to achieve the following: using a single dynamic spilled formula (i.e. no VBA), calculate the sum per column of M randomly chosen rows and output this a total of J times. The final output is thus a J x K matrix of random M-observation sums per column.

    My solution so far is to use a BYCOL/LAMBDA function with RANDARRAY to calculate the random M-sum values but this only spills across columns. I still have to drag this formula down to get a total of J output rows.

    I have also tried to use an IF-statement which checks if an input array is less than or equal to the desired number of output rows. This does spill across the target number of rows but the outputs are all the same because the RANDARRAY function doesn't update between rows and hence we are summing the same M numbers per column each time.

    Any assistance in creating a dynamic formula that updates and spills across rows would be greatly appreciated.

    Regards,
    Emlyn
    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] take last values from rows, spilling column
    By guillaume0314 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-11-2023, 09:41 AM
  2. [SOLVED] Copy Value of cells of rows into next sheets row without spilling into next cell
    By Ajaxs87 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-31-2022, 08:24 PM
  3. ARCANE: LAMBDA function calling XLM functions
    By hrlngrv in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-19-2022, 07:09 PM
  4. Partial spilling of data by new Filter function
    By paradise2sr in forum Excel General
    Replies: 5
    Last Post: 11-08-2021, 04:56 AM
  5. [SOLVED] LAMBDA iteration
    By Slabu in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-20-2021, 08:39 PM
  6. how to convert a VLOOKUP & INDIRECT formula to a LAMBDA function
    By jrtaylor in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-13-2021, 05:11 PM
  7. Lambda Expressions in Excel VBA
    By Gregor y in forum Tips and Tutorials
    Replies: 4
    Last Post: 10-17-2014, 06:59 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