Closed Thread
Results 1 to 3 of 3

Sum Product not working as expected

  1. #1
    Registered User
    Join Date
    08-26-2016
    Location
    Hawaii. USA
    MS-Off Ver
    Excel 2010, 2013, 2016
    Posts
    24

    Sum Product not working as expected

    Hi all,

    I have a real simple (and possibly dumb) question. Why doesn't my sumproduct return the expected value?

    Here's my formula (in G83):

    =SUMPRODUCT(--(E83="AD")*(D83+G12),--(E83="dscvry")*(D83+F83),--(E83="CD")*(D83+G13),--(E83="AD-B")*(D83+H13),--(E83="receipt")*(D83+F83),--(E83="CD-B")*(D83+H13),--(E83="SCD")*(D83+G13))

    Here's what my table looks like:

    Ref / ! / Item / Days / Label / Contingent Date / Projected Date / Completed Date
    H4 / 1 / Table Delivery / 5 / receipt / 12-5-2016 / [formula] 12-10-2016 / ---- [manual entry later]



    The cells I'm adding together are dates and numbers of days to come up with a new date. What I'm trying to do is have SUMPRODUCT check the "LABEL" of the row it's in (83 in this example) and return a corresponding formula. So, if E83 has "receipt", sumproduct would return the sum of "D83+F83" (5 + 12/5/2016) and zero from the rest. The label field could also contain CD, AD, SCD, etc. Each one of these "labels" has it's own formula.

    The problem is, the result of my formula is 0. Sumproduct isn't multiplying them, is it? My understanding is it's 0+0+0+0+0+0+23446+0+0, and not 0*0*0*0*0*57423*0*0. By the way, I don't need to use sumproduct, but this seems like a simple task and I'm stuck.
    Last edited by hawaean; 12-03-2016 at 03:37 PM.

  2. #2
    Registered User
    Join Date
    08-26-2016
    Location
    Hawaii. USA
    MS-Off Ver
    Excel 2010, 2013, 2016
    Posts
    24

    Re: Sum Product not working as expected

    Sorry. This is in the wrong forum. I reposted in Formulas!

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Sum Product not working as expected

    Quote Originally Posted by hawaean View Post
    Sorry. This is in the wrong forum. I reposted in Formulas!
    Welcome to the Forum. As you said, unfortunately this is a duplicate post in the wrong forum and as such will now be closed, you may continue in your other thread.

    Thread Closed.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] vlookup not working as expected
    By dmcgov in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-12-2016, 11:54 AM
  2. [SOLVED] =ISBLANK Not working as expected
    By Ra21V12eN in forum Excel General
    Replies: 5
    Last Post: 05-25-2016, 02:37 PM
  3. [SOLVED] filldown not working as expected
    By dmcgov in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-20-2016, 10:50 AM
  4. [SOLVED] Formula not working as expected
    By nalamarmite1 in forum Excel General
    Replies: 4
    Last Post: 03-08-2016, 08:34 AM
  5. ISNA not working as expected
    By micco in forum Excel General
    Replies: 2
    Last Post: 06-30-2011, 01:54 PM
  6. [SOLVED] IF statement is not working as expected?
    By Aland2929 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-31-2009, 02:02 PM
  7. [SOLVED] For Each Statement not working as expected
    By Jacqui in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-02-2005, 06:17 PM

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