+ Reply to Thread
Results 1 to 5 of 5

Sumproduct returning #Error

  1. #1
    Registered User
    Join Date
    02-28-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2003
    Posts
    25

    Sumproduct returning #Error

    I have an #error from a sumproduct formula

    sheet 1 col dm ( custom format) the one with the error.


    =IF(C2="","",SUMPRODUCT(('EQ Summary'!$C$4:$C$5000=$C2)*('EQ Summary'!$E$4:$E$5000=1)*('EQ Summary'!$AL$4:$AL$5000)))

    c2 is a general format - example data "ASYS"


    Sheet - "EQ Summary"

    Summary'!$C$4:$C$5000 is general format - example data "ASYS"

    'EQ Summary'!$E$4:$E$5000 is general format - example data (1,2,3)

    'EQ Summary'!$AL$4:$AL$5000 is general format example data "1106559". this data here is also the result of a sumproduct formula and displays correctly.


    What am i doing wrong here?

  2. #2
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Sumproduct returning #Error

    You're missing an argument in the last condition OR you need to change the last * in the formula to a comma

    =IF(C2="","",SUMPRODUCT(('EQ Summary'!$C$4:$C$5000=$C2)*('EQ Summary'!$E$4:$E$5000=1),('EQ Summary'!$AL$4:$AL$5000)))
    If I've been of help, please hit the star

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sumproduct returning #Error

    What is the exact error you're getting?

    If there is text in the range 'EQ Summary'!$AL$4:$AL$5000 then you'll get a #VALUE! error.

    Maybe this:

    =IF(C2="","",SUMPRODUCT(--('EQ Summary'!$C$4:$C$5000=$C2),--('EQ Summary'!$E$4:$E$5000=1),'EQ Summary'!$AL$4:$AL$5000))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    02-28-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Sumproduct returning #Error

    Thank you so much, i thought i was going crazy. Funny thing is that for other similar formulas it has been returning the correct value even when i was using * instead of a comma
    .

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sumproduct returning #Error

    You're welcome!

+ 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