Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 164
  • Last Modified:

How do I count unique records based on two columns in Excel?

In Excel 2010,  how do I count unique records based on two columns?

For example, I may have a patient that has the following three presecriptions:

Name          Drug                       Dosage
Smith          Simvastatin           40mg
Smith          Simvastatin           20mg
Smith          Omeproezal          20mg
Jones           Cyclobanzaprine  10mg

This should have a count of three (3)

Secondarily, how could I count all unique Name, Drug, Dosage combinations, which in this example would be four (4).

Lastly, how could I count the number of patients with multiple unique prescriptions, which in this example would be two (2).
0
Michael Paxton
Asked:
Michael Paxton
1 Solution
 
Haris DjulicCommented:
Hello,

attached is the file with examples of the formulas, for some formulas I added new columns to concentrate date so that the formula will be less complicated...
COUNTS.xlsx
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now