Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
MeatLightning
 
Posts: n/a
Default how to count one value or another across multiple columns?

I have thre columns: One holds names (record keys), another could hold "X",
the last can have a "Y". I want to know how many records have either an "X"
or a "Y" value?

For example:

Column A Column B Column C
Matt X
Bill Y
John X Y
Fred X Y
Tom

How many records (i.e. column A) have either an X or Y?
  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

What result do you expect based on your example?

6 or 4 ?

Biff

"MeatLightning" wrote in message
...
I have thre columns: One holds names (record keys), another could hold "X",
the last can have a "Y". I want to know how many records have either an
"X"
or a "Y" value?

For example:

Column A Column B Column C
Matt X
Bill Y
John X Y
Fred X Y
Tom

How many records (i.e. column A) have either an X or Y?



  #3   Report Post  
Biff
 
Posts: n/a
Default

Doh!

It would help if I read the entire post!

How many records (i.e. column A) have either an X or Y?


Try this:

=COUNTA(A2:A6)-SUMPRODUCT(--(ISBLANK(B2:B6)),--(ISBLANK(C2:C6)))

Will work as long as there are no empty rows within the range.

Biff

"Biff" wrote in message
...
Hi!

What result do you expect based on your example?

6 or 4 ?

Biff

"MeatLightning" wrote in message
...
I have thre columns: One holds names (record keys), another could hold
"X",
the last can have a "Y". I want to know how many records have either an
"X"
or a "Y" value?

For example:

Column A Column B Column C
Matt X
Bill Y
John X Y
Fred X Y
Tom

How many records (i.e. column A) have either an X or Y?





  #11   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

=SUMPRODUCT(--(($B$2:$B$6="X")+($C$2:$C$6="Y")0))

MeatLightning wrote:
I have thre columns: One holds names (record keys), another could hold "X",
the last can have a "Y". I want to know how many records have either an "X"
or a "Y" value?

For example:

Column A Column B Column C
Matt X
Bill Y
John X Y
Fred X Y
Tom

How many records (i.e. column A) have either an X or Y?

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
Count on multiple columns Emece Excel Worksheet Functions 2 March 4th 05 02:52 PM
Count with multiple conditions Toby0924 Excel Worksheet Functions 3 February 2nd 05 01:35 PM
count cells over multiple sheets Have three columns R,S,T Excel Worksheet Functions 4 December 18th 04 01:36 PM
Count If Formula for multiple conditions?? How To?? LPrain Excel Worksheet Functions 1 December 6th 04 09:18 PM
Count rows based on multiple criteria Murph Excel Worksheet Functions 1 October 28th 04 07:13 AM


All times are GMT +1. The time now is 09:47 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"