Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I have two columns - one lists the city; the other lists other criteria; like
colours (green/red, etc). I want to be able to count the number of 'Red' values in the second column only if the value in the first column is, say, "Toronto". So, countif (A1:A1500,"Toronto" AND IF B1:B1500, "Red") The result might be that there are 500 occurences of "Toronto" but of those, only 240 are associated with "Red" in the second column. Can you help? |
#2
![]() |
|||
|
|||
![]()
=SUMPRODUCT(--(A1:A1000="Toronto"),--(B1:B1000="red"))
-- HTH RP (remove nothere from the email address if mailing direct) "Heather Murch" <Heather wrote in message ... I have two columns - one lists the city; the other lists other criteria; like colours (green/red, etc). I want to be able to count the number of 'Red' values in the second column only if the value in the first column is, say, "Toronto". So, countif (A1:A1500,"Toronto" AND IF B1:B1500, "Red") The result might be that there are 500 occurences of "Toronto" but of those, only 240 are associated with "Red" in the second column. Can you help? |
#3
![]() |
|||
|
|||
![]()
One way
=SUMPRODUCT(--(A1:A1500="Toronto"),--(B1:B500="Red")) replace the hardcoded criteria with cells like this =SUMPRODUCT(--(A1:A1500=C1),--(B1:B500=D1)) that way you only need to change the contents of C1 and D1 instead of editing the formula when you change city and colour -- Regards, Peo Sjoblom "Heather Murch" <Heather wrote in message ... I have two columns - one lists the city; the other lists other criteria; like colours (green/red, etc). I want to be able to count the number of 'Red' values in the second column only if the value in the first column is, say, "Toronto". So, countif (A1:A1500,"Toronto" AND IF B1:B1500, "Red") The result might be that there are 500 occurences of "Toronto" but of those, only 240 are associated with "Red" in the second column. Can you help? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Countif cell color is Red? | Excel Worksheet Functions | |||
COUNTIF text where there is more than one word in a cell | Excel Worksheet Functions | |||
Addition to Turn cell red if today is greater or equal to date in cell | New Users to Excel | |||
GET.CELL | Excel Worksheet Functions | |||
VLookup resulting in a blank cell... | Excel Worksheet Functions |