+ Reply to Thread
Results 1 to 6 of 6

sum values, each row, dynamic arrays, return spilling column

  1. #1
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    sum values, each row, dynamic arrays, return spilling column

    Dear all:

    I have a dynamic table array.

    Is there an easy way to return a spilling array which counts the total (SUM) of each row? Thanks.

    sum row.jpg
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,087

    Re: sum values, each row, dynamic arrays, return spilling column

    Is this what you want?

    =LET(a,A3:C12,t,BYROW(a,LAMBDA(row,SUM(row))),t)

    Or this?

    =LET(a,A3:C12,t,BYROW(a,LAMBDA(row,SUM(row))),HSTACK(a,t))
    Attached Files Attached Files
    Last edited by AliGW; 06-16-2023 at 12:39 PM. Reason: Workbook added.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: sum values, each row, dynamic arrays, return spilling column

    Thanks Ali.

    Sorry, I should have been clearer: we need to use E3#, not A3:C12.

    (A3:C12 was there for the purpose of creating a dynamic array)

    Thanks!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,087

    Re: sum values, each row, dynamic arrays, return spilling column

    So adapt what I gave you, then.

    =BYROW(E3#,LAMBDA(row,SUM(row)))
    Attached Files Attached Files
    Last edited by AliGW; 06-16-2023 at 12:46 PM. Reason: Workbook added.

  5. #5
    Forum Contributor
    Join Date
    09-15-2022
    Location
    Marseille, France
    MS-Off Ver
    O365 (PC) V 2303
    Posts
    265

    Re: sum values, each row, dynamic arrays, return spilling column

    Thanks Ali! It works fine.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,087

    Re: sum values, each row, dynamic arrays, return spilling column

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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. [SOLVED] split comma-separated values in a table, return spilling array
    By guillaume0314 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-11-2023, 08:26 AM
  2. [SOLVED] map values dynamic arrays
    By guillaume0314 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 06-08-2023, 05:45 PM
  3. [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
  4. Identify all unique values in each row (dynamic data) and return the column header
    By nerdwannabe_ in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-26-2021, 02:51 AM
  5. Replies: 1
    Last Post: 01-26-2021, 02:29 AM
  6. Replies: 1
    Last Post: 01-26-2021, 02:29 AM
  7. Replies: 3
    Last Post: 05-23-2012, 10:18 PM

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