+ Reply to Thread
Results 1 to 7 of 7

How to put multiple Sumproduct formulas in one cell

  1. #1
    Forum Contributor
    Join Date
    11-25-2011
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    107

    How to put multiple Sumproduct formulas in one cell

    I have this 5 formulas the question is how do I put them together in one cell as one formula???


    =SUMPRODUCT(--(US!$A$10:$A$5079=$D2),--(US!$F$10:$F$5079=$I2),--(US!$B$7=$A2)*(US!$H$10:$H$5079))
    *
    =SUMPRODUCT(--(AE!$A$10:$A$5079=$D72),--(AE!$F$10:$F$5079=$I72),--(AE!$B$7=$A72)*(AE!$H$10:$H$5079))
    *
    =SUMPRODUCT(--(AI!$A$10:$A$5079=$D138),--(AI!$F$10:$F$5079=$I138),--(AI!$B$7=$A138)*(AI!$H$10:$H$5079))
    *
    =SUMPRODUCT(--(PL!$A$10:$A$5079=$D204),--(PL!$F$10:$F$5079=$I204),--(PL!$B$7=$A204)*(PL!$H$10:$H$5079))
    *
    =SUMPRODUCT(--(DL!$A$10:$A$5079=$D245),--(DL!$F$10:$F$5079=$I245),--(DL!$B$7=$A245)*(DL!$H$10:$H$5079))

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: How to put multiple Sumproduct formulas in one cell

    Try this,

    =SUMPRODUCT(SUMIFS(INDIRECT("'"&{"AI";"US";"AE";"PL";"DL"}&"'!H10:H5079"),INDIRECT("'"&{"AI";"US";"AE";"PL";"DL"}&"'!A10:A5079"),CHOOSE({1,2,3,4,5},$D2,$D72,$D138,$D204,$D245),INDIRECT("'"&{"AI";"US";"AE";"PL";"DL"}&"'!F10:F5079"),CHOOSE({1,2,3,4,5},$I2,$I72,$I138,$I204,$I245)))
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Forum Contributor
    Join Date
    11-25-2011
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    107

    Re: How to put multiple Sumproduct formulas in one cell

    I tried that and its not working I have to say that it worked for some rows not all
    I'm posting a new formula because the ranges should be same but I was changing same formula in same column so it looked like that ranges were different.

    =SUMPRODUCT(--(US!$A$10:$A$5079=$D2),--(US!$F$10:$F$5079=$I2),--(US!$B$7=$A2)*(US!$H$10:$H$5079))

    =SUMPRODUCT(--(AE!$A$10:$A$5079=$D2),--(AE!$F$10:$F$5079=$I2),--(AE!$B$7=$A2)*(AE!$H$10:$H$5079))

    =SUMPRODUCT(--(AI!$A$10:$A$5079=$D2),--(AI!$F$10:$F$5079=$I2),--(AI!$B$7=$A2)*(AI!$H$10:$H$5079))

    =SUMPRODUCT(--(PL!$A$10:$A$5079=$D2),--(PL!$F$10:$F$5079=$I2),--(PL!$B$7=$A2)*(PL!$H$10:$H$5079))

    =SUMPRODUCT(--(DL!$A$10:$A$5079=$D2),--(DL!$F$10:$F$5079=$I2),--(DL!$B$7=$A2)*(DL!$H$10:$H$5079))

  4. #4
    Forum Contributor
    Join Date
    11-25-2011
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    107

    Re: How to put multiple Sumproduct formulas in one cell

    I tried that and its not working I have to say that it worked for some rows not all
    I'm posting a new formula because the ranges should be same but I was changing same formula in same column so it looked like that ranges were different.

    =SUMPRODUCT(--(US!$A$10:$A$5079=$D2),--(US!$F$10:$F$5079=$I2),--(US!$B$7=$A2)*(US!$H$10:$H$5079))

    =SUMPRODUCT(--(AE!$A$10:$A$5079=$D2),--(AE!$F$10:$F$5079=$I2),--(AE!$B$7=$A2)*(AE!$H$10:$H$5079))

    =SUMPRODUCT(--(AI!$A$10:$A$5079=$D2),--(AI!$F$10:$F$5079=$I2),--(AI!$B$7=$A2)*(AI!$H$10:$H$5079))

    =SUMPRODUCT(--(PL!$A$10:$A$5079=$D2),--(PL!$F$10:$F$5079=$I2),--(PL!$B$7=$A2)*(PL!$H$10:$H$5079))

    =SUMPRODUCT(--(DL!$A$10:$A$5079=$D2),--(DL!$F$10:$F$5079=$I2),--(DL!$B$7=$A2)*(DL!$H$10:$H$5079))

  5. #5
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: How to put multiple Sumproduct formulas in one cell

    Try this,

    =SUMPRODUCT(SUMIFS(INDIRECT("'"&{"AI";"US";"AE";"PL";"DL"}&"'!H10:H5079"),INDIRECT("'"&{"AI";"US";"AE";"PL";"DL"}&"'!A10:A5079"),$D2,INDIRECT("'"&{"AI";"US";"AE";"PL";"DL"}&"'!F10:F5079"),$I2))

  6. #6
    Forum Contributor
    Join Date
    11-25-2011
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    107

    Re: How to put multiple Sumproduct formulas in one cell

    Unfortunately that is not working either.

  7. #7
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: How to put multiple Sumproduct formulas in one cell

    Can you please attach your sample file?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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