+ Reply to Thread
Results 1 to 7 of 7

sumproduct issues

  1. #1
    Registered User
    Join Date
    03-29-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    6

    sumproduct issues

    This would be a great tool for many situations, but it never seems to work for me. Simple case at hand: I am trying to total some numbers based on 2 criteria - country, and product name. Can the criteria be variables? Here is my formula:

    =SUMPRODUCT((SAP_1202_120227!$AO$2:$AO$177=A54)*(SAP_1202_120227!$AN$2:$AN$177=B53)*(SAP_1202_120227!$AH$2:$AH$177))

    column AO in my data table should contain the country (cell A54)
    column AN should contain the product (cell B53)
    column AH is the data that I am trying to total.

    Someone can solve this one, and I'll owe you my first born. Then again, I'm pretty ugly.

  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 issues

    Try:

    =SUMPRODUCT(('SAP_1202_120227'!$AO$2:$AO$177=A54)*('SAP_1202_120227'!$AN$2:$AN$177=B53),'SAP_1202_120227'!$AH$2:$AH$177)
    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
    Registered User
    Join Date
    03-29-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: sumproduct issues

    No luck, but thanks for trying. In this case, I'm unable to enter the single quotes and have them save/stay. This may be an issue with how SAP data downloads - slightly different formats, numbers = text number, etc. I have managed to make it work in aonther case, but that was working with numerical criteria (codes) and I changed them to number format.

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

    Re: sumproduct issues

    So what result are you getting? If the single quotes disappear, that is okay.... I was making sure that you didn't have any other special chars....

  5. #5
    Registered User
    Join Date
    03-29-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: sumproduct issues

    #NA is the result

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

    Re: sumproduct issues

    Are there any cells in the data range that have that error in them?

  7. #7
    Registered User
    Join Date
    03-29-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: sumproduct issues

    Yes - If I delete those, then it appear to work. Thanks 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