View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default Calculating combination of text occurances

Hi,

Try this

=SUMPRODUCT((A1:A22="Kaiser")*(B1:B22="Employee"))

In practice i'd use cell references in the formula

=SUMPRODUCT((A1:A22=C1)*(B1:B22=C2))


Mike

"AGA" wrote:

HI,

I am attempting to update our medical benefits spreadsheet. I would like to
calculate how many employees are enrolled in each plan type. Column A lists
the provider (Aetna, Kaiser and Blue Shield), Column B lists the coverage
type (employee, emp + spouse etc). I wanted a total for each possible
combination from both colums.
For example:
Kaiser+Employee
Kaiser+Employee/Spouse
Aetna+Employee

I have failed miserably with the COUNTIF and hope someone out there will
take pity on me and show me the light.
Thanks,
AGA