Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() 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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() 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 |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
More than 3 Conditional Formatting Conditions | Excel Worksheet Functions | |||
Vlookup with 3 or more conditions | Excel Worksheet Functions | |||
Add cells from a range based on 2 conditions from 2 other ranges | Excel Worksheet Functions | |||
SUM based on multiple conditions - SORRY, URGENT!!! | Excel Worksheet Functions | |||
How to multiple conditions to validate more than 2 conditions to . | Excel Worksheet Functions |