?
Solved

SUMPRODUCT for copy specific data

Posted on 2011-04-25
3
Medium Priority
?
199 Views
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

Chart-Formula.xls
0
Comment
Question by:Cartillo
  • 2
3 Comments
 
LVL 33

Accepted Solution

by:
jppinto earned 2000 total points
ID: 35461243
'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"...

jppinto
0
 

Author Comment

by:Cartillo
ID: 35461329
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.      
0
 

Author Closing Comment

by:Cartillo
ID: 35474306
Thanks for the help
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This article describes a serious pitfall that can happen when deleting shapes using VBA.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

850 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