Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 287
Default COUNTIF and programming

I have a few thousand rows Of data, each row has 1-7 outputs in the adjacent
columns. There are 27 different types of outputs. Lets just say A- Z, the
maximum amount of outputs for any row is 7. Some only have A, some have, A,
B and C and so forth. Each output is in its own column.

Basically, i need to a count of all this data, but heres the catch. I need
to do counts like this, if a row contains A. B, C and X then count. If a row
contains A E Y G then count.

I have 8 different things that need to be tallied, and they all have
specific definitions from the 27 possible outputs that are in the columns.

I hope that this makes sense, and thanks in advance for helping me!!

-Adam
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default COUNTIF and programming

Hi,
You need to be more specific. What do you want counted and what do you not
want counted? The only thing I see is common when to count is the "A", so
always count is there is an "A"? It will appear always in the same column?

Might give us some examples of the output to count and where it is located
and some output not to count and where it is located?

David

"Adam" wrote:

I have a few thousand rows Of data, each row has 1-7 outputs in the adjacent
columns. There are 27 different types of outputs. Lets just say A- Z, the
maximum amount of outputs for any row is 7. Some only have A, some have, A,
B and C and so forth. Each output is in its own column.

Basically, i need to a count of all this data, but heres the catch. I need
to do counts like this, if a row contains A. B, C and X then count. If a row
contains A E Y G then count.

I have 8 different things that need to be tallied, and they all have
specific definitions from the 27 possible outputs that are in the columns.

I hope that this makes sense, and thanks in advance for helping me!!

-Adam

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 287
Default COUNTIF and programming

Ok here it goes. So in the 8 or so possible colums, i need it to count if.....
A if found by its self in a row, B is found by its self in a row, or if A
and B are found in a row anywhere. And for it to not count if none of these
are satisfied.


"David" wrote:

Hi,
You need to be more specific. What do you want counted and what do you not
want counted? The only thing I see is common when to count is the "A", so
always count is there is an "A"? It will appear always in the same column?

Might give us some examples of the output to count and where it is located
and some output not to count and where it is located?

David

"Adam" wrote:

I have a few thousand rows Of data, each row has 1-7 outputs in the adjacent
columns. There are 27 different types of outputs. Lets just say A- Z, the
maximum amount of outputs for any row is 7. Some only have A, some have, A,
B and C and so forth. Each output is in its own column.

Basically, i need to a count of all this data, but heres the catch. I need
to do counts like this, if a row contains A. B, C and X then count. If a row
contains A E Y G then count.

I have 8 different things that need to be tallied, and they all have
specific definitions from the 27 possible outputs that are in the columns.

I hope that this makes sense, and thanks in advance for helping me!!

-Adam

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default COUNTIF and programming

This is how I laid out the data:

12345678 Ct
a 1
b 1
ab 2
cdefgh 0
abababab 8

The formula under the Ct column is =COUNTIF(A6:H6,"a")+COUNTIF(A6:H6,"b"),
which was placed in cell I8. Maybe this will help.

David

"Adam" wrote:

Ok here it goes. So in the 8 or so possible colums, i need it to count if.....
A if found by its self in a row, B is found by its self in a row, or if A
and B are found in a row anywhere. And for it to not count if none of these
are satisfied.


"David" wrote:

Hi,
You need to be more specific. What do you want counted and what do you not
want counted? The only thing I see is common when to count is the "A", so
always count is there is an "A"? It will appear always in the same column?

Might give us some examples of the output to count and where it is located
and some output not to count and where it is located?

David

"Adam" wrote:

I have a few thousand rows Of data, each row has 1-7 outputs in the adjacent
columns. There are 27 different types of outputs. Lets just say A- Z, the
maximum amount of outputs for any row is 7. Some only have A, some have, A,
B and C and so forth. Each output is in its own column.

Basically, i need to a count of all this data, but heres the catch. I need
to do counts like this, if a row contains A. B, C and X then count. If a row
contains A E Y G then count.

I have 8 different things that need to be tallied, and they all have
specific definitions from the 27 possible outputs that are in the columns.

I hope that this makes sense, and thanks in advance for helping me!!

-Adam

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
countif programming function RegRat Excel Worksheet Functions 4 February 17th 07 12:24 AM
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 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 02:33 AM.

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"