+ Reply to Thread
Results 1 to 7 of 7

Sumif to SumProduct

  1. #1
    Registered User
    Join Date
    10-11-2010
    Location
    US
    MS-Off Ver
    NA
    Posts
    41

    Cool Sumif to SumProduct

    I converting a formula from

    =SUMIF('[2011 Consolidated Master Allocation.xls]PR Rates'!$N$5:$N$478,V99,'[2011 Consolidated Master Allocation.xls]PR Rates'!$P$5:$P$478)

    Result = 506

    to

    =SUMPRODUCT(('[2011 Consolidated Master Allocation.xls]PR Rates'!$N$5:$N$1000=V99),'[2011 Consolidated Master Allocation.xls]PR Rates'!$P$5:$P$1000))

    Result = 0

    Can anyone help me identify why I am getting a zero on the above sum product formula?

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: Sumif to SumProduct

    Try add -- in your formula:

    =SUMPRODUCT(--('[2011 Consolidated Master Allocation.xls]PR Rates'!$N$5:$N$1000=V99),'[2011 Consolidated Master Allocation.xls]PR Rates'!$P$5:$P$1000))

    or remove , from it nad multiply:

    =SUMPRODUCT(('[2011 Consolidated Master Allocation.xls]PR Rates'!$N$5:$N$1000=V99)*'[2011 Consolidated Master Allocation.xls]PR Rates'!$P$5:$P$1000))
    Last edited by zbor; 11-16-2010 at 12:39 PM.

  3. #3
    Valued Forum Contributor
    Join Date
    02-08-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    122

    Re: Sumif to SumProduct

    If there is just one condition to evaluate, why you want to move from SUMIF to SUMPRODUCT?

    Regards

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Sumif to SumProduct

    SUMIF does not work with closed targets - presumably OP has the file open while creating the formulae (shorthand link) but will close thereafter ?

  5. #5
    Valued Forum Contributor
    Join Date
    02-08-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    122

    Re: Sumif to SumProduct

    Thanks Don, I didn't think about that.

    Regards

  6. #6
    Registered User
    Join Date
    10-11-2010
    Location
    US
    MS-Off Ver
    NA
    Posts
    41

    Re: Sumif to SumProduct

    I had not tired the multiplication (*) before. That is a great way to solution this challenge and provide a formula most people could follow.

    Thank you.

  7. #7
    Registered User
    Join Date
    10-11-2010
    Location
    US
    MS-Off Ver
    NA
    Posts
    41

    Re: Sumif to SumProduct

    sumif are not an array and do not work properly without opening the referenced file.

+ 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