Re: need help coming up with a formula.
- From: "Bob Phillips" <bob.phillips@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 12 Dec 2005 19:49:42 -0000
One way
=(SUMPRODUCT(--(A1:A20>0),--(A1:A20<=10),B1:B20)+SUMPRODUCT(--(C1:C20>0),--(
C1:C20<=10),D1:D20))/(SUMPRODUCT(--(A1:A20>0),--(A1:A20<=10))+SUMPRODUCT(--(
C1:C20>0),--(C1:C20<=10)))
--
HTH
RP
(remove nothere from the email address if mailing direct)
"Sterling" <Sterling.1zxxda_1134413406.2452@xxxxxxxxxxxxxxxxxxxxx> wrote in
message news:Sterling.1zxxda_1134413406.2452@xxxxxxxxxxxxxxxxxxxxxxxx
>
> One more question if I may:
>
> I've used this formula and it works great:
>
> =AVERAGE(IF((A1:A20>0)*(A1:A20<=10),B1:B20))
>
> Now, how do I incorporate a second set of data say in columns C and D.
> For example, the first set of data, as I posted, would be for cars and
> the second set would be for trucks. Using the above formula I can find
> out the average cost for 0-10 day cars and 0-10 day trucks. How would I
> set up the formula to come up with 0-10 day -vehicles-?
>
> TIA again.
>
>
> --
> Sterling
> ------------------------------------------------------------------------
> Sterling's Profile:
http://www.excelforum.com/member.php?action=getinfo&userid=29554
> View this thread: http://www.excelforum.com/showthread.php?threadid=492585
>
.
- Follow-Ups:
- Re: need help coming up with a formula.
- From: Sterling
- Re: need help coming up with a formula.
- References:
- need help coming up with a formula.
- From: Sterling
- Important addition: [Ctrl]+[Shift]+[Enter]
- From: Ron Coderre
- Re: need help coming up with a formula.
- From: Sterling
- Re: need help coming up with a formula.
- From: Sterling
- need help coming up with a formula.
- Prev by Date: Re: How to change an excel *** into a picture?
- Next by Date: How do I add a search function?
- Previous by thread: Re: need help coming up with a formula.
- Next by thread: Re: need help coming up with a formula.
- Index(es):