+ Reply to Thread
Results 1 to 6 of 6

Sumproduct error

  1. #1
    Registered User
    Join Date
    09-23-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2003
    Posts
    8

    Sumproduct error

    In a Sumproduct formula, I am getting an error message when referring to an array involving multiple columns combined with an array involving a single column. See attached for example. The problem formula is located in cell C9. Alternatively, the layout is as follows:

    A B C D
    1 Program Year Program Host1 Program Host2 Program Host3
    2 2008 Smith, Bill
    3 2008 Doe, John Smith, Bill
    4 2009 Smith, John Doe, John Smith, Bill
    5 2010 Doe, Karen Doe, John

    Problem formula: =Sumproduct(--(B2:D5="Smith, Bill"),--(A2:A5=2008))

    Each portion of the formula works in isolation, but the formula returns a #VALUE! error when the portions are put together.

    Thanks in advance for your help.
    Attached Files Attached Files

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

    Re: Sumproduct error

    Try this revision:

    =SUMPRODUCT((C3:E6=B9)*(B3:B6=2008))
    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
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Sumproduct error

    Replace your formula with

    =SUMPRODUCT(--(C3:E6=B9)*(B3:B6=2008))

    The traditional SUMPRODUCT (with commas separating arguments) requires that each argument have the same size ranges. Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Sumproduct error

    Dang, too slow.

  5. #5
    Registered User
    Join Date
    09-23-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Sumproduct error

    Thank you all. This solved it.

    David

  6. #6
    Registered User
    Join Date
    09-23-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Sumproduct error

    thank you all. This solved it.

+ 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