I am looking to do a sum of a bunch of data. I will do my best to lay out the file and what I am looking for.
I have a sheet (line 1) with every day of the year in column B
Also on that sheet, I have a 1 or a zero in column K
On a different sheet (test), I have random dates (dates something took place)
[TABLE="width: 534"]
<colgroup><col width="78" style="width: 59pt; mso-width-source: userset; mso-width-alt: 2852;"> <col width="57" style="width: 43pt; mso-width-source: userset; mso-width-alt: 2084;"> <col width="64" style="width: 48pt;" span="9"> <tbody>[TR]
[TD="width: 78, bgcolor: silver"]Date[/TD]
[TD="width: 57, bgcolor: silver"]CO
(lb/hr)[/TD]
[TD="width: 64, bgcolor: silver"]NOX (Shutdown only)
(lb/hr)[/TD]
[TD="width: 64, bgcolor: silver"]PMfilt
(lb/hr)[/TD]
[TD="width: 64, bgcolor: silver"]PM10
(lb/hr)[/TD]
[TD="width: 64, bgcolor: silver"]PM2.5
(lb/hr)[/TD]
[TD="width: 64, bgcolor: silver"]SO2
(lb/hr)[/TD]
[TD="width: 64, bgcolor: silver"]VOC
(lb/hr)[/TD]
[TD="width: 64, bgcolor: silver"]Acrylonitrile
(lb/hr)[/TD]
[TD="width: 64, bgcolor: silver"]HCN
(lb/hr)[/TD]
[TD="width: 64, bgcolor: silver"]NH3
(lb/hr)[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 534"]
<colgroup><col width="78" style="width: 59pt; mso-width-source: userset; mso-width-alt: 2852;"> <col width="57" style="width: 43pt; mso-width-source: userset; mso-width-alt: 2084;"> <col width="64" style="width: 48pt;" span="9"> <tbody>[TR]
[TD="width: 78, bgcolor: transparent, align: right"]4/1/2018[/TD]
[TD="width: 57, bgcolor: transparent, align: right"]0.6[/TD]
[TD="width: 64, bgcolor: transparent"][/TD]
[TD="width: 64, bgcolor: transparent, align: right"]1.1[/TD]
[TD="width: 64, bgcolor: transparent, align: right"]3.7[/TD]
[TD="width: 64, bgcolor: transparent, align: right"]3.7[/TD]
[TD="width: 64, bgcolor: transparent, align: right"]0.42[/TD]
[TD="width: 64, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00B050]#00B050[/URL] , align: right"]0.4[/TD]
[TD="width: 64, bgcolor: transparent"][/TD]
[TD="width: 64, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00B050]#00B050[/URL] , align: right"]0.99[/TD]
[TD="width: 64, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00B050]#00B050[/URL] , align: right"]0.68[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]5/23/2018[/TD]
[TD="bgcolor: transparent, align: right"]0.6[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00B050]#00B050[/URL] , align: right"]0.35[/TD]
[TD="bgcolor: red, align: right"]3.7[/TD]
[TD="bgcolor: red, align: right"]3.7[/TD]
[TD="bgcolor: transparent, align: right"]0.42[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00B050]#00B050[/URL] , align: right"]0.6[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00B050]#00B050[/URL] , align: right"]0.0018[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00B050]#00B050[/URL] , align: right"]0.61[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00B050]#00B050[/URL] , align: right"]0.66
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]7/18/2018[/TD]
[TD="bgcolor: transparent, align: right"]0.6[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent, align: right"]0.4[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00B050]#00B050[/URL] , align: right"]2.7[/TD]
[TD="bgcolor: transparent, align: right"]2.7[/TD]
[TD="bgcolor: transparent, align: right"]0.42[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00B050]#00B050[/URL] , align: right"]0.6[/TD]
[TD="bgcolor: transparent, align: right"]0.0038[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00B050]#00B050[/URL] , align: right"]0.61[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00B050]#00B050[/URL] , align: right"]0.66
[/TD]
[/TR]
</tbody>[/TABLE]
No for the index beyond me. On a different sheet, where the equation will go, I am looking for an index that says if column K in sheet (line 1) =1 find test before that date and multiply by the factor * .58 + another factor that is not going to change * 0.42 and do that for the entire year and sum them up. there are about 16 times K will = 1 Any help would be great.
thanks
I have a sheet (line 1) with every day of the year in column B
Also on that sheet, I have a 1 or a zero in column K
On a different sheet (test), I have random dates (dates something took place)
[TABLE="width: 534"]
<colgroup><col width="78" style="width: 59pt; mso-width-source: userset; mso-width-alt: 2852;"> <col width="57" style="width: 43pt; mso-width-source: userset; mso-width-alt: 2084;"> <col width="64" style="width: 48pt;" span="9"> <tbody>[TR]
[TD="width: 78, bgcolor: silver"]Date[/TD]
[TD="width: 57, bgcolor: silver"]CO
(lb/hr)[/TD]
[TD="width: 64, bgcolor: silver"]NOX (Shutdown only)
(lb/hr)[/TD]
[TD="width: 64, bgcolor: silver"]PMfilt
(lb/hr)[/TD]
[TD="width: 64, bgcolor: silver"]PM10
(lb/hr)[/TD]
[TD="width: 64, bgcolor: silver"]PM2.5
(lb/hr)[/TD]
[TD="width: 64, bgcolor: silver"]SO2
(lb/hr)[/TD]
[TD="width: 64, bgcolor: silver"]VOC
(lb/hr)[/TD]
[TD="width: 64, bgcolor: silver"]Acrylonitrile
(lb/hr)[/TD]
[TD="width: 64, bgcolor: silver"]HCN
(lb/hr)[/TD]
[TD="width: 64, bgcolor: silver"]NH3
(lb/hr)[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 534"]
<colgroup><col width="78" style="width: 59pt; mso-width-source: userset; mso-width-alt: 2852;"> <col width="57" style="width: 43pt; mso-width-source: userset; mso-width-alt: 2084;"> <col width="64" style="width: 48pt;" span="9"> <tbody>[TR]
[TD="width: 78, bgcolor: transparent, align: right"]4/1/2018[/TD]
[TD="width: 57, bgcolor: transparent, align: right"]0.6[/TD]
[TD="width: 64, bgcolor: transparent"][/TD]
[TD="width: 64, bgcolor: transparent, align: right"]1.1[/TD]
[TD="width: 64, bgcolor: transparent, align: right"]3.7[/TD]
[TD="width: 64, bgcolor: transparent, align: right"]3.7[/TD]
[TD="width: 64, bgcolor: transparent, align: right"]0.42[/TD]
[TD="width: 64, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00B050]#00B050[/URL] , align: right"]0.4[/TD]
[TD="width: 64, bgcolor: transparent"][/TD]
[TD="width: 64, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00B050]#00B050[/URL] , align: right"]0.99[/TD]
[TD="width: 64, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00B050]#00B050[/URL] , align: right"]0.68[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]5/23/2018[/TD]
[TD="bgcolor: transparent, align: right"]0.6[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00B050]#00B050[/URL] , align: right"]0.35[/TD]
[TD="bgcolor: red, align: right"]3.7[/TD]
[TD="bgcolor: red, align: right"]3.7[/TD]
[TD="bgcolor: transparent, align: right"]0.42[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00B050]#00B050[/URL] , align: right"]0.6[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00B050]#00B050[/URL] , align: right"]0.0018[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00B050]#00B050[/URL] , align: right"]0.61[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00B050]#00B050[/URL] , align: right"]0.66
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]7/18/2018[/TD]
[TD="bgcolor: transparent, align: right"]0.6[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent, align: right"]0.4[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00B050]#00B050[/URL] , align: right"]2.7[/TD]
[TD="bgcolor: transparent, align: right"]2.7[/TD]
[TD="bgcolor: transparent, align: right"]0.42[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00B050]#00B050[/URL] , align: right"]0.6[/TD]
[TD="bgcolor: transparent, align: right"]0.0038[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00B050]#00B050[/URL] , align: right"]0.61[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00B050]#00B050[/URL] , align: right"]0.66
[/TD]
[/TR]
</tbody>[/TABLE]
No for the index beyond me. On a different sheet, where the equation will go, I am looking for an index that says if column K in sheet (line 1) =1 find test before that date and multiply by the factor * .58 + another factor that is not going to change * 0.42 and do that for the entire year and sum them up. there are about 16 times K will = 1 Any help would be great.
thanks