Solved

Count only unique accounts based on criteria

Posted on 2013-01-15
2
252 Views
Last Modified: 2013-01-15
I am working on a report and need help.
I have a report that is a customer list of water and sewer customers.  Each Customer has a unique customer number.  However, some customers have more than one account (they may have one for their home water, another for irrigation, another for an outside shop etc...) but still use the same customer number.

Each customer is also located in a "zone."  

I would like to find a formulate that could tell me the number of CUSTOMERS (not accounts) in each zone on the report.

I have a formula that will count only the unique customer numbers.  However, if you can provide a better one that i can also add on to in order to lookup by zone, that would be great.

The formula I have is {=sum(if(frequency(sheet1!k2:sheet1!k318,Sheet 1!k2:Sheet1!k318)>0,1))}

(Pay no attention to the sheet and cell references...I am just using them as an example.
Sample-to-Experts-Exchange.xlsx
0
Comment
Question by:jconnelley44
2 Comments
 
LVL 23

Accepted Solution

by:
NBVC earned 500 total points
ID: 38779756
Assuming you list the unique zones, say in H2:H4, then in say I2:

=SUMPRODUCT(($A$2:$A$16=H2)/COUNTIF($B$2:$B$16,$B$2:$B$16&""))

copied down
0
 

Author Closing Comment

by:jconnelley44
ID: 38779848
I think that is going to work wonderfully!  Thanks so much for your help!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now