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.
I am using excel 2010 in case you wondered.
SUMPRODUCT is *not* an Array formula.
If you're using Excel 2010, why not use COUNTIFS or SUMIFS?
Regards
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?
Please post a sample workbook with some typical data ... only interested in the relevant data.
Regards
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
@daddylonglegs - Thanks a lot, that did work, and can see why, which is even better. Appreciate your time and help here.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks