Calculating combination of text occurances

A

AGA

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
 
M

Mike H

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
 
G

Gary''s Student

Use =SUMPRODUCT()

=SUMPRODUCT((A1:A1000="Aetna")*(B1:B1000="employee"))

and similar formulas for the other 5 combinations
 
A

AGA

THANK YOU!!!

Mike H said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top