+ Reply to Thread
Results 1 to 3 of 3

Formula to Find Unique Customers per City

  1. #1
    Forum Contributor
    Join Date
    01-04-2013
    Location
    Tampa, Florida
    MS-Off Ver
    Excel 2013
    Posts
    142

    Formula to Find Unique Customers per City

    Hello all,

    I have a table of transactions. The table has columns for Customer, City and Revenue. A customer can have multiple transactions per city. A customer can also have transactions in multiple cities. I need a formula in a helper column to flag each unique customer per city. I know how to use a COUNTIF formula nested in an IF formula to flag unique customers in the total data set. What I can't figure out is how to count unique customers per city. See attached file for a very simplified version of the table and what I'm trying to accomplish. In the actual data set there are thousands of transactions with hundreds of customers and scores of cities.

    I will be summarizing the data in a pivot table to count unique customer per city and total revenue per city. I'm assuming I'll need a helper column to count the unique customers per city, but if there is a way to do that in the pivot table then all the better.

    So, as an example, XYZ Corp. might have two transaction in Houston for $1,000 each. XYZ Corp. might also have one transaction in San Francisco for $1,000. In the pivot table XYZ Corp. will count as 1 unique customer in Houston, their revenue will sum up as $2,000. XYZ Corp. will also count as 1 unique customer in San Francisco, their revenue for San Francisco will sum up as $1,000.

    I appreciate whatever help someone can provide.

    Unique Customer Count.xlsx

  2. #2
    Forum Contributor
    Join Date
    06-18-2014
    Location
    USA
    MS-Off Ver
    2013
    Posts
    142

    Re: Formula to Find Unique Customers per City

    Here is what I do in similar situations...might be a fancier way, but it seems to work for me...in your example, in C2 I put
    Please Login or Register  to view this content.
    Then, if you make a pivot table of columns A to D, you can use Sum of Unique (Column C) and Sum of Revenue (Column D), with your row labels being City (Column B).

    In the formula in C2, you can extend beyond row 1000 if needed to fit your data size.

    Does that give you the results you are looking for?

  3. #3
    Forum Contributor
    Join Date
    01-04-2013
    Location
    Tampa, Florida
    MS-Off Ver
    Excel 2013
    Posts
    142

    Re: Formula to Find Unique Customers per City

    That worked. I had to make one adjustment as I wasn't originally accounting for cities with the same name in different states. So, I added a third criteria to the formula for the State column. I appreciate your help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Retention formula to count unique customers that made a purchase in both years
    By stu40 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-23-2016, 01:24 AM
  2. Count of Age group with unique customers
    By Rushendra in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-23-2016, 01:21 AM
  3. count for unique customers
    By stephme55 in forum Excel General
    Replies: 9
    Last Post: 01-30-2016, 06:27 PM
  4. Unique Customers per month from table in graph form
    By faodavid in forum Excel General
    Replies: 6
    Last Post: 09-05-2015, 02:52 PM
  5. Formula to find top customers based on sales value.
    By Harlort in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-17-2013, 08:39 AM
  6. Replies: 2
    Last Post: 06-04-2012, 01:02 AM
  7. Finding unique number of customers
    By fibaroobi in forum Excel General
    Replies: 0
    Last Post: 08-25-2010, 11:39 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1