WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

count if for more than one criteria

 
   Home -> Office -> Worksheet Functions RSS
Next:  Find Exact Match using INDEX, MATCH  
Author Message
Gerardo

External


Since: Nov 29, 2007
Posts: 12



(Msg. 1) Posted: Thu Aug 14, 2008 2:01 pm
Post subject: count if for more than one criteria
Archived from groups: microsoft>public>excel>worksheet>functions (more info?)

For several items listed in rows, I have one column with values "old" and
"new" . In each column in the array I have months from 01/2004 through
12/2014. I want to count values in the array that are more than 0.2 and "new"
in one row and more than 0.2 and "old" in a second row. The problem is that
count if only counts either more than 0.2 values or "old" or "new".

Any ideas?
Back to top
Login to vote
Roger Govier

External


Since: Nov 28, 2007
Posts: 1216



(Msg. 2) Posted: Fri Aug 15, 2008 12:13 am
Post subject: Re: count if for more than one criteria [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Gerardo

I have no idea what 0.2 means
If it means Month 2 then try the following
=SUMPRODUCT(($A$1:$A$1000="New")*(MONTH(($B$2:$B$100)=2))

--
Regards
Roger Govier

"Gerardo" <Gerardo.RemoveThis@discussions.microsoft.com> wrote in message
news:E27B6B13-4968-41EA-916E-CEFC3FF96C7B@microsoft.com...
> For several items listed in rows, I have one column with values "old" and
> "new" . In each column in the array I have months from 01/2004 through
> 12/2014. I want to count values in the array that are more than 0.2 and
> "new"
> in one row and more than 0.2 and "old" in a second row. The problem is
> that
> count if only counts either more than 0.2 values or "old" or "new".
>
> Any ideas?
Back to top
Login to vote
Gerardo

External


Since: Nov 29, 2007
Posts: 12



(Msg. 3) Posted: Fri Aug 15, 2008 11:08 am
Post subject: RE: count if for more than one criteria [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thank you, the 0.2 are the values I want to evaluate in each element of the
array. Items are in rows and months are in columns, for example item 1 could
be 0.5 in January and 0.2 in February. What I want to sum is all the values
greater than 0.2 for each month.

"Gerardo" wrote:

> For several items listed in rows, I have one column with values "old" and
> "new" . In each column in the array I have months from 01/2004 through
> 12/2014. I want to count values in the array that are more than 0.2 and "new"
> in one row and more than 0.2 and "old" in a second row. The problem is that
> count if only counts either more than 0.2 values or "old" or "new".
>
> Any ideas?
Back to top
Login to vote
Pete_UK

External


Since: Apr 17, 2007
Posts: 4147



(Msg. 4) Posted: Fri Aug 15, 2008 11:18 am
Post subject: Re: count if for more than one criteria [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Tell us which columns you are using for the old/new values and for the
values >0.2 - do you have 12 columns, one for each month?

Pete

On Aug 15, 7:08 pm, Gerardo <Gera... DeleteThis @discussions.microsoft.com> wrote:
> Thank you, the 0.2 are the values I want to evaluate in each element of the
> array. Items are in rows and months are in columns, for example item 1 could
> be 0.5 in January and 0.2 in February. What I want to sum is all the values
> greater than 0.2 for each month.
>
>
>
> "Gerardo" wrote:
> > For several items listed in rows, I have one column with values "old" and
> > "new" . In each column in the array I have months from 01/2004 through
> > 12/2014. I want to count values in the array that are more than 0.2 and "new"
> > in one row and more than 0.2 and "old" in a second row. The problem is that
> > count if only counts either more than 0.2 values or "old" or "new".
>
> > Any ideas?- Hide quoted text -
>
> - Show quoted text -
Back to top
Login to vote
Gerardo

External


Since: Nov 29, 2007
Posts: 12



(Msg. 5) Posted: Mon Aug 18, 2008 7:37 am
Post subject: Re: count if for more than one criteria [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello,

Column 1 keeps names for each item, column 2 keeps old/new values and the
rest of columns are months from Jan-2004 to Dec-2014.

A B C D E
1 Name Type Jan-2004 Feb-2004 Mar-2004
2 Item 1 Old 0.545 0.454 0.152
3 Item 2 New 0.030 1.354 0.854
4 Item 3 New 1.256 0.600 0.400

Count new items greater than 0.2 each month
Count old items greater than 0.2 each month

Regards

"Pete_UK" wrote:

> Tell us which columns you are using for the old/new values and for the
> values >0.2 - do you have 12 columns, one for each month?
>
> Pete
>
> On Aug 15, 7:08 pm, Gerardo <Gera... RemoveThis @discussions.microsoft.com> wrote:
> > Thank you, the 0.2 are the values I want to evaluate in each element of the
> > array. Items are in rows and months are in columns, for example item 1 could
> > be 0.5 in January and 0.2 in February. What I want to sum is all the values
> > greater than 0.2 for each month.
> >
> >
> >
> > "Gerardo" wrote:
> > > For several items listed in rows, I have one column with values "old" and
> > > "new" . In each column in the array I have months from 01/2004 through
> > > 12/2014. I want to count values in the array that are more than 0.2 and "new"
> > > in one row and more than 0.2 and "old" in a second row. The problem is that
> > > count if only counts either more than 0.2 values or "old" or "new".
> >
> > > Any ideas?- Hide quoted text -
> >
> > - Show quoted text -
>
>
Back to top
Login to vote
Roger Govier

External


Since: Nov 28, 2007
Posts: 1216



(Msg. 6) Posted: Mon Aug 18, 2008 3:57 pm
Post subject: Re: count if for more than one criteria [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi

Insert 2 new rows above your Header row.
In the new B1 type Old
In the new B2 type New
In cell C1 enter
=SUMPRODUCT(($B$4:$B$1000=$B1)*(C$4:C$1000>0.2))
Copy formula down to C2
Copy C1:C2 across the sheet as far as you wish

--
Regards
Roger Govier

"Gerardo" <Gerardo.DeleteThis@discussions.microsoft.com> wrote in message
news:B0075900-9EC7-4944-8412-7E16969C9D08@microsoft.com...
> Hello,
>
> Column 1 keeps names for each item, column 2 keeps old/new values and the
> rest of columns are months from Jan-2004 to Dec-2014.
>
> A B C D E
> 1 Name Type Jan-2004 Feb-2004 Mar-2004
> 2 Item 1 Old 0.545 0.454 0.152
> 3 Item 2 New 0.030 1.354 0.854
> 4 Item 3 New 1.256 0.600 0.400
>
> Count new items greater than 0.2 each month
> Count old items greater than 0.2 each month
>
> Regards
>
> "Pete_UK" wrote:
>
>> Tell us which columns you are using for the old/new values and for the
>> values >0.2 - do you have 12 columns, one for each month?
>>
>> Pete
>>
>> On Aug 15, 7:08 pm, Gerardo <Gera....DeleteThis@discussions.microsoft.com> wrote:
>> > Thank you, the 0.2 are the values I want to evaluate in each element of
>> > the
>> > array. Items are in rows and months are in columns, for example item 1
>> > could
>> > be 0.5 in January and 0.2 in February. What I want to sum is all the
>> > values
>> > greater than 0.2 for each month.
>> >
>> >
>> >
>> > "Gerardo" wrote:
>> > > For several items listed in rows, I have one column with values "old"
>> > > and
>> > > "new" . In each column in the array I have months from 01/2004
>> > > through
>> > > 12/2014. I want to count values in the array that are more than 0.2
>> > > and "new"
>> > > in one row and more than 0.2 and "old" in a second row. The problem
>> > > is that
>> > > count if only counts either more than 0.2 values or "old" or "new".
>> >
>> > > Any ideas?- Hide quoted text -
>> >
>> > - Show quoted text -
>>
>>
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Worksheet Functions All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET