+ Reply to Thread
Results 1 to 7 of 7

Trouble Shooting SumProduct Formula

  1. #1
    Registered User
    Join Date
    09-04-2008
    Location
    Cherry Hill, NJ
    MS-Off Ver
    2007
    Posts
    37

    Trouble Shooting SumProduct Formula

    Hello,
    The following formula was provided in this forum and was applied with success in an excel model I developed. However, in a specific look up, it is not working and returning the value:#DIV/0!

    =SUMPRODUCT(--('Discharge Lookup'!$A$2:$A$121='Summary Model_Partner Look'!$B$3),--('Discharge Lookup'!$B$2:$B$121='Summary Model_Partner Look'!A9),'Discharge Lookup'!$F$2:$F$121)

    Array 1: Looking up Text Field in "Discharge Lookup" based on drop list for same field in Summary Model_Partner Look

    Array 2: Same as Array 1

    Result: Providing data field look up based on both arrays.

    Not sure why this is not working. Does return value have to be a non-formula number? Thanks for your assistance.
    Last edited by rgold; 09-01-2009 at 01:41 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Trouble Shooting SumProduct Formula

    Is that error present in any of those ranges?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    09-04-2008
    Location
    Cherry Hill, NJ
    MS-Off Ver
    2007
    Posts
    37

    Re: Trouble Shooting SumProduct Formula

    Hello,
    I am not able to tell. When I click on the F(x) button to see the results from each array, the first two show zeros, which may be why it is trying to divide by zero. But that does not make any sense because, these lookups are working for other columns with the same parameters and filters. Thanks.

    Rob

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

    Re: Trouble Shooting SumProduct Formula

    Quote Originally Posted by rgold
    I am not able to tell
    Simply navigate to Discharge Lookup sheet and look for #DIV/0! error values in ranges A2:A121, B2:B121 and F2:F121.

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Trouble Shooting SumProduct Formula

    Sumproduct multiplies.. so you can't get Divide by zero error since you are not dividing... the only way I can think that you are getting this is that there that error exists in one or more of the cells in the range...

    Can we see the sheet or representative fac simile.

  6. #6
    Registered User
    Join Date
    09-04-2008
    Location
    Cherry Hill, NJ
    MS-Off Ver
    2007
    Posts
    37

    Re: Trouble Shooting SumProduct Formula

    Thank you DonkeyOte,
    Your suggestion worked. I identified the cells in the range that had the same syntax. Thanks!

    Rob

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

    Re: Trouble Shooting SumProduct Formula

    No need to thank me I was just reiterating NBVC's point

+ 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