Solved

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

Posted on 2014-10-23
1
149 Views
Last Modified: 2014-11-07
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
Comment
Question by:paxtonm
1 Comment
 
LVL 15

Accepted Solution

by:
Haris Djulic earned 500 total points
ID: 40400408
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Office 2010 and Skype for Business 5 487
Excel 2016 - Row 1 missing 5 73
EXCEL Addin problem 7 65
get a call from Microsoft for license audit but didn't get any email yet. 14 25
This article describes how to use the Send to Mail Recipient command. The instructions apply generally to Office 2007 and later versions, but Microsoft® Word 2013 was used for the specific steps and figures.  What is Send to Mail Recipient? Send…
A high-level exploration of how our ever-increasing access to information has changed the way we do our jobs.
The viewer will learn how to edit text. This includes Font, Spacing, Resizing, Color, and other special text options.
This video teaches the viewer how to align pictures around text while keeping the text properly aligned in the document.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question