Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I need to use COUNTIF to search multiple ranges for combinations of answers
e.g Column A contains "colour", column B contains "shape" I want to count how many blue circles there are etc... |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I would concatenate columna A and B and then countif the concatenated string
Example: A1 = purple B1 = square C1 = CONCATENATE(A1,B1) -- yields purplesquare Assume this goes to row 10 =COUNTIF(C1:C10,"purplesquare") gives you a count of purple squares Dave -- Brevity is the soul of wit. "Jimbob" wrote: I need to use COUNTIF to search multiple ranges for combinations of answers e.g Column A contains "colour", column B contains "shape" I want to count how many blue circles there are etc... |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks Dave. I'd never heard of the concatenate function.
"Dave F" wrote: I would concatenate columna A and B and then countif the concatenated string Example: A1 = purple B1 = square C1 = CONCATENATE(A1,B1) -- yields purplesquare Assume this goes to row 10 =COUNTIF(C1:C10,"purplesquare") gives you a count of purple squares Dave -- Brevity is the soul of wit. "Jimbob" wrote: I need to use COUNTIF to search multiple ranges for combinations of answers e.g Column A contains "colour", column B contains "shape" I want to count how many blue circles there are etc... |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I prefer "&" -- MUCH less to type, does same thing:
C1 has: =A1&B1 "Jimbob" wrote: Thanks Dave. I'd never heard of the concatenate function. "Dave F" wrote: I would concatenate columna A and B and then countif the concatenated string Example: A1 = purple B1 = square C1 = CONCATENATE(A1,B1) -- yields purplesquare Assume this goes to row 10 =COUNTIF(C1:C10,"purplesquare") gives you a count of purple squares Dave -- Brevity is the soul of wit. "Jimbob" wrote: I need to use COUNTIF to search multiple ranges for combinations of answers e.g Column A contains "colour", column B contains "shape" I want to count how many blue circles there are etc... |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
OR use the SUMPRODUCT function
=sumproduct(--(a1:a100="blue"),--(b1:b100="square)) would give you the total of blue squares - longer formula, but doesn't need a new column to concatenate the result. Dave F wrote: I would concatenate columna A and B and then countif the concatenated string Example: A1 = purple B1 = square C1 = CONCATENATE(A1,B1) -- yields purplesquare Assume this goes to row 10 =COUNTIF(C1:C10,"purplesquare") gives you a count of purple squares Dave -- Brevity is the soul of wit. "Jimbob" wrote: I need to use COUNTIF to search multiple ranges for combinations of answers e.g Column A contains "colour", column B contains "shape" I want to count how many blue circles there are etc... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
COUNTIF with multiple disjoint ranges, same criteria | New Users to Excel | |||
Conditional Formula to search ranges?? | Excel Discussion (Misc queries) | |||
Countif & ranges consisting of multiple areas | Excel Worksheet Functions | |||
Countif & ranges consisting of multiple areas | Excel Worksheet Functions | |||
Countif & ranges consisting of multiple areas | Excel Worksheet Functions |