PC Review


Reply
Thread Tools Rate Thread

count if for more than one criteria

 
 
Gerardo
Guest
Posts: n/a
 
      14th Aug 2008
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?
 
Reply With Quote
 
 
 
 
Roger Govier
Guest
Posts: n/a
 
      15th Aug 2008
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" <(E-Mail Removed)> wrote in message
news:E27B6B13-4968-41EA-916E-(E-Mail Removed)...
> 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?


 
Reply With Quote
 
Gerardo
Guest
Posts: n/a
 
      15th Aug 2008
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?

 
Reply With Quote
 
Pete_UK
Guest
Posts: n/a
 
      15th Aug 2008
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...@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 -


 
Reply With Quote
 
Gerardo
Guest
Posts: n/a
 
      18th Aug 2008
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...@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 -

>
>

 
Reply With Quote
 
Roger Govier
Guest
Posts: n/a
 
      18th Aug 2008
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" <(E-Mail Removed)> wrote in message
news:B0075900-9EC7-4944-8412-(E-Mail Removed)...
> 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...@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 -

>>
>>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count with two criteria LisaK Microsoft Excel Worksheet Functions 2 18th Mar 2010 04:51 PM
Count how many criteria in a column match criteria in another colu Charles Stover Microsoft Excel Misc 2 6th Mar 2009 08:39 PM
Multiple Criteria, Count If, Sum Product to get count across range Jonathan Microsoft Excel Worksheet Functions 5 9th Jan 2008 11:32 PM
Re: count instances of one criteria withing results of another criteria Jason Morin Microsoft Excel Worksheet Functions 0 6th May 2004 08:59 PM
Count by criteria nrage21 Microsoft Excel Worksheet Functions 9 9th Apr 2004 03:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:16 AM.