+ Reply to Thread
Results 1 to 3 of 3

SUMPRODUCT and different arrays

  1. #1
    Registered User
    Join Date
    02-03-2011
    Location
    Bulgaria, Europe
    MS-Off Ver
    2007, 2013
    Posts
    59

    Question SUMPRODUCT and different arrays

    Dear all,
    I have a question about one of the most powerful function (This is my opinion for SUMPRODUCT)

    I have quantities and amonuts. The quantities are in array C19:H19, but the amounts are in each first colum J19:AA19
    For help I create one row J48:AA48={1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0}
    and then =SUMPRODUCT(J19:AA19;J48:AA48)

    BUT
    How I can take quantities?
    I must be reached =IFERROR(+((C19*J19)+(D19*M19)+(E19*P19)+(F19*S19)+(G19*V19)+(H19*Y19))/I19;0)
    I19 is equal to sum of quantities

    Thank you for help in advance!
    ?If you have an apple and I have an apple and we exchange these apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas.?

    George Bernard Shaw

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: SUMPRODUCT and different arrays

    you cant because the arrays are of a different size but you could use a helper row
    say in a10
    put
    =INDEX($J$19:$Y$19,(COLUMNs($A$1:A1)*4)-COLUMNs($a$1:C1))fill across to f10
    then use sumproduct(c19:h19;a10:f10)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    02-03-2011
    Location
    Bulgaria, Europe
    MS-Off Ver
    2007, 2013
    Posts
    59

    Cool Re: SUMPRODUCT and different arrays

    Ok, I see
    It's very usefully!
    Thank you very much for help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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