+ Reply to Thread
Results 1 to 7 of 7

SUMPRODUCT with BYROW? MAP? INDEX?

  1. #1
    Forum Contributor
    Join Date
    08-31-2021
    Location
    Kassel, Germany
    MS-Off Ver
    365 v2409
    Posts
    207

    SUMPRODUCT with BYROW? MAP? INDEX?

    Hi all,

    I'm attempting to create a dynamic array to replace single-cell formulas that use SUMPRODUCT. In the attached file, col. M shows the single-cell formulas with expected values that I'd like replicated in col. N with a dynamic array formula. You can see my attempts to use BYROW and MAP are failing and looking for a working solution. All suggestions are appreciate and TIA...
    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
    90,703

    Re: SUMPRODUCT with BYROW? MAP? INDEX?

    Try this:

    =BYROW(C3:F6*H3:K6/B3#,LAMBDA(r,SUM(r)))
    Attached Files Attached Files
    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
    Registered User
    Join Date
    10-29-2014
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    41

    Re: SUMPRODUCT with BYROW? MAP? INDEX?

    Can I ask why the BYROW / LAMBDA combination is preferred over the much easier to read SUMPRODUCT function?

  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
    90,703

    Re: SUMPRODUCT with BYROW? MAP? INDEX?

    BYROW and LAMBDA allow the formula to spill down, which is what the OP wants. If you have further questions on this, you must open your own thread, please.

    What is 'easy to read' is just a matter of experience and familiarity.

    By the way, C3:F6*H3:K6 is a shorthand version of a SUMPRODUCT, anyway.
    Last edited by AliGW; 10-09-2023 at 10:01 AM.

  5. #5
    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
    90,703

    Re: SUMPRODUCT with BYROW? MAP? INDEX?

    @paulma1960

    Thanks for the rep, but please mark the thread as SOLVED.

  6. #6
    Forum Contributor
    Join Date
    08-31-2021
    Location
    Kassel, Germany
    MS-Off Ver
    365 v2409
    Posts
    207

    Re: SUMPRODUCT with BYROW? MAP? INDEX?

    Ah great, thanks Ali. And simple, I didn't realise you could put more than one array in the first argument of BYROW. Obviously, BYROW treats C3:F6*H3:K6/B3# as one array.

  7. #7
    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
    90,703

    Re: SUMPRODUCT with BYROW? MAP? INDEX?

    Correct.

    Please mark the thread as solved.

+ 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] Dyn.Arr. fx for sub-totals: ByRow?
    By paulma1960 in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 09-27-2023, 06:06 AM
  2. [SOLVED] Is it possible to use TREND formula BYROW on a #Spill Range?
    By chris01395 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-07-2023, 06:10 AM
  3. [SOLVED] help with a BYROW
    By guillaume0314 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-30-2023, 11:40 AM
  4. [SOLVED] BYROW retrieve value in a dynamic array
    By guillaume0314 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-21-2023, 12:47 PM
  5. Combine two working formulae using BYROW (or other function(s))
    By TMS in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-19-2023, 12:11 PM
  6. [SOLVED] BYROW(...LAMBDA(...) ) result in #CALC! error
    By dluhut in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-18-2022, 07:17 AM
  7. Replies: 5
    Last Post: 04-20-2012, 08:54 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