A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Count based on two criteria.



 
 
Thread Tools Display Modes
  #1  
Old May 15th, 2009, 09:26 PM posted to microsoft.public.excel.worksheet.functions
MJKelly
external usenet poster
 
Posts: 10
Default Count based on two criteria.

Hi,

How do I get a summary of a table of data according to two criteria?
I want to check instances of "A" in one column and then where "A" is
found, check that "B' occurs in the same row, but a different column.
I'm not counting numeric values here, just the instances where A and B
occur in the same row on the table.

Hope I've explained myself?
Matt
  #2  
Old May 15th, 2009, 09:31 PM posted to microsoft.public.excel.worksheet.functions
Bob Umlas[_3_]
external usenet poster
 
Posts: 197
Default Count based on two criteria.

=SUMPRODUCT(N(A1:A100="A"),N(B1:B100="B"))
or if using Excel 2007:
=COUNTIFS(A1:A00,"A",B1:B100,"B")

"MJKelly" wrote in message
...
Hi,

How do I get a summary of a table of data according to two criteria?
I want to check instances of "A" in one column and then where "A" is
found, check that "B' occurs in the same row, but a different column.
I'm not counting numeric values here, just the instances where A and B
occur in the same row on the table.

Hope I've explained myself?
Matt



  #3  
Old May 16th, 2009, 02:41 PM posted to microsoft.public.excel.worksheet.functions
MJKelly
external usenet poster
 
Posts: 10
Default Count based on two criteria.

On May 15, 9:31*pm, "Bob Umlas" wrote:
=SUMPRODUCT(N(A1:A100="A"),N(B1:B100="B"))
or if using Excel 2007:
=COUNTIFS(A1:A00,"A",B1:B100,"B")

"MJKelly" wrote in message

...

Hi,


How do I get a summary of a table of data according to two criteria?
I want to check instances of "A" in one column and then where "A" is
found, check that "B' occurs in the same row, but a different column.
I'm not counting numeric values here, just the instances where A and B
occur in the same row on the table.


Hope I've explained myself?
Matt


Works a treat,

thanks loads,
Matt
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:55 PM.


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