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  

COUNTIF



 
 
Thread Tools Display Modes
  #1  
Old May 28th, 2004, 03:11 PM
Lacy
external usenet poster
 
Posts: n/a
Default COUNTIF

Im trying to use COUNTIF, but I have three criteria in
three different columns. Does anyone know of a way to
accomplish this?

Thanks
Lacy
  #2  
Old May 28th, 2004, 03:21 PM
Peo Sjoblom
external usenet poster
 
Posts: n/a
Default COUNTIF

=SUMPRODUCT(--(Range1=criteria1),--(Range2=criteria2),--(Range3=criteria3))

could look like

=SUMPRODUCT(--(A1:A10=1),--(B1:B10=2),--(C1:C10=3))

meaning range1=criteria1ANDrange2=criteria2ANDrange3=crite ria3

if it is OR instead


=SUMPRODUCT((A1:A10=1)+(B1:B10=2)+(C1:C10=3))

or even

=SUMPRODUCT((A1:A10={1,2,3})+(B1:B10={1,2,3})+(C1: C10={1,2,3}))


--
For everyone's benefit keep the discussion in the newsgroup.

Regards,

Peo Sjoblom


"Lacy" wrote in message
...
Im trying to use COUNTIF, but I have three criteria in
three different columns. Does anyone know of a way to
accomplish this?

Thanks
Lacy



  #3  
Old May 28th, 2004, 03:22 PM
Don Guillett
external usenet poster
 
Posts: n/a
Default COUNTIF

try
=sumproduct((a2:a200="a")*(b2:b200=1)*(c2:c20023) )

--
Don Guillett
SalesAid Software

"Lacy" wrote in message
...
Im trying to use COUNTIF, but I have three criteria in
three different columns. Does anyone know of a way to
accomplish this?

Thanks
Lacy



  #4  
Old May 28th, 2004, 06:08 PM
Lacy
external usenet poster
 
Posts: n/a
Default COUNTIF

Thanks guys. I didn't see this a minute ago and posted
the question again. Just ignore it.

Thanks again,
Lacy
 




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 11:44 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.