Thanks again...
What if I wanted to add the cost amounts from columns I2 to L500 meeting the
same standards as before?
Jen
> You're welcome.
>
[quoted text clipped - 62 lines]
> >> > City of South Bend
> >> > Engineering
Ok,
You stated I2 to L500.
Assuming that was supposed to be L2 to L500 and also assuming you mean
instead of column F, then:
=SUMPRODUCT(--(MONTH('2008'!A2:A500)=1),--(YEAR('2008'!A2:A500)=2008),--('2008'!D2:D500="Quotation
Award"),--('2008'!E2:E500="Construction"),('2008'!L2:L500))
Now, if you mean L2 to L500 added to F2 to F500, then:
=SUMPRODUCT(--(MONTH('[2008.xls]2008'!A2:A500)=MONTH(A1)),--(YEAR('[2008.xls]2008'!A2:A500)=YEAR(A1)),--('[2008.xls]2008'!D2:D500=A2),--('[2008.xls]2008'!E2:E500=A3),('[2008.xls]2008'!F2:F500)+('[2008.xls]2008'!I2:I500))
If you DID mean the sume of I2 to L500 and adding to F2 to F500, then maybe
this:
=SUMPRODUCT(--(MONTH('[2008.xls]2008'!A2:A500)=MONTH(A1)),--(YEAR('[2008.xls]2008'!A2:A500)=YEAR(A1)),--('[2008.xls]2008'!D2:D500="Quotation
Award"),--('[2008.xls]2008'!E2:E500="Construction"),('[2008.xls]2008'!F2:F500)+(SUM('[2008.xls]2008'!I2:L500)))
HTH,
Paul
> Thanks again...
>
[quoted text clipped - 78 lines]
>> >> > City of South Bend
>> >> > Engineering
jcorle - 28 Feb 2008 14:43 GMT
Paul,
I'm so sorry to push this. I have 33 other 'types' of instances to count
besides Quotation Openings so I can't use the short cut. I guess I don't
need the year part because everything in this workbook is going to be 2008.
I was able to modify the second calculation in your last response to suit
what I needed:
=SUMPRODUCT(--(MONTH('2008'!A2:A500)=1))--('2008'!D2:D500="Quotation
Award")--('2008'!E2:E500="Construction")*('2008'!F2:F500)+(SUM('2008'!J2:J500))
however, it is calcluating everything in the J column not just those records
that would fit in the Quotation award and Construction categories. Also, it
keeps automatically taking out the commas between the sections.
Another example is I changed the query standards to just the month = january
and the typic as claims and it comes up with the same amount as above.
=SUMPRODUCT(--(MONTH('2008'!A2:A500)=1))--('2008'!D2:D500="Claims")*('2008'!F2:F500)+(SUM('2008'!J2:J500))
Like I said, I'm really sorry to push this. I do appreciate your help.
Jen
> Ok,
>
[quoted text clipped - 100 lines]
> >> >> > City of South Bend
> >> >> > Engineering
PCLIVE - 28 Feb 2008 15:39 GMT
Hi Jen,
As you pointed out, there were some missing some commas. There was also an
added asterisk. Additionally, the SUM function is not needed nor will it
function the way I had orginally suggested. Your first formula that you
modified should be this:
=SUMPRODUCT(--(MONTH([2008.xls]Sheet1!A2:A500)=1),--([2008.xls]Sheet1!D2:D500="Quotation
Award"),--([2008.xls]Sheet1!E2:E500="Construction"),([2008.xls]Sheet1!F2:F500)+([2008.xls]Sheet1!J2:J500))
Your second formula should be this:
=SUMPRODUCT(--(MONTH([2008.xls]Sheet1!A2:A500)=1),--([2008.xls]Sheet1!D2:D500="Claims"),([2008.xls]Sheet1!F2:F500)+([2008.xls]Sheet1!J2:J500))
HTH,
Paul
> Paul,
>
[quoted text clipped - 138 lines]
>> >> >> > City of South Bend
>> >> >> > Engineering