sumproduct help

barbuella

New Member
Joined
Oct 12, 2009
Messages
21
Hello Mr. Excel Board,

I had created a separate thread yesterday asking for help using VLOOKUP for multiple criteria, but it turns out that I may instead need to use SUMPRODUCT according to one of the users which replied to my other thread. Basically, what I would like to do is show the data from only the previous day for a particular line item for a report. I think I got it to work semi-correctly, but instead of a numerical value, I get "FALSE" which isn't the desired result. Screenshots are included for where I'd like the data to appear and the sheet where this data is coming from.

Thanks!

Excel Workbook
ABCDEFGHIJKLMNOP
4Yesterday's Date5/19/2010
5
6
7
8Sum of Total Imps
9Opportunity NameCampaignPlacement DescriptionAD Line Item No.3rd Party BillingAgency AdserverActual Start DateActual End DateAd DateEnd DateAd SizeAd TypeQuantityOAS Scheduled ImpsTotalYesterday's Delivery
10abc video upfront_q2 2010#N/AGuaranteed Video ViewsTO0003443_10(blank)5/18/20105/24/20105/18/20108/24/2010300x250#N/A120,000#N/A-#N/A
11Air Force_Air Force 2010_Q2Q310TO0003247_14-Airforce-728x90Tagged Social media distribution --> Targeted media across Appssavvys most popular applications for menTO0003247_140(blank)5/10/201010/31/20106/1/20106/14/2010728x90IAB666,667666,6672FALSE
12TO0003247_15-Airforce-728x90Where I've Been Social media distribution --> Targeted media across Appssavvys most popular applications for menTO0003247_150(blank)5/10/201010/31/20105/10/201010/31/2010728x90IAB333,333333,33418#N/A
13TO0003247_16-Airforce-728x90Page Fad Social media distribution --> Targeted media across Appssavvys most popular applications for menTO0003247_160(blank)5/10/201010/31/20105/10/201010/31/2010728x90IAB333,333333,33412,228#N/A
14TO0003247_17-Airforce-300x250Where I've Been Social media distribution --> Targeted media across Appssavvys most popular applications for menTO0003247_170(blank)5/10/201010/31/20105/10/201010/31/2010300x250IAB666,667666,66717,623#N/A
scrumdetail


I need to pull data for the previous day from the "oas" tab which can be seen below. The date format I'm using, if needed to help with this, is 'mm/dd/yyyy'.

Excel Workbook
ABCDEF
1Alt Ad IDDateCampaignImps*ClicksCTR
2RE06-AppssavvyB5/1/2010RE06-AppssavvyB-728x90020.00%
3TO0002118_25/1/2010TO0002118_2-PampersSwad-1x110,014-0.00%
4TO0002119_15/1/2010TO0002119_1-PampersSen-728x902-0.00%
5TO0002119_25/1/2010TO0002119_2-PampersSen-160x6002,009-0.00%
6TO0002120_15/1/2010TO0002120_1-PampersEasy-1x14,936-0.00%
7TO0002120_25/1/2010TO0002120_2-PampersEasy-728x905-0.00%
8TO0002120_35/1/2010TO0002120_3-PampersEasy-160x6001,167-0.00%
oas
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
hello,

i appreciate your patience and apologize for not being clear.

Sheet1, A3:C12 (Source)
noaw7j5yai8fqkznnl2r_oas.jpg


Sheet2, A18:C19 (Destination)
p6yfxuerzjelj4bd2ak3_scrumdetail.jpg


With the help of a co-worker, I got this to work using the following formula:
=SUMPRODUCT(C3:C12,--(A3:A12=A18),--(B3:B12=B16))

However, when in the actual report, this slows the calculations tremendously as there are thousands of rows of data it's pulling in.

Thanks.
 
Upvote 0
You still post "images", not data one can copy from here and paste it into Excel such that one can calculate with the pasted data. Your images require re-typing. That said:

If you are on Excel 2007 or beyond, invoke a SUMIFS formula instead of one with SUMPRODUCT. Otherwise, try to use DSUM on the older versions (see the table method in http://www.mrexcel.com/forum/showthread.php?t=58539).
 
Upvote 0
ok.. here you go:

Sheet1, A3:C12 (Source)
<table style="border-collapse: collapse; width: 194pt;" border="0" cellpadding="0" cellspacing="0" width="259"><col style="width: 48pt;" width="64"> <col style="width: 71pt;" width="95"> <col style="width: 75pt;" width="100"> <tbody><tr style="height: 15pt;" height="20"> <td class="xl63" style="height: 15pt; width: 48pt;" height="20" width="64">alt ad id</td> <td class="xl63" style="border-left: medium none; width: 71pt;" width="95">date</td> <td class="xl63" style="border-left: medium none; width: 75pt;" width="100">imps</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">line1</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">17-May</td> <td class="xl64" style="border-top: medium none; border-left: medium none;" align="right">2</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">line2</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">17-May</td> <td class="xl64" style="border-top: medium none; border-left: medium none;" align="right">3</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">line3</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">18-May</td> <td class="xl64" style="border-top: medium none; border-left: medium none;" align="right">4</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">line1</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">18-May</td> <td class="xl64" style="border-top: medium none; border-left: medium none;" align="right">5</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">line1</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">19-May</td> <td class="xl64" style="border-top: medium none; border-left: medium none;" align="right">6</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">line6</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">19-May</td> <td class="xl64" style="border-top: medium none; border-left: medium none;" align="right">7</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">line7</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">20-May</td> <td class="xl64" style="border-top: medium none; border-left: medium none;" align="right">8</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">line1</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">20-May</td> <td class="xl64" style="border-top: medium none; border-left: medium none;" align="right">9</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">line9</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">21-May</td> <td class="xl64" style="border-top: medium none; border-left: medium none;" align="right">10</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="height: 15pt; border-top: medium none;" height="20">line1</td> <td class="xl65" style="border-top: medium none; border-left: medium none;" align="right">21-May</td> <td class="xl64" style="border-top: medium none; border-left: medium none;" align="right">11</td> </tr> </tbody></table>

Sheet2, A18:C19 (Destination)
<table style="border-collapse: collapse; width: 194pt;" border="0" cellpadding="0" cellspacing="0" width="259"><col style="width: 48pt;" width="64"> <col style="width: 71pt;" width="95"> <col style="width: 75pt;" width="100"> <tbody><tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; width: 48pt;" height="20" width="64">date</td> <td class="xl67" style="border-left: medium none; width: 71pt;" align="right" width="95">21-May</td> <td class="xl66" style="border-left: medium none; width: 75pt;" width="100"> </td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl68" style="height: 15pt; border-top: medium none;" height="20">alt ad id</td> <td class="xl69" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl68" style="border-top: medium none; border-left: medium none;">yesterday imps</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl66" style="height: 15pt; border-top: medium none;" height="20">line1</td> <td class="xl66" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl66" style="border-top: medium none; border-left: medium none;" align="right">11</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl66" style="height: 15pt; border-top: medium none;" height="20">line7</td> <td class="xl66" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl66" style="border-top: medium none; border-left: medium none;" align="right">0</td> </tr> </tbody></table>
apologies in advance if this doesn't work.
 
Upvote 0

Forum statistics

Threads
1,216,122
Messages
6,128,963
Members
449,480
Latest member
yesitisasport

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top