=AND(A2="Closed",C2-B2<=2)

Signature
---
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
>I need a formula to check for status="Closed" and delivery within 2 days of
> requested date.
[quoted text clipped - 15 lines]
>
> Thank you.
adimar - 01 Feb 2008 19:04 GMT
Can you please suggest a sumproduct format?
I need to count how many items in the array satisfy this condition.
When I attempt sumproduct I get a #VALUE error.
BTW, some dates may not be filled in, so I need to check valid date as well.
Thank you.
> =AND(A2="Closed",C2-B2<=2)
>
[quoted text clipped - 17 lines]
> >
> > Thank you.
Bob Phillips - 01 Feb 2008 21:18 GMT
=SUMPRODUCT(--(A2:A20="Closed"),--(C2:C20-B2:B20<=2))

Signature
---
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
> Can you please suggest a sumproduct format?
>
[quoted text clipped - 27 lines]
>> >
>> > Thank you.
adimar - 01 Feb 2008 22:24 GMT
One more Question:
Since this one works fine:
RawData!$AF$1:$AF$10000>RawData!$AD$1:$AD$10000
Why does this return a #VALUE error?
RawData!$AF$1:$AF$10000-1>RawData!$AD$1:$AD$10000
Thank you.
> =SUMPRODUCT(--(A2:A20="Closed"),--(C2:C20-B2:B20<=2))
Bob Phillips - 02 Feb 2008 11:21 GMT
(RawData!$AF$1:$AF$10-1)>RawData!$AD$1:$AD$10

Signature
---
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
> One more Question:
>
[quoted text clipped - 7 lines]
>
>> =SUMPRODUCT(--(A2:A20="Closed"),--(C2:C20-B2:B20<=2))