Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Lee
 
Posts: n/a
Default Count with 2 conditions?

My data is in the following format

A B
1 2
1 0
2 0

I want to count how often there is a "1" in column A and a corresponding 2
(in the same row) in colum B

Thanks
  #2   Report Post  
Gary Brown
 
Posts: n/a
Default

In Column C put a formula concantenating Col A and B... = A1 & B1
Copy this down your list
In D1 put the formula...
=COUNTIF(C:C,"12")

HTH,
Gary Brown


"Lee" wrote in message
...
My data is in the following format

A B
1 2
1 0
2 0

I want to count how often there is a "1" in column A and a corresponding 2
(in the same row) in colum B

Thanks



  #3   Report Post  
CLR
 
Posts: n/a
Default

=SUMPRODUCT((A1:A3=1)*(B1:B3=2))

Vaya con Dios,
Chuck, CABGx3


"Lee" wrote in message
...
My data is in the following format

A B
1 2
1 0
2 0

I want to count how often there is a "1" in column A and a corresponding 2
(in the same row) in colum B

Thanks



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 count number of cels the matches 2 conditions ? Abra Excel Worksheet Functions 2 February 27th 05 08:56 PM
Count with multiple conditions Toby0924 Excel Worksheet Functions 3 February 2nd 05 01:35 PM
Count function in excel with different conditions chits Excel Worksheet Functions 1 January 21st 05 07:32 AM
Count If Formula for multiple conditions?? How To?? LPrain Excel Worksheet Functions 1 December 6th 04 09:18 PM
Count Based upon Multiple Conditions hkslater Excel Worksheet Functions 4 November 19th 04 04:43 AM


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