+ Reply to Thread
Results 1 to 2 of 2

sum product

  1. #1
    Registered User
    Join Date
    11-21-2011
    Location
    Akron, OH
    MS-Off Ver
    Excel 2010
    Posts
    28

    sum product

    The following function, when copied down is giving me the same result, when I know that it should be different.

    =SUMPRODUCT((Table_Query_from_MS_Access_Database3[PNAME1]=$A$1)*1,(MONTH(Table_Query_from_MS_Access_Database3[DUEDATE]=$A40))*1,Table_Query_from_MS_Access_Database3[QORD])

    I have a database table that this is referencing. First I have it look at the PNAME and if it is = to my A1 cell, then it moves to the month. If the date falls in the month in A40. Then it returns the QORD, quantity on order.

    I have 75 on order for June. However this function is giving me 75 for every month. Is it summing all months up somehow? I just want it to sum up multiple orders in the same month.

    Any help is much appreciated.

    Thanks

  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,819

    Re: sum product

    I think you want your middle term to to be this:

    ,(MONTH(Table_Query_from_MS_Access_Database3[DUEDATE])=$A40*1),

    Note the position of the closing brackets.

    Hope this helps.

    Pete

+ 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