Re: COUNTIF & Criteria
- From: "Peo Sjoblom" <terre08@xxxxxxxx>
- Date: Fri, 16 Dec 2005 12:09:24 -0800
I am not sure I understand, but maybe
=SUM(COUNTIF(Revised!$A$2:$A$336,">="&G2:G336))-SUM(COUNTIF(Revised!$A$2:$A$
336,">"&I2:I336))
needs to be array entered with ctrl + shift & enter
--
Regards,
Peo Sjoblom
"David Lipetz" <dlipetz@xxxxxxxxxxx> wrote in message
news:uv%23cKlnAGHA.272@xxxxxxxxxxxxxxxxxxxxxxx
> Thanks Peo! That worked, but now I have another problem.
>
> I wanted to create this as an array formula so that the criteria is
selected
> from each row: G2 & I2, G3 & I3, and so forth. With the & in front of the
> cell reference, it uses that same reference throughout the array.
>
>
> "Peo Sjoblom" <terre08@xxxxxxxx> wrote in message
> news:%23sFhmgnAGHA.3976@xxxxxxxxxxxxxxxxxxxxxxx
> > Try
> >
> >
=COUNTIF(Revised!$A$2:$A$336,">="&G2)-COUNTIF(Revised!$A$2:$A$336,">"&I2)
> >
> > otherwise excel sees it as you are looking for the text G2 and I2
> >
> >
> > --
> >
> > Regards,
> >
> > Peo Sjoblom
> >
> > "David Lipetz" <dlipetz@xxxxxxxxxxx> wrote in message
> > news:e27TFenAGHA.4080@xxxxxxxxxxxxxxxxxxxxxxx
> >> I'm using the SUMIF function to add numbers in a range that meet a
given
> >> criteria. The criteria I need to use is a range of numbers (>=1 and
<=5,
> >>=6
> >> and <=10, etc).
> >>
> >> While I have been able to perform this calculation by hard coding in
the
> >> parameters (">=1" and ">5" for example), I am unable to complete the
> > formula
> >> if I want to use cell references for the criteria.
> >>
> >> Here is the whole formula that currently works by hard coding in the
> >> criteria:
> >>
> >> =COUNTIF(Revised!$A$2:$A$336,">=1")-COUNTIF(Revised!$A$2:$A$336,">5")
> >>
> >> In other words, I want to use >=G2 rather than >=1 and use >I2 rather
> >> than
> >> >5.
> >>
> >> How do I accomplish this?
> >>
> >> Thanks,
> >> David
> >>
> >>
> >
> >
>
>
.
- Follow-Ups:
- Re: COUNTIF & Criteria
- From: David Lipetz
- Re: COUNTIF & Criteria
- References:
- COUNTIF & Criteria
- From: David Lipetz
- Re: COUNTIF & Criteria
- From: Peo Sjoblom
- Re: COUNTIF & Criteria
- From: David Lipetz
- COUNTIF & Criteria
- Prev by Date: Re: COUNTIF & Criteria
- Next by Date: Re: finding out pairs of positive & negative numbers!
- Previous by thread: Re: COUNTIF & Criteria
- Next by thread: Re: COUNTIF & Criteria
- Index(es):
Relevant Pages
|