Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 27
Default count if for more than one criteria

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?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default count if for more than one criteria

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$1 00)=2))

--
Regards
Roger Govier

"Gerardo" wrote in message
...
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?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 27
Default count if for more than one criteria

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?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default count if for more than one criteria

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 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 -


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 27
Default count if for more than one criteria

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 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 -





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default count if for more than one criteria

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$10000.2))
Copy formula down to C2
Copy C1:C2 across the sheet as far as you wish

--
Regards
Roger Govier

"Gerardo" wrote in message
...
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 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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Criteria, Count If, Sum Product to get count across range Jonathan Excel Worksheet Functions 5 January 9th 08 11:32 PM
Criteria count Gaetan Excel Discussion (Misc queries) 7 June 4th 07 01:44 PM
count using criteria ferde Excel Discussion (Misc queries) 4 March 21st 07 04:01 PM
How to count nos. on 3 criteria Excel_Learner Excel Worksheet Functions 5 August 28th 06 03:17 PM
Count If 3 Criteria Met kieffer Excel Worksheet Functions 9 April 15th 06 12:38 AM


All times are GMT +1. The time now is 06:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"