SUMPRODUCT for copy specific data

Hi Experts,

I would like to request Experts help. How to make sure the Sumproduct value that was copied from "Daily Tracking List" only extract data based on Start Date and End Date (Column B and C - Chart). Currently the formula extracted all data even though it's outside of Start/End date. E.g. Cell at F2 "TH3" (Chart sheet), Start/End date for week-1 is "31-Jan to 6-Feb", by right only data from this date need to be captured from "Daily Tracking List", however the cell extracted data from 6-Jan onwards. How to prevent this?. Hope Experts will help me to refine this Sumproduct formua.

=IF(TODAY()<$B2,"",100-(SUMPRODUCT(('Daily Tracking List'!$B$2:$B$196<=$C2)*('Daily Tracking List'!$D$2:$D$196=D$1)*('Daily Tracking List'!$I$2:$I$196="Yes")*'Daily Tracking List'!$H$2:$H$196)*1440)/(10080*ROWS(D$2:D2))*100)

Open in new window

Who is Participating?
jppintoConnect With a Mentor Commented:
'Daily Tracking List'!$B$2:$B$196<=$C2

C2 has a date value of 06-02-2011 so on sheet Daily Tracking List you have 14 values that are less or equal to 06-02-2011, that are the values on rows 2 to 15.

'Daily Tracking List'!$D$2:$D$196=F$1

You only have on this range (cells 2 to 15) one row where the value on column D is eqqual to F1 (TH3) that is row 3.

'Daily Tracking List'!$I$2:$I$196="Yes" is true for row 3 also so the final argument of your sumproduct function will return the value on row 3, colum I that is 0:01:00.

So your formula is only returning the correct value and not extracting "data from 6-Jan onwards"...

CartilloAuthor Commented:
Hi jppinto,

Is that way to set the returning value only based on date on column B & C. The main reason is I have two types of date selection (Calender A and B - this can be switched at Option Button (Chart 2 sheet). Each start/End date of the weeks are different and the first week returning value should start from start date for the calendar week. Hope this is possible.      
CartilloAuthor Commented:
Thanks for the help
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.