+ Reply to Thread
Results 1 to 7 of 7

Thread: Sumproduct problem

  1. #1
    Registered User
    Join Date
    09-11-2011
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    4

    Sumproduct problem

    Hi, first time posting on the forum, and hoping for some help.

    I am using a sumproduct formula to count how many instances where 3 criteria are being met. However, it does not seem to be working. I have looked all over the place and changed different bits of the formula, but cannot solve the issue.

    The formula is:

    =SUMPRODUCT(('Contract tracker'!J4:J1000>='After the event measures month'!C2)*('Contract tracker'!J4:J1000<='After the event measures month'!D2)*(COUNTIF('Contract tracker'!R4:R10000,">-1")))

    I have done shift, ctrl, return to make it an array formula.

    For reference, C2 is a date, D2 is a date.

    I am looking to find how many contracts were requested between 2 dates and out of these how many gave at least 0 days notice before the starting date.

    Thanks in advance
    Last edited by Logie3000; 09-11-2011 at 04:27 PM.

  2. #2
    Registered User
    Join Date
    09-11-2011
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Sumproduct problem

    I am using excel 2010 in case you wondered.

  3. #3
    Forum Guru TMShucks's Avatar
    Join Date
    07-15-2010
    Location
    Manchester, England
    MS-Off Ver
    MSO 2003 & 2007
    Posts
    6,222

    Re: Sumproduct problem

    SUMPRODUCT is *not* an Array formula.

    If you're using Excel 2010, why not use COUNTIFS or SUMIFS?


    Regards

  4. #4
    Registered User
    Join Date
    09-11-2011
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Sumproduct problem

    Thanks for the reply. Even when I remove array, it does not give me the correct answer.

    When I tried to use countifs, I could not get the correct answer either. Don't suppose you could suggest the countifs formula and I will give it a try?

  5. #5
    Forum Guru TMShucks's Avatar
    Join Date
    07-15-2010
    Location
    Manchester, England
    MS-Off Ver
    MSO 2003 & 2007
    Posts
    6,222

    Re: Sumproduct problem

    Please post a sample workbook with some typical data ... only interested in the relevant data.

    Regards

  6. #6
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2007
    Posts
    10,056

    Re: Sumproduct problem

    You wouldn't normally use COUNTIF within SUMPRODUCT, try like this

    =SUMPRODUCT(('Contract tracker'!J4:J1000>='After the event measures month'!C2)*('Contract tracker'!J4:J1000<='After the event measures month'!D2)*('Contract tracker'!R4:R10000>0))

    or with COUNTIFS that would be

    =COUNTIFS('Contract tracker'!J4:J1000,">="&'After the event measures month'!C2,'Contract tracker'!J4:J1000,"<="&'After the event measures month'!D2,'Contract tracker'!R4:R10000,">0")
    Audere est facere

  7. #7
    Registered User
    Join Date
    09-11-2011
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Sumproduct problem

    @daddylonglegs - Thanks a lot, that did work, and can see why, which is even better. Appreciate your time and help here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0