+ Reply to Thread
Results 1 to 3 of 3

Sumproduct Problem

  1. #1
    Valued Forum Contributor
    Join Date
    11-15-2007
    Location
    England
    MS-Off Ver
    Office Pro 2003 / 2010
    Posts
    423

    Sumproduct Problem

    Hi,

    I have a download from a customer which has various account numbers relevant to them in column A sales in column G and a product ID in column H.

    The problem with download is that is is 55,000 rows long because there is an entry for every sale.

    So in column H the same product Id will appear several times.

    I have tried this approach and it isn't working and I don't know why.

    I ran a macro to copy the data to another sheet and delete any duplicates in column H to give me a clean list of unique product numbers.

    Then I put this calculation in column G to try and bring in all of the sales.

    =SUMPRODUCT((Download!$A$4:$A$49170=Customer!A4)*(Download!$H$4:$H$49170=Customer!H4)*(Download!$G$4:$G$49170))

    I then copied it down the 13,000 odd rows on the worksheet.

    But it's giving me the wrong figures.

    Is it something to do with the custimer having more than one account number in column A?

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,445

    Re: Sumproduct Problem

    Perhaps a sample sheet would help?

    Why not use a Pivot Table?

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Sumproduct Problem

    Hi

    If you use your formula only with Column H? Does this, gives you correct results?

    =SUMPRODUCT((Download!$H$4:$H$49170=Customer!H4)*(Download!$G$4 :$G$49170))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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