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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How do I count the number of time 2 columns meet my criteria



 
 
Thread Tools Display Modes
  #1  
Old November 22nd, 2009, 10:01 PM posted to microsoft.public.excel.misc
Mrswhit9
external usenet poster
 
Posts: 1
Default How do I count the number of time 2 columns meet my criteria


Can anyone tell me what is wrong with this formula? I am trying to say if
the text in column B = this, and the text from column C = this, and then
count the returned values:

=IF(b4:b118,"Consistent Support Staff",IF(C4:C118,"Positive"),"1","0"))

--
mrswhit
  #2  
Old November 22nd, 2009, 10:06 PM posted to microsoft.public.excel.misc
Don Guillett
external usenet poster
 
Posts: 6,167
Default How do I count the number of time 2 columns meet my criteria

try
=sumproduct((b4:b118="Consistent Support Staff")*(c4:C118="Positive"))


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Mrswhit9" wrote in message
...

Can anyone tell me what is wrong with this formula? I am trying to say if
the text in column B = this, and the text from column C = this, and then
count the returned values:

=IF(b4:b118,"Consistent Support Staff",IF(C4:C118,"Positive"),"1","0"))

--
mrswhit


  #3  
Old November 22nd, 2009, 10:19 PM posted to microsoft.public.excel.misc
Gary''s Student
external usenet poster
 
Posts: 7,584
Default How do I count the number of time 2 columns meet my criteria

=SUMPRODUCT((B4:B118="Consistent Support Staff")*(C4:C118="Positive"))

--
Gary''s Student - gsnu200909


"Mrswhit9" wrote:


Can anyone tell me what is wrong with this formula? I am trying to say if
the text in column B = this, and the text from column C = this, and then
count the returned values:

=IF(b4:b118,"Consistent Support Staff",IF(C4:C118,"Positive"),"1","0"))

--
mrswhit

 




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:10 AM.


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