#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 129
Default COUNTIF

Stefi,

my numbers are arranged in different cells in a row.. A1(1) B1(2) C1(3) etc..

My pairs of numbers are arranged also in different cells.

"Stefi" wrote:

How are your numbers arranged? Are they comma separated strings in one cell
as in your example, or are they stored in separate cells, e.g. in range A1:A6
like that:
A1 1
A2 2
etc.
Also, how are arranged the pairs of numbers?

Regards,
Stefi


€˛Will€¯ ezt Ć*rta:

Hi,

I have a project to count how freq a pair of numbers appear amount a few
groups of 6 numbers.

Lets say I have 2 pairs of 6 numbers, (1,2,3,4,5,6) & (1,3,5,7,9) and pairs
(1,3) & (3,5) appears twice in these 2 pairs of 6 numbers. I am unable to
find a suitable formula for this problem and the nearest I can do is COUNTIF
but COUNTIF can only cater 1 CRITERIA but in these i believe I have 2 or
more.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 129
Default COUNTIF

Stefi,

problem solved.. if i have 20-30 groups of 6, meaning i have to do tis
formula 20-30 times?

"Stefi" wrote:

This is probably not the optimal sulution but for the moment I couldn't find
the single formula (I guess it should be an array formula) fulfilling your
request. Say your data are arranged in this pattern:
groups of 6 pairs result
A1 ... F1 H1 I1 J1
A2 ... F2 J2
J3

Enter in J1
=IF(AND(COUNTIF($A1:$F1,H$1)=1,COUNTIF($A1:$F1,I$1 )=1),1,0)
Fill it down to the last group of 6 (2 in my example)
Autosum column J in J3

Regards,
Stefi


€˛Will€¯ ezt Ć*rta:

Stefi,

my numbers are arranged in different cells in a row.. A1(1) B1(2) C1(3) etc..

My pairs of numbers are arranged also in different cells.

"Stefi" wrote:

How are your numbers arranged? Are they comma separated strings in one cell
as in your example, or are they stored in separate cells, e.g. in range A1:A6
like that:
A1 1
A2 2
etc.
Also, how are arranged the pairs of numbers?

Regards,
Stefi


€˛Will€¯ ezt Ć*rta:

Hi,

I have a project to count how freq a pair of numbers appear amount a few
groups of 6 numbers.

Lets say I have 2 pairs of 6 numbers, (1,2,3,4,5,6) & (1,3,5,7,9) and pairs
(1,3) & (3,5) appears twice in these 2 pairs of 6 numbers. I am unable to
find a suitable formula for this problem and the nearest I can do is COUNTIF
but COUNTIF can only cater 1 CRITERIA but in these i believe I have 2 or
more.

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
How do I use a countif function according to two other countif fu. Kirsty Excel Worksheet Functions 2 February 20th 06 11:44 AM
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") sctroy Excel Discussion (Misc queries) 2 September 25th 05 04:13 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
countif? anand Excel Worksheet Functions 1 May 12th 05 07:56 PM
COUNTIF in one colum then COUNTIF in another...??? JonnieP Excel Worksheet Functions 3 February 22nd 05 02:55 PM


All times are GMT +1. The time now is 05:04 PM.

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

About Us

"It's about Microsoft Excel"