SUMPRODUCT for copy specific data

Posted on 2011-04-25
Last Modified: 2012-05-11
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

Question by:Cartillo
    LVL 33

    Accepted Solution

    '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"...


    Author Comment

    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.      

    Author Closing Comment

    Thanks for the help

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
    Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
    Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
    The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now