Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Clash
 
Posts: n/a
Default conditions in "countif"


Hi all,

can you give a countif formula more than one condition/criteria, e.g.
=countif(P:P,"female") and say for instance Blonde, how would I include
the second criteria.

I tried a number of ways =countif(P:P,"female";"blonde") ,
=countif(P:P,"female")+countif(P:P,"blonde") but nothing works.

Cheers


--
Clash
------------------------------------------------------------------------
Clash's Profile: http://www.excelforum.com/member.php...o&userid=18951
View this thread: http://www.excelforum.com/showthread...hreadid=507155

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default conditions in "countif"

=SUMPRODUCT(--(P2:P200={"female","blonde"}))

Note that SUMPRODUCT doesn't work with complete columns, you have to specify
a range..


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Clash" wrote in message
...

Hi all,

can you give a countif formula more than one condition/criteria, e.g.
=countif(P:P,"female") and say for instance Blonde, how would I include
the second criteria.

I tried a number of ways =countif(P:P,"female";"blonde") ,
=countif(P:P,"female")+countif(P:P,"blonde") but nothing works.

Cheers


--
Clash
------------------------------------------------------------------------
Clash's Profile:

http://www.excelforum.com/member.php...o&userid=18951
View this thread: http://www.excelforum.com/showthread...hreadid=507155



  #3   Report Post  
Posted to microsoft.public.excel.misc
Clash
 
Posts: n/a
Default conditions in "countif"


many thanks boths:)


--
Clash
------------------------------------------------------------------------
Clash's Profile: http://www.excelforum.com/member.php...o&userid=18951
View this thread: http://www.excelforum.com/showthread...hreadid=507155

  #4   Report Post  
Posted to microsoft.public.excel.misc
daddylonglegs
 
Posts: n/a
Default conditions in "countif"


One of those you quoted should work

=countif(P:P,"female")+countif(P:P,"blonde")

or alternatively

=sum(countif(P:P,{"female","blonde"}))


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=507155

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
More than 3 Conditional Formatting Conditions Beth H Excel Worksheet Functions 12 January 6th 06 07:35 PM
Vlookup with 3 or more conditions LondonLion Excel Worksheet Functions 1 December 28th 05 04:02 PM
Add cells from a range based on 2 conditions from 2 other ranges Kelly Excel Worksheet Functions 3 July 7th 05 07:40 PM
SUM based on multiple conditions - SORRY, URGENT!!! marika1981 Excel Worksheet Functions 4 February 18th 05 11:13 AM
How to multiple conditions to validate more than 2 conditions to . Bhuvana Govind Excel Worksheet Functions 1 January 28th 05 07:07 PM


All times are GMT +1. The time now is 07:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"