+ Reply to Thread
Results 1 to 5 of 5

sumproduct

  1. #1
    Registered User
    Join Date
    06-11-2012
    Location
    NJ, USA
    MS-Off Ver
    Excel 2003
    Posts
    8

    sumproduct

    Hi,

    If someone could help me out with this, it is greatly appreciated.

    Debbie Debbie 5 15
    Karen Debbie 6 35
    Jimmy Karen 7 15
    Karen 8 #N/A
    Debbie 10 #N/A
    Jimmy 5 #N/A

    So, this is what I want using sumproduct. Using Column A, lookup Column C. If there is a number in Column E then sumproduct Column D. If it is an #N/A in Column E, do not sumproduct Column D. I have typed up this =SUMPRODUCT(--(A4=$C$4:$C$9)*($E$4:$E$9>0),$D$4:$D$9). It would work if the #N/A's in Column E were zeros.

    Thank you.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,790

    Re: sumproduct

    Try it like this:

    =SUMPRODUCT((A4=$C$4:$C$9)*($E$4:$E$9>0)*(isnumber($E$4:$E$9)),$D$4:$D$9)

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    06-11-2012
    Location
    NJ, USA
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: sumproduct

    No, it didn't work. I even tried to change e4:e9 to number format.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,790

    Re: sumproduct

    Sorry, I should have removed the middle term. Try this:

    =SUMPRODUCT((A4=$C$4:$C$9)*(isnumber($E$4:$E$9)),$D$4:$D$9)

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    06-11-2012
    Location
    NJ, USA
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: sumproduct

    Great! It works. Thank you very much.

+ 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